diff --git a/calliope-backend/src/calliope/comfyui/fixed_document.py b/calliope-backend/src/calliope/comfyui/fixed_document.py index 56faa30f..5f194e66 100644 --- a/calliope-backend/src/calliope/comfyui/fixed_document.py +++ b/calliope-backend/src/calliope/comfyui/fixed_document.py @@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc # Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust. DEFINITIONS = { + ( + "example_ComfyUI_workflows/0-基础处理:图像合并-音频" + "分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json" + ): "b57b68e11c6a7347947d3547c85c0e26fa174a07174d39835710bf22a953fe78", ( "example_ComfyUI_workflows/0-基础处理:图像合并-音频" "分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json" diff --git a/calliope-backend/src/calliope/comfyui/source_reviews.json b/calliope-backend/src/calliope/comfyui/source_reviews.json index bca4b41f..53860514 100644 --- a/calliope-backend/src/calliope/comfyui/source_reviews.json +++ b/calliope-backend/src/calliope/comfyui/source_reviews.json @@ -46659,7 +46659,1451 @@ "scope": [ "结构及用途局部审校", "源具名参数/注释/连线/素材模型用途人工语义局部审校" - ] + ], + "fixed_version_document": { + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "source_sha1": "b16eb7cea17ce125be95637c2309c941870cd25b", + "source_sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4", + "canonical_sha256": "bb8e2be66e72bf1ffb37837ce13dfc18b9c66182dc8ea1d2593c1f925a486061", + "notice": "仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。", + "user_overview": "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "versions": [ + "load→d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "core→51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "kj→f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "layer→89014d833d2ad0998d724090eff1456692692a1d", + "impact→发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;Git绑定未知", + "rgthree→发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;Git绑定未知", + "frontend→7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;仅参考假设1.45.20,源前端未知" + ], + "counts": { + "saved_fields": 35, + "source_nodes": 17, + "physical_edges": 20, + "source_notes": 0, + "history_objects": 0, + "linked_saved_fields": 6, + "frontend_only": 7, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "node_id": "1", + "scope": "root", + "class_type": "LoadImage", + "field": "image", + "label": "输入图片文件名", + "pointer": "/nodes/0/widgets_values/0", + "input_pointer": "/nodes/0/inputs/0", + "value": "360截图20251018220547863.jpg", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式指定默认;输入目录图片排序枚举", + "unit": "文件名", + "limits": "依赖准确运行目录和素材;不存在或校验失败不能加载", + "effect": "选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。", + "execution_note": "节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 0, + 22 + ] + }, + { + "node_id": "1", + "scope": "root", + "class_type": "LoadImage", + "field": "upload", + "label": "上传控件保存占位", + "pointer": "/nodes/0/widgets_values/1", + "input_pointer": "/nodes/0/inputs/1", + "value": "image", + "json_type": "str", + "type": "IMAGEUPLOAD", + "role": "frontend_control", + "schema_default": "后端无upload参数;参考前端自动补控件", + "unit": "前端状态", + "limits": "保存字符串image;准确宿主前端及扩展恢复未知", + "effect": "保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。", + "execution_note": "节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 24, + 22 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "upscale_method", + "label": "核心重采样方法", + "pointer": "/nodes/1/widgets_values/0", + "input_pointer": "/nodes/1/inputs/1", + "value": "nearest-exact", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首选项nearest-exact", + "unit": "枚举", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "effect": "核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "width", + "label": "核心分支宽度缓存", + "pointer": "/nodes/1/widgets_values/1", + "input_pointer": "/nodes/1/inputs/2", + "value": 480, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~16384,step1;0按另一轴推算;两轴0直接返回", + "effect": "缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边14覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "height", + "label": "核心分支高度缓存", + "pointer": "/nodes/1/widgets_values/2", + "input_pointer": "/nodes/1/inputs/3", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~16384,step1;0按另一轴推算", + "effect": "缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边11覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "crop", + "label": "核心裁剪开关", + "pointer": "/nodes/1/widgets_values/3", + "input_pointer": "/nodes/1/inputs/4", + "value": "disabled", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首选项disabled", + "unit": "枚举", + "limits": "disabled/center", + "effect": "当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "12", + "scope": "root", + "class_type": "ImpactInt", + "field": "value", + "label": "高度及长度整数", + "pointer": "/nodes/2/widgets_values/0", + "input_pointer": "/nodes/2/inputs/0", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "0", + "unit": "整数;长度输入为像素", + "limits": "INT 0~sys.maxsize,step1;不是内存或图像尺寸保证", + "effect": "保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。", + "execution_note": "节点12保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 15, + 22 + ] + }, + { + "node_id": "11", + "scope": "root", + "class_type": "ImpactInt", + "field": "value", + "label": "共同宽度整数", + "pointer": "/nodes/3/widgets_values/0", + "input_pointer": "/nodes/3/inputs/0", + "value": 480, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "0", + "unit": "整数;接宽度时为像素", + "limits": "INT 0~sys.maxsize,step1;资源上限另受下游约束", + "effect": "保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。", + "execution_note": "节点11保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 15, + 22 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "width", + "label": "KJ宽度缓存", + "pointer": "/nodes/4/widgets_values/0", + "input_pointer": "/nodes/4/inputs/2", + "value": 480, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384", + "effect": "缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边9覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "height", + "label": "KJ高度缓存", + "pointer": "/nodes/4/widgets_values/1", + "input_pointer": "/nodes/4/inputs/3", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~宿主MAX_RESOLUTION,step1", + "effect": "缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边10覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "upscale_method", + "label": "KJ重采样方法", + "pointer": "/nodes/4/widgets_values/2", + "input_pointer": "/nodes/4/inputs/4", + "value": "lanczos", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首选项nearest-exact", + "unit": "枚举", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos", + "effect": "保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "keep_proportion", + "label": "KJ比例处理", + "pointer": "/nodes/4/widgets_values/3", + "input_pointer": "/nodes/4/inputs/5", + "value": "stretch", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "源码显式False(与枚举类型不一致);不改写为stretch", + "unit": "枚举", + "limits": "stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开", + "effect": "当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "pad_color", + "label": "KJ填充颜色", + "pointer": "/nodes/4/widgets_values/4", + "input_pointer": "/nodes/4/inputs/6", + "value": "0, 0, 0", + "json_type": "str", + "type": "STRING", + "role": "scalar", + "schema_default": "0, 0, 0", + "unit": "RGB文本", + "limits": "STRING;仅pad/pad_edge路径调用填边", + "effect": "保存黑色0, 0, 0,当前stretch不采用该颜色。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "crop_position", + "label": "KJ裁剪位置", + "pointer": "/nodes/4/widgets_values/5", + "input_pointer": "/nodes/4/inputs/7", + "value": "center", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "center", + "unit": "枚举", + "limits": "center/top/bottom/left/right;仅crop分支", + "effect": "保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "divisible_by", + "label": "KJ尺寸倍数", + "pointer": "/nodes/4/widgets_values/6", + "input_pointer": "/nodes/4/inputs/8", + "value": 16, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "2", + "unit": "像素倍数", + "limits": "INT 0~512,step1;>1向下取整,0/1不对齐", + "effect": "保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "device", + "label": "KJ处理设备", + "pointer": "/nodes/4/widgets_values/7", + "input_pointer": "/nodes/4/inputs/9", + "value": "cpu", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "schema未显式;首项cpu,函数默认cpu", + "unit": "设备枚举", + "limits": "cpu/gpu;gpu+lanczos主动抛错", + "effect": "保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "scale", + "label": "恢复分支倍率", + "pointer": "/nodes/5/widgets_values/0", + "input_pointer": "/nodes/5/inputs/3", + "value": 1, + "json_type": "int", + "type": "FLOAT", + "role": "scalar", + "schema_default": "1", + "unit": "倍数", + "limits": "FLOAT 0.01~100,step0.01;源JSON为int1", + "effect": "当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "method", + "label": "恢复分支重采样", + "pointer": "/nodes/5/widgets_values/1", + "input_pointer": "/nodes/5/inputs/4", + "value": "lanczos", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项lanczos", + "unit": "枚举", + "limits": "lanczos/bicubic/hamming/bilinear/box/nearest", + "effect": "保存lanczos,经PIL RGB resize;是否改善观感未知。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "scale_by", + "label": "恢复分支尺寸方式", + "pointer": "/nodes/5/widgets_values/2", + "input_pointer": "/nodes/5/inputs/5", + "value": "by_scale", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项by_scale", + "unit": "枚举", + "limits": "by_scale/longest/shortest/width/height/total_pixel(kilo pixel)", + "effect": "当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "scale_by_length", + "label": "恢复分支长度缓存", + "pointer": "/nodes/5/widgets_values/3", + "input_pointer": "/nodes/5/inputs/6", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "1024", + "unit": "像素;total_pixel模式为千像素", + "limits": "INT 4~99999999,step1;仅长度/面积分支采用", + "effect": "缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。源输入边12覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "aspect_ratio", + "label": "比例分支目标比例", + "pointer": "/nodes/6/widgets_values/0", + "input_pointer": "/nodes/6/inputs/2", + "value": "original", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项original", + "unit": "枚举", + "limits": "original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16", + "effect": "保存original从输入宽高取比例;不是custom的1:1。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "proportional_width", + "label": "自定比例宽", + "pointer": "/nodes/6/widgets_values/1", + "input_pointer": "/nodes/6/inputs/3", + "value": 1, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "1", + "unit": "比例份数", + "limits": "INT 1~1e8,step1;仅custom读取", + "effect": "保存1,当前original不使用该值计算目标比例。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "proportional_height", + "label": "自定比例高", + "pointer": "/nodes/6/widgets_values/2", + "input_pointer": "/nodes/6/inputs/4", + "value": 1, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "1", + "unit": "比例份数", + "limits": "INT 1~1e8,step1;仅custom读取", + "effect": "保存1,当前original不使用该值,不据两项1声称方图。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "fit", + "label": "比例分支适配方式", + "pointer": "/nodes/6/widgets_values/3", + "input_pointer": "/nodes/6/inputs/5", + "value": "letterbox", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项letterbox", + "unit": "枚举", + "limits": "letterbox/crop/fill", + "effect": "letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 12, + 22, + 11 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "method", + "label": "比例分支重采样", + "pointer": "/nodes/6/widgets_values/4", + "input_pointer": "/nodes/6/inputs/6", + "value": "lanczos", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项lanczos", + "unit": "枚举", + "limits": "lanczos/bicubic/hamming/bilinear/box/nearest", + "effect": "保存lanczos,供适配图片的PIL resize使用,不保证画质。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "round_to_multiple", + "label": "比例分支倍数对齐", + "pointer": "/nodes/6/widgets_values/5", + "input_pointer": "/nodes/6/inputs/7", + "value": "8", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项字符串8", + "unit": "像素倍数枚举", + "limits": "8/16/32/64/128/256/512/None,全部字符串", + "effect": "源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 13, + 22, + 11 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "scale_to_side", + "label": "比例分支缩放基准", + "pointer": "/nodes/6/widgets_values/6", + "input_pointer": "/nodes/6/inputs/8", + "value": "None", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项字符串None", + "unit": "枚举", + "limits": "None/longest/shortest/width/height/total_pixel(kilo pixel)", + "effect": "当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "scale_to_length", + "label": "比例分支长度缓存", + "pointer": "/nodes/6/widgets_values/7", + "input_pointer": "/nodes/6/inputs/9", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "1024", + "unit": "像素;total_pixel模式为千像素", + "limits": "INT 4~1e8,step1;按scale_to_side分支读取", + "effect": "缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。源输入边13覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "background_color", + "label": "比例分支背景色", + "pointer": "/nodes/6/widgets_values/8", + "input_pointer": "/nodes/6/inputs/10", + "value": "#000000", + "json_type": "str", + "type": "STRING", + "role": "scalar", + "schema_default": "#000000", + "unit": "颜色字符串", + "limits": "STRING;letterbox用PIL颜色创建背景", + "effect": "保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 12, + 22, + 11 + ] + }, + { + "node_id": "17", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示宽度文本", + "pointer": "/nodes/7/widgets_values/0", + "input_pointer": "/nodes/7/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点17接7.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点17保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "13", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示宽度文本", + "pointer": "/nodes/8/widgets_values/0", + "input_pointer": "/nodes/8/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点13接2.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点13保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "18", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示高度文本", + "pointer": "/nodes/9/widgets_values/0", + "input_pointer": "/nodes/9/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点18接7.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点18保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "15", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示宽度文本", + "pointer": "/nodes/10/widgets_values/0", + "input_pointer": "/nodes/10/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点15接5.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点15保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "16", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示高度文本", + "pointer": "/nodes/11/widgets_values/0", + "input_pointer": "/nodes/11/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点16接5.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点16保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "14", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示高度文本", + "pointer": "/nodes/12/widgets_values/0", + "input_pointer": "/nodes/12/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点14接2.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点14保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + } + ], + "sources": [ + { + "id": "load", + "file": "nodes.py", + "local_file": "../resize-compare-reference/load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "lines": [ + 1626, + 1700 + ], + "claim": "准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得" + }, + { + "id": "load", + "file": "nodes.py", + "local_file": "../resize-compare-reference/load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "lines": [ + 1957, + 1959 + ], + "claim": "准确core0.3.50 LoadImage注册" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1778, + 1806 + ], + "claim": "准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1561, + 1628 + ], + "claim": "PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1957, + 1967 + ], + "claim": "准确核心节点注册" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 52, + 52 + ], + "claim": "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本" + }, + { + "id": "core", + "file": "comfy/utils.py", + "local_file": "../resize-compare-reference/core__comfy__utils.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509", + "git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d", + "lines": [ + 858, + 900 + ], + "claim": "lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "lines": [ + 2376, + 2502 + ], + "claim": "KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "lines": [ + 21, + 21 + ], + "claim": "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "../resize-compare-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a", + "git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35", + "lines": [ + 75, + 85 + ], + "claim": "准确KJ ImageResizeKJv2注册" + }, + { + "id": "layer", + "file": "py/image_scale_restore_v2.py", + "local_file": "../resize-compare-reference/layer__py__image_scale_restore_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43", + "git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13", + "lines": [ + 7, + 132 + ], + "claim": "准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回" + }, + { + "id": "layer", + "file": "py/image_scale_by_aspect_ratio_v2.py", + "local_file": "../resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5", + "git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5", + "lines": [ + 8, + 186 + ], + "claim": "准确AspectRatio schema、original/custom、None长度不采用、对齐及返回" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 591, + 618 + ], + "claim": "letterbox居中填色、crop居中裁剪、fill直接伸缩" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 1967, + 1973 + ], + "claim": "向上取整到倍数;不同于KJ向下取整" + }, + { + "id": "layer", + "file": "__init__.py", + "local_file": "../resize-compare-reference/layer____init__.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a", + "lines": [ + 29, + 48 + ], + "claim": "LayerStyle包逐模块合并注册,未执行" + }, + { + "id": "impact", + "file": "modules/impact/logics.py", + "local_file": "../resize-compare-reference/impact__modules__impact__logics.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb", + "lines": [ + 239, + 255 + ], + "claim": "准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回" + }, + { + "id": "impact", + "file": "__init__.py", + "local_file": "../resize-compare-reference/impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "lines": [ + 48, + 48 + ], + "claim": "ImpactPack logics导入" + }, + { + "id": "impact", + "file": "__init__.py", + "local_file": "../resize-compare-reference/impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "lines": [ + 259, + 259 + ], + "claim": "ImpactInt注册" + }, + { + "id": "rgthree", + "file": "py/display_any.py", + "local_file": "../resize-compare-reference/rgthree__py__display_any.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840", + "lines": [ + 6, + 50 + ], + "claim": "准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数" + }, + { + "id": "rgthree", + "file": "web/comfyui/display_any.js", + "local_file": "../resize-compare-reference/rgthree__web__comfyui__display_any.js", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d", + "lines": [ + 1, + 35 + ], + "claim": "只读output控件;serializeValue返回空字符串/onExecuted更新" + }, + { + "id": "rgthree", + "file": "py/constants.py", + "local_file": "../resize-compare-reference/rgthree__py__constants.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558", + "lines": [ + 2, + 5 + ], + "claim": "Display Any (rgthree)准确命名" + }, + { + "id": "rgthree", + "file": "__init__.py", + "local_file": "../resize-compare-reference/rgthree____init__.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb", + "lines": [ + 47, + 54 + ], + "claim": "DisplayAny准确注册" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 917, + 925 + ], + "claim": "仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 972, + 984 + ], + "claim": "仅参考假设位置序列化;不证明目标实际恢复" + }, + { + "id": "frontend", + "file": "src/extensions/core/uploadImage.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06", + "git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 10, + 40 + ], + "claim": "仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数" + }, + { + "id": "frontend", + "file": "src/scripts/widgets.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__scripts__widgets.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c", + "git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 305, + 308 + ], + "claim": "仅参考假设IMAGEUPLOAD控件构造入口" + }, + { + "id": "frontend", + "file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "local_file": "../resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c", + "git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 136 + ], + "claim": "仅参考假设上传控件行为;源保存image原样保留,未上传" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "../resize-compare-reference/load__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "../resize-compare-reference/core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "../resize-compare-reference/kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "../resize-compare-reference/layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "lines": [ + 1, + 21 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "impact", + "file": "LICENSE.txt", + "local_file": "../resize-compare-reference/impact__LICENSE.txt", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "rgthree", + "file": "LICENSE", + "local_file": "../resize-compare-reference/rgthree__LICENSE", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1", + "lines": [ + 1, + 21 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "frontend", + "file": "LICENSE", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + } + ], + "comments": [], + "flow": [ + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。", + "四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImage;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。", + "11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存720,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。", + "5保存scale为JSON int1但schema为FLOAT;original_size未接,scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。", + "7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。", + "2当前stretch/lanczos/cpu,width480、height720经过divisible_by16向下对齐;pad_color与crop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。", + "源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未知,转换关闭。", + "4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分别13/14显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。", + "未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输入、mask及original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。", + "准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。", + "身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设,不称宿主版本。", + "UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。", + "旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case06排除。", + "原边 root [1, 1, 0, 2, 0, \"IMAGE\"]", + "原边 root [2, 2, 0, 3, 0, \"IMAGE\"]", + "原边 root [3, 1, 0, 4, 0, \"IMAGE\"]", + "原边 root [4, 1, 0, 5, 0, \"IMAGE\"]", + "原边 root [5, 1, 0, 7, 0, \"IMAGE\"]", + "原边 root [6, 4, 0, 8, 0, \"IMAGE\"]", + "原边 root [7, 5, 0, 9, 0, \"IMAGE\"]", + "原边 root [8, 7, 0, 10, 0, \"IMAGE\"]", + "原边 root [9, 11, 0, 2, 2, \"INT\"]", + "原边 root [10, 12, 0, 2, 3, \"INT\"]", + "原边 root [11, 12, 0, 4, 3, \"INT\"]", + "原边 root [12, 12, 0, 5, 6, \"INT\"]", + "原边 root [13, 12, 0, 7, 9, \"INT\"]", + "原边 root [14, 11, 0, 4, 2, \"INT\"]", + "原边 root [17, 2, 1, 13, 0, \"*\"]", + "原边 root [18, 2, 2, 14, 0, \"*\"]", + "原边 root [19, 5, 3, 15, 0, \"*\"]", + "原边 root [20, 5, 4, 16, 0, \"*\"]", + "原边 root [21, 7, 3, 17, 0, \"*\"]", + "原边 root [22, 7, 4, 18, 0, \"*\"]" + ], + "flow_evidence": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33 + ], + "zero_saved_nodes": [ + { + "node_id": "3", + "class_type": "PreviewImage", + "pointer": "/nodes/13/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + }, + { + "node_id": "8", + "class_type": "PreviewImage", + "pointer": "/nodes/14/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + }, + { + "node_id": "9", + "class_type": "PreviewImage", + "pointer": "/nodes/15/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + }, + { + "node_id": "10", + "class_type": "PreviewImage", + "pointer": "/nodes/16/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + } + ], + "boundaries": [], + "steps": [ + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。", + "操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。", + "操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。" + ] + } }, "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json": { "source_sha": "538a8df52022a22356c0b55086392ffed86ef7d8", diff --git a/calliope-backend/tests/test_resize_compare_fixed_document.py b/calliope-backend/tests/test_resize_compare_fixed_document.py new file mode 100644 index 00000000..febd02ce --- /dev/null +++ b/calliope-backend/tests/test_resize_compare_fixed_document.py @@ -0,0 +1,230 @@ +"""Interpolation comparison source identity, inactive lengths and fail-closed bindings.""" + +import ast +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/resize-compare-document-evidence" +PATH = next(p for p in DEFINITIONS if p.endswith("/图像放大比较.json")) +SOURCE = json.loads((REPO / PATH).read_bytes()) +REVIEW = review_for(PATH, hashlib.sha1((REPO / PATH).read_bytes()).hexdigest()) +BLOCK = REVIEW["fixed_version_document"] + + +def pointer(obj, path): + for part in path.strip("/").split("/"): + obj = obj[int(part)] if isinstance(obj, list) else obj[part] + return obj + + +def doc(source=SOURCE, review=REVIEW): + return build_document(PATH, source, None, None, [], review) + + +def refuse(s, r): + r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + r["caller_digest"] = hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest() + assert not doc(s, r)["fixed_version"]["matched"] + + +@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"]) +def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"]) + assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"] + assert f["scope"] == "root" and "named_value" not in f and "named_pointer" not in f + for key in [ + "effect", + "label", + "schema_default", + "unit", + "limits", + "execution_note", + "role", + "type", + ]: + assert f[key] + for i in f["evidence"]: + e = BLOCK["sources"][i] + raw = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines()) + + +@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"]) +@pytest.mark.parametrize("variant", ["value", "text"]) +def test_each_position_or_description_forgery_refused(f, variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + if variant == "text": + r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged" + else: + parent, _, key = f["pointer"].rpartition("/") + pointer(s, parent)[int(key)] = "forged" + refuse(s, r) + + +@pytest.mark.parametrize("i", range(17)) +@pytest.mark.parametrize("variant", ["mode", "identity"]) +def test_each_node_state_and_identity_is_bound(i, variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + if variant == "mode": + s["nodes"][i]["mode"] = 2 + else: + s["nodes"][i]["properties"]["ver"] = "forged" + refuse(s, r) + + +@pytest.mark.parametrize("i", range(20)) +@pytest.mark.parametrize("variant", ["record", "input", "output"]) +def test_all_physical_endpoints_bound(i, variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + eid, src, slot, dst, inp, _ = s["links"][i] + ns = {n["id"]: n for n in s["nodes"]} + if variant == "record": + s["links"][i][3] = 99999 + elif variant == "input": + ns[dst]["inputs"][inp]["link"] = 99999 + else: + ns[src]["outputs"][slot]["links"] = [] + refuse(s, r) + + +@pytest.mark.parametrize( + "variant", + [ + "named", + "frontend", + "mask", + "ue", + "empty_preview", + "missing", + "empty", + "path", + "source_sha", + "citation", + "overview", + ], +) +def test_special_boundaries_cannot_be_retrusted(variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + ns = {n["id"]: n for n in s["nodes"]} + b = r["fixed_version_document"] + if variant == "named": + ns[2]["widgets_values_named"] = {"width": 480} + elif variant == "frontend": + s["extra"]["frontendVersion"] = "1.45.20" + elif variant == "mask": + ns[2]["outputs"].pop() + elif variant == "ue": + ns[2]["properties"]["ue_properties"]["version"] = "7.8" + elif variant == "empty_preview": + ns[3]["widgets_values"] = None + elif variant in ["missing", "empty"]: + r["fixed_version_document"] = {} if variant == "empty" else None + assert not doc(s, r)["fixed_version"]["matched"] + return + elif variant == "path": + b["source_path"] = "wrong" + elif variant == "source_sha": + r["source_sha"] = "wrong" + elif variant == "citation": + b["sources"][0]["sha256"] = "wrong" + else: + b["user_overview"] = "wrong" + refuse(s, r) + + +def test_independent_inventory_links_overrides_and_zero_nodes(): + assert doc()["fixed_version"]["matched"] + assert len(SOURCE["nodes"]) == 17 and len(SOURCE["links"]) == 20 and "definitions" not in SOURCE + expected = [ + f"/nodes/{i}/widgets_values/{j}" + for i, n in enumerate(SOURCE["nodes"]) + for j in range(len(n["widgets_values"])) + ] + assert expected == [f["pointer"] for f in BLOCK["fields"]] and len(expected) == 35 + ns = {n["id"]: n for n in SOURCE["nodes"]} + for eid, src, slot, dst, inp, typ in SOURCE["links"]: + assert ns[dst]["inputs"][inp]["link"] == eid + assert eid in ns[src]["outputs"][slot]["links"] + assert ns[src]["outputs"][slot]["type"] == typ or typ == "*" + assert [ + (e[1], e[3], ns[e[3]]["inputs"][e[4]]["name"]) for e in SOURCE["links"] if e[1] in [11, 12] + ] == [ + (11, 2, "width"), + (12, 2, "height"), + (12, 4, "height"), + (12, 5, "scale_by_length"), + (12, 7, "scale_to_length"), + (11, 4, "width"), + ] + assert [n["node_id"] for n in BLOCK["zero_saved_nodes"]] == ["3", "8", "9", "10"] + assert sum(f["value"] == "" for f in BLOCK["fields"]) == 6 and not BLOCK["comments"] + assert all(n["mode"] == 0 and "widgets_values_named" not in n for n in SOURCE["nodes"]) + assert ns[1]["outputs"][1]["links"] is None + + +def test_precise_static_branch_conditions_and_interface_conflict_without_execution(): + ref = OUT.parent / "resize-compare-reference" + kj = (ref / "kj__nodes__image_nodes.py").read_text() + tree = ast.parse(kj) + node = next(x for x in tree.body if isinstance(x, ast.ClassDef) and x.name == "ImageResizeKJv2") + return_types = next( + x.value + for x in node.body + if isinstance(x, ast.Assign) + and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in x.targets) + ) + assert ast.literal_eval(return_types) == ("IMAGE", "INT", "INT") + resize = next(x for x in node.body if isinstance(x, ast.FunctionDef) and x.name == "resize") + assert "mask" not in [x.arg for x in resize.args.args] + assert "width = width - (width % divisible_by)" in kj + restore = (ref / "layer__py__image_scale_restore_v2.py").read_text() + assert "if original_size is not None:" in restore and "if scale_by == 'longest':" in restore + assert ( + "target_width = int(orig_width * scale)" in restore + and "if scale_by == 'by_scale':" not in restore + ) + aspect = (ref / "layer__py__image_scale_by_aspect_ratio_v2.py").read_text() + assert "elif scale_to_side == 'total_pixel(kilo pixel)':" in aspect + assert "target_width = orig_width" in aspect and "if round_to_multiple != 'None':" in aspect + preview = (ref / "core__nodes.py").read_text() + assert "RETURN_TYPES = ()" in preview and "class PreviewImage(SaveImage)" in preview + fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]} + assert fields["5", "scale"]["json_type"] == "int" and fields["5", "scale"]["type"] == "FLOAT" + assert fields["7", "round_to_multiple"]["value"] == "8" + assert all( + "不" in fields[n, k]["effect"] + for n, k in [("5", "scale_by_length"), ("7", "scale_to_length")] + ) + + +def test_old_33_blocks_and_all_other_reviews_frozen(): + p = "calliope-backend/src/calliope/comfyui/source_reviews.json" + old = json.loads(subprocess.check_output(["git", "show", "ce9502a:" + p], cwd=REPO)) + now = json.loads((REPO / p).read_bytes()) + now[PATH].pop("fixed_version_document") + assert now == old and len(DEFINITIONS) == 34 + blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] + assert ( + len(blocks) == 33 + and sum(len(b["fields"]) for b in blocks) == 1034 + and sum( + len( + build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], r)[ + "source_notes" + ] + ) + for p, r in old.items() + if "fixed_version_document" in r + ) + == 25 + ) diff --git a/docs/hel-892/resize-compare-document-evidence/actual-图像放大比较.json b/docs/hel-892/resize-compare-document-evidence/actual-图像放大比较.json new file mode 100644 index 00000000..960390d8 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/actual-图像放大比较.json @@ -0,0 +1,2488 @@ +{ + "companion_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "dependencies": { + "check_state": "unchecked", + "checked_at": null, + "missing": [], + "model_locations": "待目标机提供", + "models": [], + "node_packs": [], + "node_types": [ + "Display Any (rgthree)", + "ImageResizeKJv2", + "ImageScale", + "ImpactInt", + "LayerUtility: ImageScaleByAspectRatio V2", + "LayerUtility: ImageScaleRestore V2", + "LoadImage", + "PreviewImage" + ], + "source": null + }, + "draft": true, + "errors": [ + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:LoadImage" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:ImageScale" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:ImpactInt" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:ImpactInt" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:ImageResizeKJv2" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:LayerUtility: ImageScaleRestore V2" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:LayerUtility: ImageScaleByAspectRatio V2" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Display Any (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Display Any (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Display Any (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Display Any (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Display Any (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Display Any (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:PreviewImage" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:PreviewImage" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:PreviewImage" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:PreviewImage" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "未得到可执行节点" + } + ], + "fixed_version": { + "boundaries": [], + "canonical_sha256": "bb8e2be66e72bf1ffb37837ce13dfc18b9c66182dc8ea1d2593c1f925a486061", + "comments": [], + "counts": { + "final_prompt_constructed": false, + "final_scalars": 0, + "frontend_only": 7, + "history_objects": 0, + "linked_saved_fields": 6, + "physical_edges": 20, + "saved_fields": 35, + "source_nodes": 17, + "source_notes": 0 + }, + "fields": [ + { + "class_type": "LoadImage", + "effect": "选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。", + "evidence": [ + 0, + 22 + ], + "execution_note": "节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "image", + "input_pointer": "/nodes/0/inputs/0", + "json_type": "str", + "label": "输入图片文件名", + "limits": "依赖准确运行目录和素材;不存在或校验失败不能加载", + "node_id": "1", + "pointer": "/nodes/0/widgets_values/0", + "role": "scalar", + "schema_default": "未显式指定默认;输入目录图片排序枚举", + "scope": "root", + "type": "COMBO", + "unit": "文件名", + "value": "360截图20251018220547863.jpg" + }, + { + "class_type": "LoadImage", + "effect": "保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。", + "evidence": [ + 24, + 22 + ], + "execution_note": "节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "upload", + "input_pointer": "/nodes/0/inputs/1", + "json_type": "str", + "label": "上传控件保存占位", + "limits": "保存字符串image;准确宿主前端及扩展恢复未知", + "node_id": "1", + "pointer": "/nodes/0/widgets_values/1", + "role": "frontend_control", + "schema_default": "后端无upload参数;参考前端自动补控件", + "scope": "root", + "type": "IMAGEUPLOAD", + "unit": "前端状态", + "value": "image" + }, + { + "class_type": "ImageScale", + "effect": "核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。", + "evidence": [ + 2, + 22, + 6, + 5 + ], + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "upscale_method", + "input_pointer": "/nodes/1/inputs/1", + "json_type": "str", + "label": "核心重采样方法", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "node_id": "4", + "pointer": "/nodes/1/widgets_values/0", + "role": "scalar", + "schema_default": "未显式默认;首选项nearest-exact", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "nearest-exact" + }, + { + "class_type": "ImageScale", + "effect": "缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。", + "evidence": [ + 2, + 22, + 6, + 5 + ], + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边14覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "width", + "input_pointer": "/nodes/1/inputs/2", + "json_type": "int", + "label": "核心分支宽度缓存", + "limits": "INT 0~16384,step1;0按另一轴推算;两轴0直接返回", + "node_id": "4", + "pointer": "/nodes/1/widgets_values/1", + "role": "linked_cache", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 480 + }, + { + "class_type": "ImageScale", + "effect": "缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。", + "evidence": [ + 2, + 22, + 6, + 5 + ], + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边11覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "height", + "input_pointer": "/nodes/1/inputs/3", + "json_type": "int", + "label": "核心分支高度缓存", + "limits": "INT 0~16384,step1;0按另一轴推算", + "node_id": "4", + "pointer": "/nodes/1/widgets_values/2", + "role": "linked_cache", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 720 + }, + { + "class_type": "ImageScale", + "effect": "当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。", + "evidence": [ + 2, + 22, + 6, + 5 + ], + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "crop", + "input_pointer": "/nodes/1/inputs/4", + "json_type": "str", + "label": "核心裁剪开关", + "limits": "disabled/center", + "node_id": "4", + "pointer": "/nodes/1/widgets_values/3", + "role": "scalar", + "schema_default": "未显式默认;首选项disabled", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "disabled" + }, + { + "class_type": "ImpactInt", + "effect": "保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。", + "evidence": [ + 15, + 22 + ], + "execution_note": "节点12保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "value", + "input_pointer": "/nodes/2/inputs/0", + "json_type": "int", + "label": "高度及长度整数", + "limits": "INT 0~sys.maxsize,step1;不是内存或图像尺寸保证", + "node_id": "12", + "pointer": "/nodes/2/widgets_values/0", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "整数;长度输入为像素", + "value": 720 + }, + { + "class_type": "ImpactInt", + "effect": "保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。", + "evidence": [ + 15, + 22 + ], + "execution_note": "节点11保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "value", + "input_pointer": "/nodes/3/inputs/0", + "json_type": "int", + "label": "共同宽度整数", + "limits": "INT 0~sys.maxsize,step1;资源上限另受下游约束", + "node_id": "11", + "pointer": "/nodes/3/widgets_values/0", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "整数;接宽度时为像素", + "value": 480 + }, + { + "class_type": "ImageResizeKJv2", + "effect": "缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边9覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "width", + "input_pointer": "/nodes/4/inputs/2", + "json_type": "int", + "label": "KJ宽度缓存", + "limits": "INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/0", + "role": "linked_cache", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 480 + }, + { + "class_type": "ImageResizeKJv2", + "effect": "缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边10覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "height", + "input_pointer": "/nodes/4/inputs/3", + "json_type": "int", + "label": "KJ高度缓存", + "limits": "INT 0~宿主MAX_RESOLUTION,step1", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/1", + "role": "linked_cache", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 720 + }, + { + "class_type": "ImageResizeKJv2", + "effect": "保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "upscale_method", + "input_pointer": "/nodes/4/inputs/4", + "json_type": "str", + "label": "KJ重采样方法", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/2", + "role": "scalar", + "schema_default": "未显式默认;首选项nearest-exact", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "lanczos" + }, + { + "class_type": "ImageResizeKJv2", + "effect": "当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "keep_proportion", + "input_pointer": "/nodes/4/inputs/5", + "json_type": "str", + "label": "KJ比例处理", + "limits": "stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/3", + "role": "scalar", + "schema_default": "源码显式False(与枚举类型不一致);不改写为stretch", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "stretch" + }, + { + "class_type": "ImageResizeKJv2", + "effect": "保存黑色0, 0, 0,当前stretch不采用该颜色。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "pad_color", + "input_pointer": "/nodes/4/inputs/6", + "json_type": "str", + "label": "KJ填充颜色", + "limits": "STRING;仅pad/pad_edge路径调用填边", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/4", + "role": "scalar", + "schema_default": "0, 0, 0", + "scope": "root", + "type": "STRING", + "unit": "RGB文本", + "value": "0, 0, 0" + }, + { + "class_type": "ImageResizeKJv2", + "effect": "保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "crop_position", + "input_pointer": "/nodes/4/inputs/7", + "json_type": "str", + "label": "KJ裁剪位置", + "limits": "center/top/bottom/left/right;仅crop分支", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/5", + "role": "scalar", + "schema_default": "center", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "center" + }, + { + "class_type": "ImageResizeKJv2", + "effect": "保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "divisible_by", + "input_pointer": "/nodes/4/inputs/8", + "json_type": "int", + "label": "KJ尺寸倍数", + "limits": "INT 0~512,step1;>1向下取整,0/1不对齐", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/6", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "像素倍数", + "value": 16 + }, + { + "class_type": "ImageResizeKJv2", + "effect": "保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。", + "evidence": [ + 7, + 22, + 6, + 5 + ], + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "device", + "input_pointer": "/nodes/4/inputs/9", + "json_type": "str", + "label": "KJ处理设备", + "limits": "cpu/gpu;gpu+lanczos主动抛错", + "node_id": "2", + "pointer": "/nodes/4/widgets_values/7", + "role": "scalar", + "schema_default": "schema未显式;首项cpu,函数默认cpu", + "scope": "root", + "type": "COMBO", + "unit": "设备枚举", + "value": "cpu" + }, + { + "class_type": "LayerUtility: ImageScaleRestore V2", + "effect": "当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。", + "evidence": [ + 10, + 22 + ], + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "scale", + "input_pointer": "/nodes/5/inputs/3", + "json_type": "int", + "label": "恢复分支倍率", + "limits": "FLOAT 0.01~100,step0.01;源JSON为int1", + "node_id": "5", + "pointer": "/nodes/5/widgets_values/0", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "FLOAT", + "unit": "倍数", + "value": 1 + }, + { + "class_type": "LayerUtility: ImageScaleRestore V2", + "effect": "保存lanczos,经PIL RGB resize;是否改善观感未知。", + "evidence": [ + 10, + 22 + ], + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "method", + "input_pointer": "/nodes/5/inputs/4", + "json_type": "str", + "label": "恢复分支重采样", + "limits": "lanczos/bicubic/hamming/bilinear/box/nearest", + "node_id": "5", + "pointer": "/nodes/5/widgets_values/1", + "role": "scalar", + "schema_default": "未显式默认;首项lanczos", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "lanczos" + }, + { + "class_type": "LayerUtility: ImageScaleRestore V2", + "effect": "当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。", + "evidence": [ + 10, + 22 + ], + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "scale_by", + "input_pointer": "/nodes/5/inputs/5", + "json_type": "str", + "label": "恢复分支尺寸方式", + "limits": "by_scale/longest/shortest/width/height/total_pixel(kilo pixel)", + "node_id": "5", + "pointer": "/nodes/5/widgets_values/2", + "role": "scalar", + "schema_default": "未显式默认;首项by_scale", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "by_scale" + }, + { + "class_type": "LayerUtility: ImageScaleRestore V2", + "effect": "缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。", + "evidence": [ + 10, + 22 + ], + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。源输入边12覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "scale_by_length", + "input_pointer": "/nodes/5/inputs/6", + "json_type": "int", + "label": "恢复分支长度缓存", + "limits": "INT 4~99999999,step1;仅长度/面积分支采用", + "node_id": "5", + "pointer": "/nodes/5/widgets_values/3", + "role": "linked_cache", + "schema_default": "1024", + "scope": "root", + "type": "INT", + "unit": "像素;total_pixel模式为千像素", + "value": 720 + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "保存original从输入宽高取比例;不是custom的1:1。", + "evidence": [ + 11, + 22 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "aspect_ratio", + "input_pointer": "/nodes/6/inputs/2", + "json_type": "str", + "label": "比例分支目标比例", + "limits": "original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/0", + "role": "scalar", + "schema_default": "未显式默认;首项original", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "original" + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "保存1,当前original不使用该值计算目标比例。", + "evidence": [ + 11, + 22 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "proportional_width", + "input_pointer": "/nodes/6/inputs/3", + "json_type": "int", + "label": "自定比例宽", + "limits": "INT 1~1e8,step1;仅custom读取", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/1", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "比例份数", + "value": 1 + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "保存1,当前original不使用该值,不据两项1声称方图。", + "evidence": [ + 11, + 22 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "proportional_height", + "input_pointer": "/nodes/6/inputs/4", + "json_type": "int", + "label": "自定比例高", + "limits": "INT 1~1e8,step1;仅custom读取", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/2", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "比例份数", + "value": 1 + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。", + "evidence": [ + 12, + 22, + 11 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "fit", + "input_pointer": "/nodes/6/inputs/5", + "json_type": "str", + "label": "比例分支适配方式", + "limits": "letterbox/crop/fill", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/3", + "role": "scalar", + "schema_default": "未显式默认;首项letterbox", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "letterbox" + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "保存lanczos,供适配图片的PIL resize使用,不保证画质。", + "evidence": [ + 11, + 22 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "method", + "input_pointer": "/nodes/6/inputs/6", + "json_type": "str", + "label": "比例分支重采样", + "limits": "lanczos/bicubic/hamming/bilinear/box/nearest", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/4", + "role": "scalar", + "schema_default": "未显式默认;首项lanczos", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "lanczos" + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。", + "evidence": [ + 13, + 22, + 11 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "round_to_multiple", + "input_pointer": "/nodes/6/inputs/7", + "json_type": "str", + "label": "比例分支倍数对齐", + "limits": "8/16/32/64/128/256/512/None,全部字符串", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/5", + "role": "scalar", + "schema_default": "未显式默认;首项字符串8", + "scope": "root", + "type": "COMBO", + "unit": "像素倍数枚举", + "value": "8" + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。", + "evidence": [ + 11, + 22 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "scale_to_side", + "input_pointer": "/nodes/6/inputs/8", + "json_type": "str", + "label": "比例分支缩放基准", + "limits": "None/longest/shortest/width/height/total_pixel(kilo pixel)", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/6", + "role": "scalar", + "schema_default": "未显式默认;首项字符串None", + "scope": "root", + "type": "COMBO", + "unit": "枚举", + "value": "None" + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。", + "evidence": [ + 11, + 22 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。源输入边13覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "scale_to_length", + "input_pointer": "/nodes/6/inputs/9", + "json_type": "int", + "label": "比例分支长度缓存", + "limits": "INT 4~1e8,step1;按scale_to_side分支读取", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/7", + "role": "linked_cache", + "schema_default": "1024", + "scope": "root", + "type": "INT", + "unit": "像素;total_pixel模式为千像素", + "value": 720 + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "effect": "保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。", + "evidence": [ + 12, + 22, + 11 + ], + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "background_color", + "input_pointer": "/nodes/6/inputs/10", + "json_type": "str", + "label": "比例分支背景色", + "limits": "STRING;letterbox用PIL颜色创建背景", + "node_id": "7", + "pointer": "/nodes/6/widgets_values/8", + "role": "scalar", + "schema_default": "#000000", + "scope": "root", + "type": "STRING", + "unit": "颜色字符串", + "value": "#000000" + }, + { + "class_type": "Display Any (rgthree)", + "effect": "节点17接7.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "evidence": [ + 19, + 22, + 18 + ], + "execution_note": "节点17保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "output", + "input_pointer": "/nodes/7/widgets_values/0", + "json_type": "str", + "label": "显示宽度文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "node_id": "17", + "pointer": "/nodes/7/widgets_values/0", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "scope": "root", + "type": "前端STRING", + "unit": "显示文本", + "value": "" + }, + { + "class_type": "Display Any (rgthree)", + "effect": "节点13接2.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "evidence": [ + 19, + 22, + 18 + ], + "execution_note": "节点13保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "output", + "input_pointer": "/nodes/8/widgets_values/0", + "json_type": "str", + "label": "显示宽度文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "node_id": "13", + "pointer": "/nodes/8/widgets_values/0", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "scope": "root", + "type": "前端STRING", + "unit": "显示文本", + "value": "" + }, + { + "class_type": "Display Any (rgthree)", + "effect": "节点18接7.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "evidence": [ + 19, + 22, + 18 + ], + "execution_note": "节点18保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "output", + "input_pointer": "/nodes/9/widgets_values/0", + "json_type": "str", + "label": "显示高度文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "node_id": "18", + "pointer": "/nodes/9/widgets_values/0", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "scope": "root", + "type": "前端STRING", + "unit": "显示文本", + "value": "" + }, + { + "class_type": "Display Any (rgthree)", + "effect": "节点15接5.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "evidence": [ + 19, + 22, + 18 + ], + "execution_note": "节点15保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "output", + "input_pointer": "/nodes/10/widgets_values/0", + "json_type": "str", + "label": "显示宽度文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "node_id": "15", + "pointer": "/nodes/10/widgets_values/0", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "scope": "root", + "type": "前端STRING", + "unit": "显示文本", + "value": "" + }, + { + "class_type": "Display Any (rgthree)", + "effect": "节点16接5.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "evidence": [ + 19, + 22, + 18 + ], + "execution_note": "节点16保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "output", + "input_pointer": "/nodes/11/widgets_values/0", + "json_type": "str", + "label": "显示高度文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "node_id": "16", + "pointer": "/nodes/11/widgets_values/0", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "scope": "root", + "type": "前端STRING", + "unit": "显示文本", + "value": "" + }, + { + "class_type": "Display Any (rgthree)", + "effect": "节点14接2.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "evidence": [ + 19, + 22, + 18 + ], + "execution_note": "节点14保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "field": "output", + "input_pointer": "/nodes/12/widgets_values/0", + "json_type": "str", + "label": "显示高度文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "node_id": "14", + "pointer": "/nodes/12/widgets_values/0", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "scope": "root", + "type": "前端STRING", + "unit": "显示文本", + "value": "" + } + ], + "flow": [ + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。", + "四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImage;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。", + "11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存720,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。", + "5保存scale为JSON int1但schema为FLOAT;original_size未接,scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。", + "7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。", + "2当前stretch/lanczos/cpu,width480、height720经过divisible_by16向下对齐;pad_color与crop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。", + "源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未知,转换关闭。", + "4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分别13/14显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。", + "未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输入、mask及original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。", + "准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。", + "身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设,不称宿主版本。", + "UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。", + "旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case06排除。", + "原边 root [1, 1, 0, 2, 0, \"IMAGE\"]", + "原边 root [2, 2, 0, 3, 0, \"IMAGE\"]", + "原边 root [3, 1, 0, 4, 0, \"IMAGE\"]", + "原边 root [4, 1, 0, 5, 0, \"IMAGE\"]", + "原边 root [5, 1, 0, 7, 0, \"IMAGE\"]", + "原边 root [6, 4, 0, 8, 0, \"IMAGE\"]", + "原边 root [7, 5, 0, 9, 0, \"IMAGE\"]", + "原边 root [8, 7, 0, 10, 0, \"IMAGE\"]", + "原边 root [9, 11, 0, 2, 2, \"INT\"]", + "原边 root [10, 12, 0, 2, 3, \"INT\"]", + "原边 root [11, 12, 0, 4, 3, \"INT\"]", + "原边 root [12, 12, 0, 5, 6, \"INT\"]", + "原边 root [13, 12, 0, 7, 9, \"INT\"]", + "原边 root [14, 11, 0, 4, 2, \"INT\"]", + "原边 root [17, 2, 1, 13, 0, \"*\"]", + "原边 root [18, 2, 2, 14, 0, \"*\"]", + "原边 root [19, 5, 3, 15, 0, \"*\"]", + "原边 root [20, 5, 4, 16, 0, \"*\"]", + "原边 root [21, 7, 3, 17, 0, \"*\"]", + "原边 root [22, 7, 4, 18, 0, \"*\"]" + ], + "flow_evidence": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33 + ], + "matched": true, + "notice": "仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "source_sha1": "b16eb7cea17ce125be95637c2309c941870cd25b", + "source_sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4", + "sources": [ + { + "claim": "准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "file": "nodes.py", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "id": "load", + "lines": [ + 1626, + 1700 + ], + "local_file": "../resize-compare-reference/load__nodes.py", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py" + }, + { + "claim": "准确core0.3.50 LoadImage注册", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "file": "nodes.py", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "id": "load", + "lines": [ + 1957, + 1959 + ], + "local_file": "../resize-compare-reference/load__nodes.py", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py" + }, + { + "claim": "准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "file": "nodes.py", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "id": "core", + "lines": [ + 1778, + 1806 + ], + "local_file": "../resize-compare-reference/core__nodes.py", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py" + }, + { + "claim": "PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "file": "nodes.py", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "id": "core", + "lines": [ + 1561, + 1628 + ], + "local_file": "../resize-compare-reference/core__nodes.py", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py" + }, + { + "claim": "准确核心节点注册", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "file": "nodes.py", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "id": "core", + "lines": [ + 1957, + 1967 + ], + "local_file": "../resize-compare-reference/core__nodes.py", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py" + }, + { + "claim": "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "file": "nodes.py", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "id": "core", + "lines": [ + 52, + 52 + ], + "local_file": "../resize-compare-reference/core__nodes.py", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py" + }, + { + "claim": "lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "file": "comfy/utils.py", + "git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d", + "id": "core", + "lines": [ + 858, + 900 + ], + "local_file": "../resize-compare-reference/core__comfy__utils.py", + "sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py" + }, + { + "claim": "KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "file": "nodes/image_nodes.py", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "id": "kj", + "lines": [ + 2376, + 2502 + ], + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py" + }, + { + "claim": "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "file": "nodes/image_nodes.py", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "id": "kj", + "lines": [ + 21, + 21 + ], + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py" + }, + { + "claim": "准确KJ ImageResizeKJv2注册", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "file": "__init__.py", + "git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35", + "id": "kj", + "lines": [ + 75, + 85 + ], + "local_file": "../resize-compare-reference/kj____init__.py", + "sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py" + }, + { + "claim": "准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "file": "py/image_scale_restore_v2.py", + "git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13", + "id": "layer", + "lines": [ + 7, + 132 + ], + "local_file": "../resize-compare-reference/layer__py__image_scale_restore_v2.py", + "sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py" + }, + { + "claim": "准确AspectRatio schema、original/custom、None长度不采用、对齐及返回", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "file": "py/image_scale_by_aspect_ratio_v2.py", + "git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5", + "id": "layer", + "lines": [ + 8, + 186 + ], + "local_file": "../resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py", + "sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py" + }, + { + "claim": "letterbox居中填色、crop居中裁剪、fill直接伸缩", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "file": "py/imagefunc.py", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "id": "layer", + "lines": [ + 591, + 618 + ], + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py" + }, + { + "claim": "向上取整到倍数;不同于KJ向下取整", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "file": "py/imagefunc.py", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "id": "layer", + "lines": [ + 1967, + 1973 + ], + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py" + }, + { + "claim": "LayerStyle包逐模块合并注册,未执行", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "file": "__init__.py", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a", + "id": "layer", + "lines": [ + 29, + 48 + ], + "local_file": "../resize-compare-reference/layer____init__.py", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py" + }, + { + "claim": "准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "file": "modules/impact/logics.py", + "git_commit_binding": "unknown", + "id": "impact", + "lines": [ + 239, + 255 + ], + "local_file": "../resize-compare-reference/impact__modules__impact__logics.py", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip" + }, + { + "claim": "ImpactPack logics导入", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "file": "__init__.py", + "git_commit_binding": "unknown", + "id": "impact", + "lines": [ + 48, + 48 + ], + "local_file": "../resize-compare-reference/impact____init__.py", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip" + }, + { + "claim": "ImpactInt注册", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "file": "__init__.py", + "git_commit_binding": "unknown", + "id": "impact", + "lines": [ + 259, + 259 + ], + "local_file": "../resize-compare-reference/impact____init__.py", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip" + }, + { + "claim": "准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "file": "py/display_any.py", + "git_commit_binding": "unknown", + "id": "rgthree", + "lines": [ + 6, + 50 + ], + "local_file": "../resize-compare-reference/rgthree__py__display_any.py", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip" + }, + { + "claim": "只读output控件;serializeValue返回空字符串/onExecuted更新", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "file": "web/comfyui/display_any.js", + "git_commit_binding": "unknown", + "id": "rgthree", + "lines": [ + 1, + 35 + ], + "local_file": "../resize-compare-reference/rgthree__web__comfyui__display_any.js", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip" + }, + { + "claim": "Display Any (rgthree)准确命名", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "file": "py/constants.py", + "git_commit_binding": "unknown", + "id": "rgthree", + "lines": [ + 2, + 5 + ], + "local_file": "../resize-compare-reference/rgthree__py__constants.py", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip" + }, + { + "claim": "DisplayAny准确注册", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "file": "__init__.py", + "git_commit_binding": "unknown", + "id": "rgthree", + "lines": [ + 47, + 54 + ], + "local_file": "../resize-compare-reference/rgthree____init__.py", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip" + }, + { + "claim": "仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "id": "frontend", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 917, + 925 + ], + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts" + }, + { + "claim": "仅参考假设位置序列化;不证明目标实际恢复", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "id": "frontend", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 972, + 984 + ], + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts" + }, + { + "claim": "仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "file": "src/extensions/core/uploadImage.ts", + "git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903", + "id": "frontend", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 10, + 40 + ], + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts", + "sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts" + }, + { + "claim": "仅参考假设IMAGEUPLOAD控件构造入口", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "file": "src/scripts/widgets.ts", + "git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c", + "id": "frontend", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 305, + 308 + ], + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__scripts__widgets.ts", + "sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts" + }, + { + "claim": "仅参考假设上传控件行为;源保存image原样保留,未上传", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0", + "id": "frontend", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 136 + ], + "local_file": "../resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts", + "sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "load", + "lines": [ + 1, + 674 + ], + "local_file": "../resize-compare-reference/load__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "core", + "lines": [ + 1, + 674 + ], + "local_file": "../resize-compare-reference/core__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "kj", + "lines": [ + 1, + 674 + ], + "local_file": "../resize-compare-reference/kj__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "file": "LICENSE", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "id": "layer", + "lines": [ + 1, + 21 + ], + "local_file": "../resize-compare-reference/layer__LICENSE", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "file": "LICENSE.txt", + "git_commit_binding": "unknown", + "id": "impact", + "lines": [ + 1, + 674 + ], + "local_file": "../resize-compare-reference/impact__LICENSE.txt", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "file": "LICENSE", + "git_commit_binding": "unknown", + "id": "rgthree", + "lines": [ + 1, + 21 + ], + "local_file": "../resize-compare-reference/rgthree__LICENSE", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip" + }, + { + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "frontend", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 674 + ], + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE" + } + ], + "steps": [ + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。", + "操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。", + "操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。" + ], + "user_overview": "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "versions": [ + "load→d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "core→51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "kj→f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "layer→89014d833d2ad0998d724090eff1456692692a1d", + "impact→发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;Git绑定未知", + "rgthree→发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;Git绑定未知", + "frontend→7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;仅参考假设1.45.20,源前端未知" + ], + "zero_saved_nodes": [ + { + "class_type": "PreviewImage", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ], + "node_id": "3", + "pointer": "/nodes/13/widgets_values" + }, + { + "class_type": "PreviewImage", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ], + "node_id": "8", + "pointer": "/nodes/14/widgets_values" + }, + { + "class_type": "PreviewImage", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ], + "node_id": "9", + "pointer": "/nodes/15/widgets_values" + }, + { + "class_type": "PreviewImage", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ], + "node_id": "10", + "pointer": "/nodes/16/widgets_values" + } + ] + }, + "io": { + "inputs": [], + "outputs": [] + }, + "materials": [], + "params": [], + "purpose": "图像放大方法对照图包含 ImageScale、ImageResizeKJv2 及比例缩放与还原节点。", + "snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "source_links": [ + { + "link": [ + 1, + 1, + 0, + 2, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 3, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 4, + 1, + 0, + 5, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 5, + 1, + 0, + 7, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 6, + 4, + 0, + 8, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 7, + 5, + 0, + 9, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 8, + 7, + 0, + 10, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 9, + 11, + 0, + 2, + 2, + "INT" + ], + "scope": "" + }, + { + "link": [ + 10, + 12, + 0, + 2, + 3, + "INT" + ], + "scope": "" + }, + { + "link": [ + 11, + 12, + 0, + 4, + 3, + "INT" + ], + "scope": "" + }, + { + "link": [ + 12, + 12, + 0, + 5, + 6, + "INT" + ], + "scope": "" + }, + { + "link": [ + 13, + 12, + 0, + 7, + 9, + "INT" + ], + "scope": "" + }, + { + "link": [ + 14, + 11, + 0, + 4, + 2, + "INT" + ], + "scope": "" + }, + { + "link": [ + 17, + 2, + 1, + 13, + 0, + "*" + ], + "scope": "" + }, + { + "link": [ + 18, + 2, + 2, + 14, + 0, + "*" + ], + "scope": "" + }, + { + "link": [ + 19, + 5, + 3, + 15, + 0, + "*" + ], + "scope": "" + }, + { + "link": [ + 20, + 5, + 4, + 16, + 0, + "*" + ], + "scope": "" + }, + { + "link": [ + 21, + 7, + 3, + 17, + 0, + "*" + ], + "scope": "" + }, + { + "link": [ + 22, + 7, + 4, + 18, + 0, + "*" + ], + "scope": "" + } + ], + "source_nodes": [ + { + "class_type": "LoadImage", + "inputs": [ + { + "link": null, + "localized_name": "图像", + "name": "image", + "type": "COMBO", + "widget": { + "name": "image" + } + }, + { + "link": null, + "localized_name": "选择文件上传", + "name": "upload", + "type": "IMAGEUPLOAD", + "widget": { + "name": "upload" + } + } + ], + "mode": 0, + "node_id": "1", + "source_values": [ + "360截图20251018220547863.jpg", + "image" + ], + "title": null + }, + { + "class_type": "ImageScale", + "inputs": [ + { + "label": "图像", + "link": 3, + "localized_name": "图像", + "name": "image", + "type": "IMAGE" + }, + { + "link": null, + "localized_name": "缩放方法", + "name": "upscale_method", + "type": "COMBO", + "widget": { + "name": "upscale_method" + } + }, + { + "link": 14, + "localized_name": "宽度", + "name": "width", + "type": "INT", + "widget": { + "name": "width" + } + }, + { + "link": 11, + "localized_name": "高度", + "name": "height", + "type": "INT", + "widget": { + "name": "height" + } + }, + { + "link": null, + "localized_name": "裁剪", + "name": "crop", + "type": "COMBO", + "widget": { + "name": "crop" + } + } + ], + "mode": 0, + "node_id": "4", + "source_values": [ + "nearest-exact", + 480, + 720, + "disabled" + ], + "title": null + }, + { + "class_type": "ImpactInt", + "inputs": [ + { + "link": null, + "localized_name": "值", + "name": "value", + "type": "INT", + "widget": { + "name": "value" + } + } + ], + "mode": 0, + "node_id": "12", + "source_values": [ + 720 + ], + "title": null + }, + { + "class_type": "ImpactInt", + "inputs": [ + { + "link": null, + "localized_name": "值", + "name": "value", + "type": "INT", + "widget": { + "name": "value" + } + } + ], + "mode": 0, + "node_id": "11", + "source_values": [ + 480 + ], + "title": null + }, + { + "class_type": "ImageResizeKJv2", + "inputs": [ + { + "label": "image", + "link": 1, + "localized_name": "image", + "name": "image", + "type": "IMAGE" + }, + { + "label": "mask", + "link": null, + "localized_name": "mask", + "name": "mask", + "shape": 7, + "type": "MASK" + }, + { + "label": "width", + "link": 9, + "localized_name": "width", + "name": "width", + "type": "INT", + "widget": { + "name": "width" + } + }, + { + "label": "height", + "link": 10, + "localized_name": "height", + "name": "height", + "type": "INT", + "widget": { + "name": "height" + } + }, + { + "label": "upscale_method", + "link": null, + "localized_name": "upscale_method", + "name": "upscale_method", + "type": "COMBO", + "widget": { + "name": "upscale_method" + } + }, + { + "label": "keep_proportion", + "link": null, + "localized_name": "keep_proportion", + "name": "keep_proportion", + "type": "COMBO", + "widget": { + "name": "keep_proportion" + } + }, + { + "label": "pad_color", + "link": null, + "localized_name": "pad_color", + "name": "pad_color", + "type": "STRING", + "widget": { + "name": "pad_color" + } + }, + { + "label": "crop_position", + "link": null, + "localized_name": "crop_position", + "name": "crop_position", + "type": "COMBO", + "widget": { + "name": "crop_position" + } + }, + { + "label": "divisible_by", + "link": null, + "localized_name": "divisible_by", + "name": "divisible_by", + "type": "INT", + "widget": { + "name": "divisible_by" + } + }, + { + "label": "device", + "link": null, + "localized_name": "device", + "name": "device", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "device" + } + } + ], + "mode": 0, + "node_id": "2", + "source_values": [ + 480, + 720, + "lanczos", + "stretch", + "0, 0, 0", + "center", + 16, + "cpu" + ], + "title": null + }, + { + "class_type": "LayerUtility: ImageScaleRestore V2", + "inputs": [ + { + "label": "图像", + "link": 4, + "localized_name": "图像", + "name": "image", + "type": "IMAGE" + }, + { + "label": "遮罩", + "link": null, + "localized_name": "遮罩", + "name": "mask", + "shape": 7, + "type": "MASK" + }, + { + "label": "原始大小", + "link": null, + "localized_name": "原始大小", + "name": "original_size", + "shape": 7, + "type": "BOX" + }, + { + "link": null, + "localized_name": "缩放", + "name": "scale", + "type": "FLOAT", + "widget": { + "name": "scale" + } + }, + { + "link": null, + "localized_name": "采样方法", + "name": "method", + "type": "COMBO", + "widget": { + "name": "method" + } + }, + { + "link": null, + "localized_name": "缩放方法", + "name": "scale_by", + "type": "COMBO", + "widget": { + "name": "scale_by" + } + }, + { + "link": 12, + "localized_name": "缩放长度", + "name": "scale_by_length", + "type": "INT", + "widget": { + "name": "scale_by_length" + } + } + ], + "mode": 0, + "node_id": "5", + "source_values": [ + 1, + "lanczos", + "by_scale", + 720 + ], + "title": null + }, + { + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "inputs": [ + { + "label": "图像", + "link": 5, + "localized_name": "图像", + "name": "image", + "shape": 7, + "type": "IMAGE" + }, + { + "label": "遮罩", + "link": null, + "localized_name": "遮罩", + "name": "mask", + "shape": 7, + "type": "MASK" + }, + { + "link": null, + "localized_name": "宽高比", + "name": "aspect_ratio", + "type": "COMBO", + "widget": { + "name": "aspect_ratio" + } + }, + { + "link": null, + "localized_name": "比例宽", + "name": "proportional_width", + "type": "INT", + "widget": { + "name": "proportional_width" + } + }, + { + "link": null, + "localized_name": "比例高", + "name": "proportional_height", + "type": "INT", + "widget": { + "name": "proportional_height" + } + }, + { + "link": null, + "localized_name": "缩放模式", + "name": "fit", + "type": "COMBO", + "widget": { + "name": "fit" + } + }, + { + "link": null, + "localized_name": "采样方法", + "name": "method", + "type": "COMBO", + "widget": { + "name": "method" + } + }, + { + "link": null, + "localized_name": "倍数取整", + "name": "round_to_multiple", + "type": "COMBO", + "widget": { + "name": "round_to_multiple" + } + }, + { + "link": null, + "localized_name": "缩放到边", + "name": "scale_to_side", + "type": "COMBO", + "widget": { + "name": "scale_to_side" + } + }, + { + "link": 13, + "localized_name": "缩放到长度", + "name": "scale_to_length", + "type": "INT", + "widget": { + "name": "scale_to_length" + } + }, + { + "link": null, + "localized_name": "背景颜色", + "name": "background_color", + "type": "STRING", + "widget": { + "name": "background_color" + } + } + ], + "mode": 0, + "node_id": "7", + "source_values": [ + "original", + 1, + 1, + "letterbox", + "lanczos", + "8", + "None", + 720, + "#000000" + ], + "title": null + }, + { + "class_type": "Display Any (rgthree)", + "inputs": [ + { + "dir": 3, + "label": "输入", + "link": 21, + "localized_name": "source", + "name": "source", + "type": "*" + } + ], + "mode": 0, + "node_id": "17", + "source_values": [ + "" + ], + "title": null + }, + { + "class_type": "Display Any (rgthree)", + "inputs": [ + { + "dir": 3, + "label": "输入", + "link": 17, + "localized_name": "source", + "name": "source", + "type": "*" + } + ], + "mode": 0, + "node_id": "13", + "source_values": [ + "" + ], + "title": null + }, + { + "class_type": "Display Any (rgthree)", + "inputs": [ + { + "dir": 3, + "label": "输入", + "link": 22, + "localized_name": "source", + "name": "source", + "type": "*" + } + ], + "mode": 0, + "node_id": "18", + "source_values": [ + "" + ], + "title": null + }, + { + "class_type": "Display Any (rgthree)", + "inputs": [ + { + "dir": 3, + "label": "输入", + "link": 19, + "localized_name": "source", + "name": "source", + "type": "*" + } + ], + "mode": 0, + "node_id": "15", + "source_values": [ + "" + ], + "title": null + }, + { + "class_type": "Display Any (rgthree)", + "inputs": [ + { + "dir": 3, + "label": "输入", + "link": 20, + "localized_name": "source", + "name": "source", + "type": "*" + } + ], + "mode": 0, + "node_id": "16", + "source_values": [ + "" + ], + "title": null + }, + { + "class_type": "Display Any (rgthree)", + "inputs": [ + { + "dir": 3, + "label": "输入", + "link": 18, + "localized_name": "source", + "name": "source", + "type": "*" + } + ], + "mode": 0, + "node_id": "14", + "source_values": [ + "" + ], + "title": null + }, + { + "class_type": "PreviewImage", + "inputs": [ + { + "label": "图像", + "link": 2, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + } + ], + "mode": 0, + "node_id": "3", + "source_values": [], + "title": null + }, + { + "class_type": "PreviewImage", + "inputs": [ + { + "label": "图像", + "link": 6, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + } + ], + "mode": 0, + "node_id": "8", + "source_values": [], + "title": null + }, + { + "class_type": "PreviewImage", + "inputs": [ + { + "label": "图像", + "link": 7, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + } + ], + "mode": 0, + "node_id": "9", + "source_values": [], + "title": null + }, + { + "class_type": "PreviewImage", + "inputs": [ + { + "label": "图像", + "link": 8, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + } + ], + "mode": 0, + "node_id": "10", + "source_values": [], + "title": null + } + ], + "source_notes": [], + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "source_review": { + "complete": false, + "evidence": { + "link_count": 20, + "model_references": [], + "named_value_count": 0, + "node_count": 17, + "note_node_ids": [], + "unnamed_widget_node_ids": [ + "1", + "4", + "12", + "11", + "2", + "5", + "7", + "17", + "13", + "18", + "15", + "16", + "14" + ] + }, + "instruction": "分别检查各 PreviewImage 的来源;这是一组缩放对比,不能当作含生成模型的超分验证。", + "purpose": "图像放大方法对照图包含 ImageScale、ImageResizeKJv2 及比例缩放与还原节点。", + "reviewed_named_fields": [], + "scope": [ + "结构及用途局部审校", + "源具名参数/注释/连线/素材模型用途人工语义局部审校" + ], + "semantic_review": { + "batch": "HEL-892-third", + "conclusions": [ + "1图像分别送2、4、5、7四种缩放方法", + "2结果到3预览,5/7多个额外出口接Display Any。先对照原图检查拉伸、留边及尺寸输出,nearest-exact与lanczos只是源选项现值,无注释或模型引用支持质量排序。" + ], + "evidence_refs": { + "nodes": [ + { + "node_id": "1", + "pointer": "/source_nodes/0" + }, + { + "node_id": "4", + "pointer": "/source_nodes/1" + }, + { + "node_id": "2", + "pointer": "/source_nodes/4" + }, + { + "node_id": "5", + "pointer": "/source_nodes/5" + }, + { + "node_id": "7", + "pointer": "/source_nodes/6" + }, + { + "node_id": "3", + "pointer": "/source_nodes/13" + } + ], + "notes": [], + "source_graph": "/source_links(按scope区分主图与子图;连线ID仅在各自scope内有效)" + }, + "mechanical_inventory": { + "link_count": 20, + "named_value_count": 0, + "note_count": 0, + "position_widget_node_count": 13 + }, + "named_parameter_finding": "未发现可由源文件确认的具名参数", + "operation_check": "1图像分别送2、4、5、7四种缩放方法;2结果到3预览,5/7多个额外出口接Display Any。先对照原图检查拉伸、留边及尺寸输出,nearest-exact与lanczos只是源选项现值,无注释或模型引用支持质量排序。", + "unknowns": [ + "位置数组未按位置具名,具名字段单位/合法范围/调整效果未获定义验证", + "注释中的效果、性能、版本支持为源作者陈述,未作外部或环境验证", + "静音/旁路、虚拟节点、子图、开关与连线覆盖的实际执行结果待原前端API导出", + "模型/素材引用只表示源文件出现,实际安装、位置、可用性和输出编码待真实环境核对" + ] + }, + "source_sha": "b16eb7cea17ce125be95637c2309c941870cd25b", + "unconfirmed": [ + "逐参数语义、单位、范围和调整效果未定稿", + "UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出", + "模型/节点包位置、素材可用性及实际输出未在目标环境核对" + ] + }, + "source_review_sha": "5e7f66ae91becdc1661c4353a00eebcd90f8f36bf717bf1a034539a0961de627", + "status": { + "doc_done": false, + "exec_verified": false, + "imported": true + }, + "steps": [ + "分别检查各 PreviewImage 的来源;这是一组缩放对比,不能当作含生成模型的超分验证。", + "1图像分别送2、4、5、7四种缩放方法;2结果到3预览,5/7多个额外出口接Display Any。先对照原图检查拉伸、留边及尺寸输出,nearest-exact与lanczos只是源选项现值,无注释或模型引用支持质量排序。", + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。", + "操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。", + "操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。" + ], + "title": "图像放大比较" +} diff --git a/docs/hel-892/resize-compare-document-evidence/audit-summary.json b/docs/hel-892/resize-compare-document-evidence/audit-summary.json new file mode 100644 index 00000000..dfd588aa --- /dev/null +++ b/docs/hel-892/resize-compare-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/resize-compare-document-evidence/authored-diff-check.txt b/docs/hel-892/resize-compare-document-evidence/authored-diff-check.txt new file mode 100644 index 00000000..ac0ab83d --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/authored-diff-check.txt @@ -0,0 +1 @@ +PASS authored staged diff whitespace; exact upstream raw bytes retained including CRLF. diff --git a/docs/hel-892/resize-compare-document-evidence/boundaries.json b/docs/hel-892/resize-compare-document-evidence/boundaries.json new file mode 100644 index 00000000..8b31796b --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/boundaries.json @@ -0,0 +1,728 @@ +{ + "base": "ce9502af89dcc2b0047785e4425a95c010da2fec", + "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_thirty_three_blocks_unchanged": true, + "drawer_css_unchanged": true, + "drawer_whole_file_unchanged": true, + "drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1", + "conversion_rerun": false, + "profiles_28_candidates_9_diffs_6": "unchanged" +} diff --git a/docs/hel-892/resize-compare-document-evidence/browser-final.txt b/docs/hel-892/resize-compare-document-evidence/browser-final.txt new file mode 100644 index 00000000..3040fa22 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/browser-final.txt @@ -0,0 +1,1343 @@ +PASS 34图1069保存位置 +PASS 34图25源注释 +PASS 1440 图像放大比较默认中文用途 +PASS 1440 图像放大比较源审校默认折叠 +PASS 1440 图像放大比较技术范围默认折叠 +PASS 1440 图像放大比较默认无执行计数/实现标识 +PASS 1440 图像放大比较默认依据限制可见 +PASS 1440 图像放大比较 说明未定稿 +PASS 1440 图像放大比较 未验证实跑 +PASS 1440 图像放大比较 未检查 +PASS 1440 图像放大比较停用/时间戳空 +PASS 1440 图像放大比较参数全保留 +PASS 1440 图像放大比较默认无溢出 +PASS 1440 图像放大比较原用途/源路径展开保留 +PASS 1440 图像放大比较展开流程 0 +PASS 1440 图像放大比较展开流程 1 +PASS 1440 图像放大比较展开流程 2 +PASS 1440 图像放大比较展开流程 3 +PASS 1440 图像放大比较展开流程 4 +PASS 1440 图像放大比较展开流程 5 +PASS 1440 图像放大比较展开流程 6 +PASS 1440 图像放大比较展开流程 7 +PASS 1440 图像放大比较展开流程 8 +PASS 1440 图像放大比较展开流程 9 +PASS 1440 图像放大比较展开流程 10 +PASS 1440 图像放大比较展开流程 11 +PASS 1440 图像放大比较展开流程 12 +PASS 1440 图像放大比较展开流程 13 +PASS 1440 图像放大比较展开流程 14 +PASS 1440 图像放大比较展开流程 15 +PASS 1440 图像放大比较展开流程 16 +PASS 1440 图像放大比较展开流程 17 +PASS 1440 图像放大比较展开流程 18 +PASS 1440 图像放大比较展开流程 19 +PASS 1440 图像放大比较展开流程 20 +PASS 1440 图像放大比较展开流程 21 +PASS 1440 图像放大比较展开流程 22 +PASS 1440 图像放大比较展开流程 23 +PASS 1440 图像放大比较展开流程 24 +PASS 1440 图像放大比较展开流程 25 +PASS 1440 图像放大比较展开流程 26 +PASS 1440 图像放大比较展开流程 27 +PASS 1440 图像放大比较展开流程 28 +PASS 1440 图像放大比较展开流程 29 +PASS 1440 图像放大比较展开流程 30 +PASS 1440 图像放大比较展开流程 31 +PASS 1440 图像放大比较展开流程 32 +PASS 1440 图像放大比较展开流程 33 +PASS 1440 图像放大比较原件摘要可展开 +PASS 1440 图像放大比较版本 0 +PASS 1440 图像放大比较版本 1 +PASS 1440 图像放大比较版本 2 +PASS 1440 图像放大比较版本 3 +PASS 1440 图像放大比较版本 4 +PASS 1440 图像放大比较版本 5 +PASS 1440 图像放大比较版本 6 +PASS 1440 1.image键盘展开 +PASS 1440 1.image用途/单位/范围/来源条件 +PASS 1440 1.image精确保留现值 +PASS 1440 1.image指针默认折叠 +PASS 1440 1.image精确源码/类型/指针 +PASS 1440 1.image展开无溢出 +PASS 1440 1.upload键盘展开 +PASS 1440 1.upload用途/单位/范围/来源条件 +PASS 1440 1.upload精确保留现值 +PASS 1440 1.upload指针默认折叠 +PASS 1440 1.upload精确源码/类型/指针 +PASS 1440 1.upload展开无溢出 +PASS 1440 4.upscale_method键盘展开 +PASS 1440 4.upscale_method用途/单位/范围/来源条件 +PASS 1440 4.upscale_method精确保留现值 +PASS 1440 4.upscale_method指针默认折叠 +PASS 1440 4.upscale_method精确源码/类型/指针 +PASS 1440 4.upscale_method展开无溢出 +PASS 1440 4.width键盘展开 +PASS 1440 4.width用途/单位/范围/来源条件 +PASS 1440 4.width精确保留现值 +PASS 1440 4.width指针默认折叠 +PASS 1440 4.width精确源码/类型/指针 +PASS 1440 4.width展开无溢出 +PASS 1440 4.height键盘展开 +PASS 1440 4.height用途/单位/范围/来源条件 +PASS 1440 4.height精确保留现值 +PASS 1440 4.height指针默认折叠 +PASS 1440 4.height精确源码/类型/指针 +PASS 1440 4.height展开无溢出 +PASS 1440 4.crop键盘展开 +PASS 1440 4.crop用途/单位/范围/来源条件 +PASS 1440 4.crop精确保留现值 +PASS 1440 4.crop指针默认折叠 +PASS 1440 4.crop精确源码/类型/指针 +PASS 1440 4.crop展开无溢出 +PASS 1440 12.value键盘展开 +PASS 1440 12.value用途/单位/范围/来源条件 +PASS 1440 12.value精确保留现值 +PASS 1440 12.value指针默认折叠 +PASS 1440 12.value精确源码/类型/指针 +PASS 1440 12.value展开无溢出 +PASS 1440 11.value键盘展开 +PASS 1440 11.value用途/单位/范围/来源条件 +PASS 1440 11.value精确保留现值 +PASS 1440 11.value指针默认折叠 +PASS 1440 11.value精确源码/类型/指针 +PASS 1440 11.value展开无溢出 +PASS 1440 2.width键盘展开 +PASS 1440 2.width用途/单位/范围/来源条件 +PASS 1440 2.width精确保留现值 +PASS 1440 2.width指针默认折叠 +PASS 1440 2.width精确源码/类型/指针 +PASS 1440 2.width展开无溢出 +PASS 1440 2.height键盘展开 +PASS 1440 2.height用途/单位/范围/来源条件 +PASS 1440 2.height精确保留现值 +PASS 1440 2.height指针默认折叠 +PASS 1440 2.height精确源码/类型/指针 +PASS 1440 2.height展开无溢出 +PASS 1440 2.upscale_method键盘展开 +PASS 1440 2.upscale_method用途/单位/范围/来源条件 +PASS 1440 2.upscale_method精确保留现值 +PASS 1440 2.upscale_method指针默认折叠 +PASS 1440 2.upscale_method精确源码/类型/指针 +PASS 1440 2.upscale_method展开无溢出 +PASS 1440 2.keep_proportion键盘展开 +PASS 1440 2.keep_proportion用途/单位/范围/来源条件 +PASS 1440 2.keep_proportion精确保留现值 +PASS 1440 2.keep_proportion指针默认折叠 +PASS 1440 2.keep_proportion精确源码/类型/指针 +PASS 1440 2.keep_proportion展开无溢出 +PASS 1440 2.pad_color键盘展开 +PASS 1440 2.pad_color用途/单位/范围/来源条件 +PASS 1440 2.pad_color精确保留现值 +PASS 1440 2.pad_color指针默认折叠 +PASS 1440 2.pad_color精确源码/类型/指针 +PASS 1440 2.pad_color展开无溢出 +PASS 1440 2.crop_position键盘展开 +PASS 1440 2.crop_position用途/单位/范围/来源条件 +PASS 1440 2.crop_position精确保留现值 +PASS 1440 2.crop_position指针默认折叠 +PASS 1440 2.crop_position精确源码/类型/指针 +PASS 1440 2.crop_position展开无溢出 +PASS 1440 2.divisible_by键盘展开 +PASS 1440 2.divisible_by用途/单位/范围/来源条件 +PASS 1440 2.divisible_by精确保留现值 +PASS 1440 2.divisible_by指针默认折叠 +PASS 1440 2.divisible_by精确源码/类型/指针 +PASS 1440 2.divisible_by展开无溢出 +PASS 1440 2.device键盘展开 +PASS 1440 2.device用途/单位/范围/来源条件 +PASS 1440 2.device精确保留现值 +PASS 1440 2.device指针默认折叠 +PASS 1440 2.device精确源码/类型/指针 +PASS 1440 2.device展开无溢出 +PASS 1440 5.scale键盘展开 +PASS 1440 5.scale用途/单位/范围/来源条件 +PASS 1440 5.scale精确保留现值 +PASS 1440 5.scale指针默认折叠 +PASS 1440 5.scale精确源码/类型/指针 +PASS 1440 5.scale展开无溢出 +PASS 1440 5.method键盘展开 +PASS 1440 5.method用途/单位/范围/来源条件 +PASS 1440 5.method精确保留现值 +PASS 1440 5.method指针默认折叠 +PASS 1440 5.method精确源码/类型/指针 +PASS 1440 5.method展开无溢出 +PASS 1440 5.scale_by键盘展开 +PASS 1440 5.scale_by用途/单位/范围/来源条件 +PASS 1440 5.scale_by精确保留现值 +PASS 1440 5.scale_by指针默认折叠 +PASS 1440 5.scale_by精确源码/类型/指针 +PASS 1440 5.scale_by展开无溢出 +PASS 1440 5.scale_by_length键盘展开 +PASS 1440 5.scale_by_length用途/单位/范围/来源条件 +PASS 1440 5.scale_by_length精确保留现值 +PASS 1440 5.scale_by_length指针默认折叠 +PASS 1440 5.scale_by_length精确源码/类型/指针 +PASS 1440 5.scale_by_length展开无溢出 +PASS 1440 7.aspect_ratio键盘展开 +PASS 1440 7.aspect_ratio用途/单位/范围/来源条件 +PASS 1440 7.aspect_ratio精确保留现值 +PASS 1440 7.aspect_ratio指针默认折叠 +PASS 1440 7.aspect_ratio精确源码/类型/指针 +PASS 1440 7.aspect_ratio展开无溢出 +PASS 1440 7.proportional_width键盘展开 +PASS 1440 7.proportional_width用途/单位/范围/来源条件 +PASS 1440 7.proportional_width精确保留现值 +PASS 1440 7.proportional_width指针默认折叠 +PASS 1440 7.proportional_width精确源码/类型/指针 +PASS 1440 7.proportional_width展开无溢出 +PASS 1440 7.proportional_height键盘展开 +PASS 1440 7.proportional_height用途/单位/范围/来源条件 +PASS 1440 7.proportional_height精确保留现值 +PASS 1440 7.proportional_height指针默认折叠 +PASS 1440 7.proportional_height精确源码/类型/指针 +PASS 1440 7.proportional_height展开无溢出 +PASS 1440 7.fit键盘展开 +PASS 1440 7.fit用途/单位/范围/来源条件 +PASS 1440 7.fit精确保留现值 +PASS 1440 7.fit指针默认折叠 +PASS 1440 7.fit精确源码/类型/指针 +PASS 1440 7.fit展开无溢出 +PASS 1440 7.method键盘展开 +PASS 1440 7.method用途/单位/范围/来源条件 +PASS 1440 7.method精确保留现值 +PASS 1440 7.method指针默认折叠 +PASS 1440 7.method精确源码/类型/指针 +PASS 1440 7.method展开无溢出 +PASS 1440 7.round_to_multiple键盘展开 +PASS 1440 7.round_to_multiple用途/单位/范围/来源条件 +PASS 1440 7.round_to_multiple精确保留现值 +PASS 1440 7.round_to_multiple指针默认折叠 +PASS 1440 7.round_to_multiple精确源码/类型/指针 +PASS 1440 7.round_to_multiple展开无溢出 +PASS 1440 7.scale_to_side键盘展开 +PASS 1440 7.scale_to_side用途/单位/范围/来源条件 +PASS 1440 7.scale_to_side精确保留现值 +PASS 1440 7.scale_to_side指针默认折叠 +PASS 1440 7.scale_to_side精确源码/类型/指针 +PASS 1440 7.scale_to_side展开无溢出 +PASS 1440 7.scale_to_length键盘展开 +PASS 1440 7.scale_to_length用途/单位/范围/来源条件 +PASS 1440 7.scale_to_length精确保留现值 +PASS 1440 7.scale_to_length指针默认折叠 +PASS 1440 7.scale_to_length精确源码/类型/指针 +PASS 1440 7.scale_to_length展开无溢出 +PASS 1440 7.background_color键盘展开 +PASS 1440 7.background_color用途/单位/范围/来源条件 +PASS 1440 7.background_color精确保留现值 +PASS 1440 7.background_color指针默认折叠 +PASS 1440 7.background_color精确源码/类型/指针 +PASS 1440 7.background_color展开无溢出 +PASS 1440 17.output键盘展开 +PASS 1440 17.output用途/单位/范围/来源条件 +PASS 1440 17.output精确保留现值 +PASS 1440 17.output指针默认折叠 +PASS 1440 17.output精确源码/类型/指针 +PASS 1440 17.output展开无溢出 +PASS 1440 13.output键盘展开 +PASS 1440 13.output用途/单位/范围/来源条件 +PASS 1440 13.output精确保留现值 +PASS 1440 13.output指针默认折叠 +PASS 1440 13.output精确源码/类型/指针 +PASS 1440 13.output展开无溢出 +PASS 1440 18.output键盘展开 +PASS 1440 18.output用途/单位/范围/来源条件 +PASS 1440 18.output精确保留现值 +PASS 1440 18.output指针默认折叠 +PASS 1440 18.output精确源码/类型/指针 +PASS 1440 18.output展开无溢出 +PASS 1440 15.output键盘展开 +PASS 1440 15.output用途/单位/范围/来源条件 +PASS 1440 15.output精确保留现值 +PASS 1440 15.output指针默认折叠 +PASS 1440 15.output精确源码/类型/指针 +PASS 1440 15.output展开无溢出 +PASS 1440 16.output键盘展开 +PASS 1440 16.output用途/单位/范围/来源条件 +PASS 1440 16.output精确保留现值 +PASS 1440 16.output指针默认折叠 +PASS 1440 16.output精确源码/类型/指针 +PASS 1440 16.output展开无溢出 +PASS 1440 14.output键盘展开 +PASS 1440 14.output用途/单位/范围/来源条件 +PASS 1440 14.output精确保留现值 +PASS 1440 14.output指针默认折叠 +PASS 1440 14.output精确源码/类型/指针 +PASS 1440 14.output展开无溢出 +PASS 1440Tab焦点保留 +PASS 1440ShiftTab焦点保留 +PASS 1440 图像放大比较关闭归还焦点 +PASS 1440 VOSR2_图像超分放大默认中文用途 +PASS 1440 VOSR2_图像超分放大源审校默认折叠 +PASS 1440 VOSR2_图像超分放大技术范围默认折叠 +PASS 1440 VOSR2_图像超分放大默认无执行计数/实现标识 +PASS 1440 VOSR2_图像超分放大默认依据限制可见 +PASS 1440 VOSR2_图像超分放大 说明未定稿 +PASS 1440 VOSR2_图像超分放大 未验证实跑 +PASS 1440 VOSR2_图像超分放大 未检查 +PASS 1440 VOSR2_图像超分放大停用/时间戳空 +PASS 1440 VOSR2_图像超分放大参数全保留 +PASS 1440 VOSR2_图像超分放大默认无溢出 +PASS 1440 VOSR2_图像超分放大旧图归还焦点 +PASS 1440 Seedvr2_3b_int8_视频放大默认中文用途 +PASS 1440 Seedvr2_3b_int8_视频放大源审校默认折叠 +PASS 1440 Seedvr2_3b_int8_视频放大技术范围默认折叠 +PASS 1440 Seedvr2_3b_int8_视频放大默认无执行计数/实现标识 +PASS 1440 Seedvr2_3b_int8_视频放大默认依据限制可见 +PASS 1440 Seedvr2_3b_int8_视频放大 说明未定稿 +PASS 1440 Seedvr2_3b_int8_视频放大 未验证实跑 +PASS 1440 Seedvr2_3b_int8_视频放大 未检查 +PASS 1440 Seedvr2_3b_int8_视频放大停用/时间戳空 +PASS 1440 Seedvr2_3b_int8_视频放大参数全保留 +PASS 1440 Seedvr2_3b_int8_视频放大默认无溢出 +PASS 1440 Seedvr2_3b_int8_视频放大旧图归还焦点 +PASS 1440 Seedvr2_3b_int8_图像放大默认中文用途 +PASS 1440 Seedvr2_3b_int8_图像放大源审校默认折叠 +PASS 1440 Seedvr2_3b_int8_图像放大技术范围默认折叠 +PASS 1440 Seedvr2_3b_int8_图像放大默认无执行计数/实现标识 +PASS 1440 Seedvr2_3b_int8_图像放大默认依据限制可见 +PASS 1440 Seedvr2_3b_int8_图像放大 说明未定稿 +PASS 1440 Seedvr2_3b_int8_图像放大 未验证实跑 +PASS 1440 Seedvr2_3b_int8_图像放大 未检查 +PASS 1440 Seedvr2_3b_int8_图像放大停用/时间戳空 +PASS 1440 Seedvr2_3b_int8_图像放大参数全保留 +PASS 1440 Seedvr2_3b_int8_图像放大默认无溢出 +PASS 1440 Seedvr2_3b_int8_图像放大旧图归还焦点 +PASS 1440 RTX_video_upscale默认中文用途 +PASS 1440 RTX_video_upscale源审校默认折叠 +PASS 1440 RTX_video_upscale技术范围默认折叠 +PASS 1440 RTX_video_upscale默认无执行计数/实现标识 +PASS 1440 RTX_video_upscale默认依据限制可见 +PASS 1440 RTX_video_upscale 说明未定稿 +PASS 1440 RTX_video_upscale 未验证实跑 +PASS 1440 RTX_video_upscale 未检查 +PASS 1440 RTX_video_upscale停用/时间戳空 +PASS 1440 RTX_video_upscale参数全保留 +PASS 1440 RTX_video_upscale默认无溢出 +PASS 1440 RTX_video_upscale旧图归还焦点 +PASS 1440 RTX_image_upscale默认中文用途 +PASS 1440 RTX_image_upscale源审校默认折叠 +PASS 1440 RTX_image_upscale技术范围默认折叠 +PASS 1440 RTX_image_upscale默认无执行计数/实现标识 +PASS 1440 RTX_image_upscale默认依据限制可见 +PASS 1440 RTX_image_upscale 说明未定稿 +PASS 1440 RTX_image_upscale 未验证实跑 +PASS 1440 RTX_image_upscale 未检查 +PASS 1440 RTX_image_upscale停用/时间戳空 +PASS 1440 RTX_image_upscale参数全保留 +PASS 1440 RTX_image_upscale默认无溢出 +PASS 1440 RTX_image_upscale旧图归还焦点 +PASS 1440 手动按分镜视频截取默认中文用途 +PASS 1440 手动按分镜视频截取源审校默认折叠 +PASS 1440 手动按分镜视频截取技术范围默认折叠 +PASS 1440 手动按分镜视频截取默认无执行计数/实现标识 +PASS 1440 手动按分镜视频截取默认依据限制可见 +PASS 1440 手动按分镜视频截取 说明未定稿 +PASS 1440 手动按分镜视频截取 未验证实跑 +PASS 1440 手动按分镜视频截取 未检查 +PASS 1440 手动按分镜视频截取停用/时间戳空 +PASS 1440 手动按分镜视频截取参数全保留 +PASS 1440 手动按分镜视频截取默认无溢出 +PASS 1440 手动按分镜视频截取旧图归还焦点 +PASS 1440 sam3_图像视频-提示词遮罩分割默认中文用途 +PASS 1440 sam3_图像视频-提示词遮罩分割源审校默认折叠 +PASS 1440 sam3_图像视频-提示词遮罩分割技术范围默认折叠 +PASS 1440 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识 +PASS 1440 sam3_图像视频-提示词遮罩分割默认依据限制可见 +PASS 1440 sam3_图像视频-提示词遮罩分割 说明未定稿 +PASS 1440 sam3_图像视频-提示词遮罩分割 未验证实跑 +PASS 1440 sam3_图像视频-提示词遮罩分割 未检查 +PASS 1440 sam3_图像视频-提示词遮罩分割停用/时间戳空 +PASS 1440 sam3_图像视频-提示词遮罩分割参数全保留 +PASS 1440 sam3_图像视频-提示词遮罩分割默认无溢出 +PASS 1440 sam3_图像视频-提示词遮罩分割旧图归还焦点 +PASS 1440 多视频合成分屏展示默认中文用途 +PASS 1440 多视频合成分屏展示源审校默认折叠 +PASS 1440 多视频合成分屏展示技术范围默认折叠 +PASS 1440 多视频合成分屏展示默认无执行计数/实现标识 +PASS 1440 多视频合成分屏展示默认依据限制可见 +PASS 1440 多视频合成分屏展示 说明未定稿 +PASS 1440 多视频合成分屏展示 未验证实跑 +PASS 1440 多视频合成分屏展示 未检查 +PASS 1440 多视频合成分屏展示停用/时间戳空 +PASS 1440 多视频合成分屏展示参数全保留 +PASS 1440 多视频合成分屏展示默认无溢出 +PASS 1440 多视频合成分屏展示旧图归还焦点 +PASS 1440 图像4种添加水印节点默认中文用途 +PASS 1440 图像4种添加水印节点源审校默认折叠 +PASS 1440 图像4种添加水印节点技术范围默认折叠 +PASS 1440 图像4种添加水印节点默认无执行计数/实现标识 +PASS 1440 图像4种添加水印节点默认依据限制可见 +PASS 1440 图像4种添加水印节点 说明未定稿 +PASS 1440 图像4种添加水印节点 未验证实跑 +PASS 1440 图像4种添加水印节点 未检查 +PASS 1440 图像4种添加水印节点停用/时间戳空 +PASS 1440 图像4种添加水印节点参数全保留 +PASS 1440 图像4种添加水印节点默认无溢出 +PASS 1440 图像4种添加水印节点旧图归还焦点 +PASS 1440 birefnet_图像移除背景默认中文用途 +PASS 1440 birefnet_图像移除背景源审校默认折叠 +PASS 1440 birefnet_图像移除背景技术范围默认折叠 +PASS 1440 birefnet_图像移除背景默认无执行计数/实现标识 +PASS 1440 birefnet_图像移除背景默认依据限制可见 +PASS 1440 birefnet_图像移除背景 说明未定稿 +PASS 1440 birefnet_图像移除背景 未验证实跑 +PASS 1440 birefnet_图像移除背景 未检查 +PASS 1440 birefnet_图像移除背景停用/时间戳空 +PASS 1440 birefnet_图像移除背景参数全保留 +PASS 1440 birefnet_图像移除背景默认无溢出 +PASS 1440 birefnet_图像移除背景旧图归还焦点 +PASS 1440 加载本地latent解码默认中文用途 +PASS 1440 加载本地latent解码源审校默认折叠 +PASS 1440 加载本地latent解码技术范围默认折叠 +PASS 1440 加载本地latent解码默认无执行计数/实现标识 +PASS 1440 加载本地latent解码默认依据限制可见 +PASS 1440 加载本地latent解码 说明未定稿 +PASS 1440 加载本地latent解码 未验证实跑 +PASS 1440 加载本地latent解码 未检查 +PASS 1440 加载本地latent解码停用/时间戳空 +PASS 1440 加载本地latent解码参数全保留 +PASS 1440 加载本地latent解码默认无溢出 +PASS 1440 加载本地latent解码旧图归还焦点 +PASS 1440 截取视频每一帧默认中文用途 +PASS 1440 截取视频每一帧源审校默认折叠 +PASS 1440 截取视频每一帧技术范围默认折叠 +PASS 1440 截取视频每一帧默认无执行计数/实现标识 +PASS 1440 截取视频每一帧默认依据限制可见 +PASS 1440 截取视频每一帧 说明未定稿 +PASS 1440 截取视频每一帧 未验证实跑 +PASS 1440 截取视频每一帧 未检查 +PASS 1440 截取视频每一帧停用/时间戳空 +PASS 1440 截取视频每一帧参数全保留 +PASS 1440 截取视频每一帧默认无溢出 +PASS 1440 截取视频每一帧旧图归还焦点 +PASS 1440 双图像或视频合并显示默认中文用途 +PASS 1440 双图像或视频合并显示源审校默认折叠 +PASS 1440 双图像或视频合并显示技术范围默认折叠 +PASS 1440 双图像或视频合并显示默认无执行计数/实现标识 +PASS 1440 双图像或视频合并显示默认依据限制可见 +PASS 1440 双图像或视频合并显示 说明未定稿 +PASS 1440 双图像或视频合并显示 未验证实跑 +PASS 1440 双图像或视频合并显示 未检查 +PASS 1440 双图像或视频合并显示停用/时间戳空 +PASS 1440 双图像或视频合并显示参数全保留 +PASS 1440 双图像或视频合并显示默认无溢出 +PASS 1440 双图像或视频合并显示旧图归还焦点 +PASS 1440 视频转gif动图图片默认中文用途 +PASS 1440 视频转gif动图图片源审校默认折叠 +PASS 1440 视频转gif动图图片技术范围默认折叠 +PASS 1440 视频转gif动图图片默认无执行计数/实现标识 +PASS 1440 视频转gif动图图片默认依据限制可见 +PASS 1440 视频转gif动图图片 说明未定稿 +PASS 1440 视频转gif动图图片 未验证实跑 +PASS 1440 视频转gif动图图片 未检查 +PASS 1440 视频转gif动图图片停用/时间戳空 +PASS 1440 视频转gif动图图片参数全保留 +PASS 1440 视频转gif动图图片默认无溢出 +PASS 1440 视频转gif动图图片旧图归还焦点 +PASS 1440 加载图片合成视频默认中文用途 +PASS 1440 加载图片合成视频源审校默认折叠 +PASS 1440 加载图片合成视频技术范围默认折叠 +PASS 1440 加载图片合成视频默认无执行计数/实现标识 +PASS 1440 加载图片合成视频默认依据限制可见 +PASS 1440 加载图片合成视频 说明未定稿 +PASS 1440 加载图片合成视频 未验证实跑 +PASS 1440 加载图片合成视频 未检查 +PASS 1440 加载图片合成视频停用/时间戳空 +PASS 1440 加载图片合成视频参数全保留 +PASS 1440 加载图片合成视频默认无溢出 +PASS 1440 加载图片合成视频旧图归还焦点 +PASS 1440 视频倒放默认中文用途 +PASS 1440 视频倒放源审校默认折叠 +PASS 1440 视频倒放技术范围默认折叠 +PASS 1440 视频倒放默认无执行计数/实现标识 +PASS 1440 视频倒放默认依据限制可见 +PASS 1440 视频倒放 说明未定稿 +PASS 1440 视频倒放 未验证实跑 +PASS 1440 视频倒放 未检查 +PASS 1440 视频倒放停用/时间戳空 +PASS 1440 视频倒放参数全保留 +PASS 1440 视频倒放默认无溢出 +PASS 1440 视频倒放旧图归还焦点 +PASS 1440 NLF_视频人物动作骨架获取默认中文用途 +PASS 1440 NLF_视频人物动作骨架获取源审校默认折叠 +PASS 1440 NLF_视频人物动作骨架获取技术范围默认折叠 +PASS 1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识 +PASS 1440 NLF_视频人物动作骨架获取默认依据限制可见 +PASS 1440 NLF_视频人物动作骨架获取 说明未定稿 +PASS 1440 NLF_视频人物动作骨架获取 未验证实跑 +PASS 1440 NLF_视频人物动作骨架获取 未检查 +PASS 1440 NLF_视频人物动作骨架获取停用/时间戳空 +PASS 1440 NLF_视频人物动作骨架获取参数全保留 +PASS 1440 NLF_视频人物动作骨架获取默认无溢出 +PASS 1440 NLF_视频人物动作骨架获取旧图归还焦点 +PASS 1440 openpose-video-姿态检测默认中文用途 +PASS 1440 openpose-video-姿态检测源审校默认折叠 +PASS 1440 openpose-video-姿态检测技术范围默认折叠 +PASS 1440 openpose-video-姿态检测默认无执行计数/实现标识 +PASS 1440 openpose-video-姿态检测默认依据限制可见 +PASS 1440 openpose-video-姿态检测 说明未定稿 +PASS 1440 openpose-video-姿态检测 未验证实跑 +PASS 1440 openpose-video-姿态检测 未检查 +PASS 1440 openpose-video-姿态检测停用/时间戳空 +PASS 1440 openpose-video-姿态检测参数全保留 +PASS 1440 openpose-video-姿态检测默认无溢出 +PASS 1440 openpose-video-姿态检测旧图归还焦点 +PASS 1440 sdpose_视频人物姿势骨架提取默认中文用途 +PASS 1440 sdpose_视频人物姿势骨架提取源审校默认折叠 +PASS 1440 sdpose_视频人物姿势骨架提取技术范围默认折叠 +PASS 1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识 +PASS 1440 sdpose_视频人物姿势骨架提取默认依据限制可见 +PASS 1440 sdpose_视频人物姿势骨架提取 说明未定稿 +PASS 1440 sdpose_视频人物姿势骨架提取 未验证实跑 +PASS 1440 sdpose_视频人物姿势骨架提取 未检查 +PASS 1440 sdpose_视频人物姿势骨架提取停用/时间戳空 +PASS 1440 sdpose_视频人物姿势骨架提取参数全保留 +PASS 1440 sdpose_视频人物姿势骨架提取默认无溢出 +PASS 1440 sdpose_视频人物姿势骨架提取旧图归还焦点 +PASS 1440 gemma4_提示词反推(图像视频音频)默认中文用途 +PASS 1440 gemma4_提示词反推(图像视频音频)源审校默认折叠 +PASS 1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠 +PASS 1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识 +PASS 1440 gemma4_提示词反推(图像视频音频)默认依据限制可见 +PASS 1440 gemma4_提示词反推(图像视频音频) 说明未定稿 +PASS 1440 gemma4_提示词反推(图像视频音频) 未验证实跑 +PASS 1440 gemma4_提示词反推(图像视频音频) 未检查 +PASS 1440 gemma4_提示词反推(图像视频音频)停用/时间戳空 +PASS 1440 gemma4_提示词反推(图像视频音频)参数全保留 +PASS 1440 gemma4_提示词反推(图像视频音频)默认无溢出 +PASS 1440 gemma4_提示词反推(图像视频音频)旧图归还焦点 +PASS 1440 图像合并成四宫格默认中文用途 +PASS 1440 图像合并成四宫格源审校默认折叠 +PASS 1440 图像合并成四宫格技术范围默认折叠 +PASS 1440 图像合并成四宫格默认无执行计数/实现标识 +PASS 1440 图像合并成四宫格默认依据限制可见 +PASS 1440 图像合并成四宫格 说明未定稿 +PASS 1440 图像合并成四宫格 未验证实跑 +PASS 1440 图像合并成四宫格 未检查 +PASS 1440 图像合并成四宫格停用/时间戳空 +PASS 1440 图像合并成四宫格参数全保留 +PASS 1440 图像合并成四宫格默认无溢出 +PASS 1440 图像合并成四宫格旧图归还焦点 +PASS 1440 图像分割-多宫格分割默认中文用途 +PASS 1440 图像分割-多宫格分割源审校默认折叠 +PASS 1440 图像分割-多宫格分割技术范围默认折叠 +PASS 1440 图像分割-多宫格分割默认无执行计数/实现标识 +PASS 1440 图像分割-多宫格分割默认依据限制可见 +PASS 1440 图像分割-多宫格分割 说明未定稿 +PASS 1440 图像分割-多宫格分割 未验证实跑 +PASS 1440 图像分割-多宫格分割 未检查 +PASS 1440 图像分割-多宫格分割停用/时间戳空 +PASS 1440 图像分割-多宫格分割参数全保留 +PASS 1440 图像分割-多宫格分割默认无溢出 +PASS 1440 图像分割-多宫格分割旧图归还焦点 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认中文用途 +PASS 1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 未检查 +PASS 1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空 +PASS 1440 Qwen_image2.1_图像编辑_背景移除参数全保留 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无溢出 +PASS 1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未检查 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强参数全保留 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认中文用途 +PASS 1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠 +PASS 1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见 +PASS 1440 Qwen_image2.1_文生图_提示词增强 说明未定稿 +PASS 1440 Qwen_image2.1_文生图_提示词增强 未验证实跑 +PASS 1440 Qwen_image2.1_文生图_提示词增强 未检查 +PASS 1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空 +PASS 1440 Qwen_image2.1_文生图_提示词增强参数全保留 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认无溢出 +PASS 1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点 +PASS 1440 ControlNet_aux_常用样例默认中文用途 +PASS 1440 ControlNet_aux_常用样例源审校默认折叠 +PASS 1440 ControlNet_aux_常用样例技术范围默认折叠 +PASS 1440 ControlNet_aux_常用样例默认无执行计数/实现标识 +PASS 1440 ControlNet_aux_常用样例默认依据限制可见 +PASS 1440 ControlNet_aux_常用样例 说明未定稿 +PASS 1440 ControlNet_aux_常用样例 未验证实跑 +PASS 1440 ControlNet_aux_常用样例 未检查 +PASS 1440 ControlNet_aux_常用样例停用/时间戳空 +PASS 1440 ControlNet_aux_常用样例参数全保留 +PASS 1440 ControlNet_aux_常用样例默认无溢出 +PASS 1440 ControlNet_aux_常用样例旧图归还焦点 +PASS 1440 Qwen3-ASR-语音转文字默认中文用途 +PASS 1440 Qwen3-ASR-语音转文字源审校默认折叠 +PASS 1440 Qwen3-ASR-语音转文字技术范围默认折叠 +PASS 1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识 +PASS 1440 Qwen3-ASR-语音转文字默认依据限制可见 +PASS 1440 Qwen3-ASR-语音转文字 说明未定稿 +PASS 1440 Qwen3-ASR-语音转文字 未验证实跑 +PASS 1440 Qwen3-ASR-语音转文字 未检查 +PASS 1440 Qwen3-ASR-语音转文字停用/时间戳空 +PASS 1440 Qwen3-ASR-语音转文字参数全保留 +PASS 1440 Qwen3-ASR-语音转文字默认无溢出 +PASS 1440 Qwen3-ASR-语音转文字旧图归还焦点 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未检查 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕参数全保留 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点 +PASS 1440 Minimax-H3提示词增强默认中文用途 +PASS 1440 Minimax-H3提示词增强源审校默认折叠 +PASS 1440 Minimax-H3提示词增强技术范围默认折叠 +PASS 1440 Minimax-H3提示词增强默认无执行计数/实现标识 +PASS 1440 Minimax-H3提示词增强默认依据限制可见 +PASS 1440 Minimax-H3提示词增强 说明未定稿 +PASS 1440 Minimax-H3提示词增强 未验证实跑 +PASS 1440 Minimax-H3提示词增强 未检查 +PASS 1440 Minimax-H3提示词增强停用/时间戳空 +PASS 1440 Minimax-H3提示词增强参数全保留 +PASS 1440 Minimax-H3提示词增强默认无溢出 +PASS 1440 Minimax-H3提示词增强旧图归还焦点 +PASS 1440 音频转MP3格式默认中文用途 +PASS 1440 音频转MP3格式源审校默认折叠 +PASS 1440 音频转MP3格式技术范围默认折叠 +PASS 1440 音频转MP3格式默认无执行计数/实现标识 +PASS 1440 音频转MP3格式默认依据限制可见 +PASS 1440 音频转MP3格式 说明未定稿 +PASS 1440 音频转MP3格式 未验证实跑 +PASS 1440 音频转MP3格式 未检查 +PASS 1440 音频转MP3格式停用/时间戳空 +PASS 1440 音频转MP3格式参数全保留 +PASS 1440 音频转MP3格式默认无溢出 +PASS 1440 音频转MP3格式旧图归还焦点 +PASS 1440 音频人声分离默认中文用途 +PASS 1440 音频人声分离源审校默认折叠 +PASS 1440 音频人声分离技术范围默认折叠 +PASS 1440 音频人声分离默认无执行计数/实现标识 +PASS 1440 音频人声分离默认依据限制可见 +PASS 1440 音频人声分离 说明未定稿 +PASS 1440 音频人声分离 未验证实跑 +PASS 1440 音频人声分离 未检查 +PASS 1440 音频人声分离停用/时间戳空 +PASS 1440 音频人声分离参数全保留 +PASS 1440 音频人声分离默认无溢出 +PASS 1440 音频人声分离旧图归还焦点 +PASS 1440 视频-音频分离默认中文用途 +PASS 1440 视频-音频分离源审校默认折叠 +PASS 1440 视频-音频分离技术范围默认折叠 +PASS 1440 视频-音频分离默认无执行计数/实现标识 +PASS 1440 视频-音频分离默认依据限制可见 +PASS 1440 视频-音频分离 说明未定稿 +PASS 1440 视频-音频分离 未验证实跑 +PASS 1440 视频-音频分离 未检查 +PASS 1440 视频-音频分离停用/时间戳空 +PASS 1440 视频-音频分离参数全保留 +PASS 1440 视频-音频分离默认无溢出 +PASS 1440 视频-音频分离旧图归还焦点 +PASS 1440 图像嵌入文字描述默认中文用途 +PASS 1440 图像嵌入文字描述源审校默认折叠 +PASS 1440 图像嵌入文字描述技术范围默认折叠 +PASS 1440 图像嵌入文字描述默认无执行计数/实现标识 +PASS 1440 图像嵌入文字描述默认依据限制可见 +PASS 1440 图像嵌入文字描述 说明未定稿 +PASS 1440 图像嵌入文字描述 未验证实跑 +PASS 1440 图像嵌入文字描述 未检查 +PASS 1440 图像嵌入文字描述停用/时间戳空 +PASS 1440 图像嵌入文字描述参数全保留 +PASS 1440 图像嵌入文字描述默认无溢出 +PASS 1440 图像嵌入文字描述旧图归还焦点 +PASS 390 图像放大比较默认中文用途 +PASS 390 图像放大比较源审校默认折叠 +PASS 390 图像放大比较技术范围默认折叠 +PASS 390 图像放大比较默认无执行计数/实现标识 +PASS 390 图像放大比较默认依据限制可见 +PASS 390 图像放大比较 说明未定稿 +PASS 390 图像放大比较 未验证实跑 +PASS 390 图像放大比较 未检查 +PASS 390 图像放大比较停用/时间戳空 +PASS 390 图像放大比较参数全保留 +PASS 390 图像放大比较默认无溢出 +PASS 390 图像放大比较原用途/源路径展开保留 +PASS 390 图像放大比较展开流程 0 +PASS 390 图像放大比较展开流程 1 +PASS 390 图像放大比较展开流程 2 +PASS 390 图像放大比较展开流程 3 +PASS 390 图像放大比较展开流程 4 +PASS 390 图像放大比较展开流程 5 +PASS 390 图像放大比较展开流程 6 +PASS 390 图像放大比较展开流程 7 +PASS 390 图像放大比较展开流程 8 +PASS 390 图像放大比较展开流程 9 +PASS 390 图像放大比较展开流程 10 +PASS 390 图像放大比较展开流程 11 +PASS 390 图像放大比较展开流程 12 +PASS 390 图像放大比较展开流程 13 +PASS 390 图像放大比较展开流程 14 +PASS 390 图像放大比较展开流程 15 +PASS 390 图像放大比较展开流程 16 +PASS 390 图像放大比较展开流程 17 +PASS 390 图像放大比较展开流程 18 +PASS 390 图像放大比较展开流程 19 +PASS 390 图像放大比较展开流程 20 +PASS 390 图像放大比较展开流程 21 +PASS 390 图像放大比较展开流程 22 +PASS 390 图像放大比较展开流程 23 +PASS 390 图像放大比较展开流程 24 +PASS 390 图像放大比较展开流程 25 +PASS 390 图像放大比较展开流程 26 +PASS 390 图像放大比较展开流程 27 +PASS 390 图像放大比较展开流程 28 +PASS 390 图像放大比较展开流程 29 +PASS 390 图像放大比较展开流程 30 +PASS 390 图像放大比较展开流程 31 +PASS 390 图像放大比较展开流程 32 +PASS 390 图像放大比较展开流程 33 +PASS 390 图像放大比较原件摘要可展开 +PASS 390 图像放大比较版本 0 +PASS 390 图像放大比较版本 1 +PASS 390 图像放大比较版本 2 +PASS 390 图像放大比较版本 3 +PASS 390 图像放大比较版本 4 +PASS 390 图像放大比较版本 5 +PASS 390 图像放大比较版本 6 +PASS 390 1.image键盘展开 +PASS 390 1.image用途/单位/范围/来源条件 +PASS 390 1.image精确保留现值 +PASS 390 1.image指针默认折叠 +PASS 390 1.image精确源码/类型/指针 +PASS 390 1.image展开无溢出 +PASS 390 1.upload键盘展开 +PASS 390 1.upload用途/单位/范围/来源条件 +PASS 390 1.upload精确保留现值 +PASS 390 1.upload指针默认折叠 +PASS 390 1.upload精确源码/类型/指针 +PASS 390 1.upload展开无溢出 +PASS 390 4.upscale_method键盘展开 +PASS 390 4.upscale_method用途/单位/范围/来源条件 +PASS 390 4.upscale_method精确保留现值 +PASS 390 4.upscale_method指针默认折叠 +PASS 390 4.upscale_method精确源码/类型/指针 +PASS 390 4.upscale_method展开无溢出 +PASS 390 4.width键盘展开 +PASS 390 4.width用途/单位/范围/来源条件 +PASS 390 4.width精确保留现值 +PASS 390 4.width指针默认折叠 +PASS 390 4.width精确源码/类型/指针 +PASS 390 4.width展开无溢出 +PASS 390 4.height键盘展开 +PASS 390 4.height用途/单位/范围/来源条件 +PASS 390 4.height精确保留现值 +PASS 390 4.height指针默认折叠 +PASS 390 4.height精确源码/类型/指针 +PASS 390 4.height展开无溢出 +PASS 390 4.crop键盘展开 +PASS 390 4.crop用途/单位/范围/来源条件 +PASS 390 4.crop精确保留现值 +PASS 390 4.crop指针默认折叠 +PASS 390 4.crop精确源码/类型/指针 +PASS 390 4.crop展开无溢出 +PASS 390 12.value键盘展开 +PASS 390 12.value用途/单位/范围/来源条件 +PASS 390 12.value精确保留现值 +PASS 390 12.value指针默认折叠 +PASS 390 12.value精确源码/类型/指针 +PASS 390 12.value展开无溢出 +PASS 390 11.value键盘展开 +PASS 390 11.value用途/单位/范围/来源条件 +PASS 390 11.value精确保留现值 +PASS 390 11.value指针默认折叠 +PASS 390 11.value精确源码/类型/指针 +PASS 390 11.value展开无溢出 +PASS 390 2.width键盘展开 +PASS 390 2.width用途/单位/范围/来源条件 +PASS 390 2.width精确保留现值 +PASS 390 2.width指针默认折叠 +PASS 390 2.width精确源码/类型/指针 +PASS 390 2.width展开无溢出 +PASS 390 2.height键盘展开 +PASS 390 2.height用途/单位/范围/来源条件 +PASS 390 2.height精确保留现值 +PASS 390 2.height指针默认折叠 +PASS 390 2.height精确源码/类型/指针 +PASS 390 2.height展开无溢出 +PASS 390 2.upscale_method键盘展开 +PASS 390 2.upscale_method用途/单位/范围/来源条件 +PASS 390 2.upscale_method精确保留现值 +PASS 390 2.upscale_method指针默认折叠 +PASS 390 2.upscale_method精确源码/类型/指针 +PASS 390 2.upscale_method展开无溢出 +PASS 390 2.keep_proportion键盘展开 +PASS 390 2.keep_proportion用途/单位/范围/来源条件 +PASS 390 2.keep_proportion精确保留现值 +PASS 390 2.keep_proportion指针默认折叠 +PASS 390 2.keep_proportion精确源码/类型/指针 +PASS 390 2.keep_proportion展开无溢出 +PASS 390 2.pad_color键盘展开 +PASS 390 2.pad_color用途/单位/范围/来源条件 +PASS 390 2.pad_color精确保留现值 +PASS 390 2.pad_color指针默认折叠 +PASS 390 2.pad_color精确源码/类型/指针 +PASS 390 2.pad_color展开无溢出 +PASS 390 2.crop_position键盘展开 +PASS 390 2.crop_position用途/单位/范围/来源条件 +PASS 390 2.crop_position精确保留现值 +PASS 390 2.crop_position指针默认折叠 +PASS 390 2.crop_position精确源码/类型/指针 +PASS 390 2.crop_position展开无溢出 +PASS 390 2.divisible_by键盘展开 +PASS 390 2.divisible_by用途/单位/范围/来源条件 +PASS 390 2.divisible_by精确保留现值 +PASS 390 2.divisible_by指针默认折叠 +PASS 390 2.divisible_by精确源码/类型/指针 +PASS 390 2.divisible_by展开无溢出 +PASS 390 2.device键盘展开 +PASS 390 2.device用途/单位/范围/来源条件 +PASS 390 2.device精确保留现值 +PASS 390 2.device指针默认折叠 +PASS 390 2.device精确源码/类型/指针 +PASS 390 2.device展开无溢出 +PASS 390 5.scale键盘展开 +PASS 390 5.scale用途/单位/范围/来源条件 +PASS 390 5.scale精确保留现值 +PASS 390 5.scale指针默认折叠 +PASS 390 5.scale精确源码/类型/指针 +PASS 390 5.scale展开无溢出 +PASS 390 5.method键盘展开 +PASS 390 5.method用途/单位/范围/来源条件 +PASS 390 5.method精确保留现值 +PASS 390 5.method指针默认折叠 +PASS 390 5.method精确源码/类型/指针 +PASS 390 5.method展开无溢出 +PASS 390 5.scale_by键盘展开 +PASS 390 5.scale_by用途/单位/范围/来源条件 +PASS 390 5.scale_by精确保留现值 +PASS 390 5.scale_by指针默认折叠 +PASS 390 5.scale_by精确源码/类型/指针 +PASS 390 5.scale_by展开无溢出 +PASS 390 5.scale_by_length键盘展开 +PASS 390 5.scale_by_length用途/单位/范围/来源条件 +PASS 390 5.scale_by_length精确保留现值 +PASS 390 5.scale_by_length指针默认折叠 +PASS 390 5.scale_by_length精确源码/类型/指针 +PASS 390 5.scale_by_length展开无溢出 +PASS 390 7.aspect_ratio键盘展开 +PASS 390 7.aspect_ratio用途/单位/范围/来源条件 +PASS 390 7.aspect_ratio精确保留现值 +PASS 390 7.aspect_ratio指针默认折叠 +PASS 390 7.aspect_ratio精确源码/类型/指针 +PASS 390 7.aspect_ratio展开无溢出 +PASS 390 7.proportional_width键盘展开 +PASS 390 7.proportional_width用途/单位/范围/来源条件 +PASS 390 7.proportional_width精确保留现值 +PASS 390 7.proportional_width指针默认折叠 +PASS 390 7.proportional_width精确源码/类型/指针 +PASS 390 7.proportional_width展开无溢出 +PASS 390 7.proportional_height键盘展开 +PASS 390 7.proportional_height用途/单位/范围/来源条件 +PASS 390 7.proportional_height精确保留现值 +PASS 390 7.proportional_height指针默认折叠 +PASS 390 7.proportional_height精确源码/类型/指针 +PASS 390 7.proportional_height展开无溢出 +PASS 390 7.fit键盘展开 +PASS 390 7.fit用途/单位/范围/来源条件 +PASS 390 7.fit精确保留现值 +PASS 390 7.fit指针默认折叠 +PASS 390 7.fit精确源码/类型/指针 +PASS 390 7.fit展开无溢出 +PASS 390 7.method键盘展开 +PASS 390 7.method用途/单位/范围/来源条件 +PASS 390 7.method精确保留现值 +PASS 390 7.method指针默认折叠 +PASS 390 7.method精确源码/类型/指针 +PASS 390 7.method展开无溢出 +PASS 390 7.round_to_multiple键盘展开 +PASS 390 7.round_to_multiple用途/单位/范围/来源条件 +PASS 390 7.round_to_multiple精确保留现值 +PASS 390 7.round_to_multiple指针默认折叠 +PASS 390 7.round_to_multiple精确源码/类型/指针 +PASS 390 7.round_to_multiple展开无溢出 +PASS 390 7.scale_to_side键盘展开 +PASS 390 7.scale_to_side用途/单位/范围/来源条件 +PASS 390 7.scale_to_side精确保留现值 +PASS 390 7.scale_to_side指针默认折叠 +PASS 390 7.scale_to_side精确源码/类型/指针 +PASS 390 7.scale_to_side展开无溢出 +PASS 390 7.scale_to_length键盘展开 +PASS 390 7.scale_to_length用途/单位/范围/来源条件 +PASS 390 7.scale_to_length精确保留现值 +PASS 390 7.scale_to_length指针默认折叠 +PASS 390 7.scale_to_length精确源码/类型/指针 +PASS 390 7.scale_to_length展开无溢出 +PASS 390 7.background_color键盘展开 +PASS 390 7.background_color用途/单位/范围/来源条件 +PASS 390 7.background_color精确保留现值 +PASS 390 7.background_color指针默认折叠 +PASS 390 7.background_color精确源码/类型/指针 +PASS 390 7.background_color展开无溢出 +PASS 390 17.output键盘展开 +PASS 390 17.output用途/单位/范围/来源条件 +PASS 390 17.output精确保留现值 +PASS 390 17.output指针默认折叠 +PASS 390 17.output精确源码/类型/指针 +PASS 390 17.output展开无溢出 +PASS 390 13.output键盘展开 +PASS 390 13.output用途/单位/范围/来源条件 +PASS 390 13.output精确保留现值 +PASS 390 13.output指针默认折叠 +PASS 390 13.output精确源码/类型/指针 +PASS 390 13.output展开无溢出 +PASS 390 18.output键盘展开 +PASS 390 18.output用途/单位/范围/来源条件 +PASS 390 18.output精确保留现值 +PASS 390 18.output指针默认折叠 +PASS 390 18.output精确源码/类型/指针 +PASS 390 18.output展开无溢出 +PASS 390 15.output键盘展开 +PASS 390 15.output用途/单位/范围/来源条件 +PASS 390 15.output精确保留现值 +PASS 390 15.output指针默认折叠 +PASS 390 15.output精确源码/类型/指针 +PASS 390 15.output展开无溢出 +PASS 390 16.output键盘展开 +PASS 390 16.output用途/单位/范围/来源条件 +PASS 390 16.output精确保留现值 +PASS 390 16.output指针默认折叠 +PASS 390 16.output精确源码/类型/指针 +PASS 390 16.output展开无溢出 +PASS 390 14.output键盘展开 +PASS 390 14.output用途/单位/范围/来源条件 +PASS 390 14.output精确保留现值 +PASS 390 14.output指针默认折叠 +PASS 390 14.output精确源码/类型/指针 +PASS 390 14.output展开无溢出 +PASS 390Tab焦点保留 +PASS 390ShiftTab焦点保留 +PASS 390 图像放大比较关闭归还焦点 +PASS 390 VOSR2_图像超分放大默认中文用途 +PASS 390 VOSR2_图像超分放大源审校默认折叠 +PASS 390 VOSR2_图像超分放大技术范围默认折叠 +PASS 390 VOSR2_图像超分放大默认无执行计数/实现标识 +PASS 390 VOSR2_图像超分放大默认依据限制可见 +PASS 390 VOSR2_图像超分放大 说明未定稿 +PASS 390 VOSR2_图像超分放大 未验证实跑 +PASS 390 VOSR2_图像超分放大 未检查 +PASS 390 VOSR2_图像超分放大停用/时间戳空 +PASS 390 VOSR2_图像超分放大参数全保留 +PASS 390 VOSR2_图像超分放大默认无溢出 +PASS 390 VOSR2_图像超分放大旧图归还焦点 +PASS 390 Seedvr2_3b_int8_视频放大默认中文用途 +PASS 390 Seedvr2_3b_int8_视频放大源审校默认折叠 +PASS 390 Seedvr2_3b_int8_视频放大技术范围默认折叠 +PASS 390 Seedvr2_3b_int8_视频放大默认无执行计数/实现标识 +PASS 390 Seedvr2_3b_int8_视频放大默认依据限制可见 +PASS 390 Seedvr2_3b_int8_视频放大 说明未定稿 +PASS 390 Seedvr2_3b_int8_视频放大 未验证实跑 +PASS 390 Seedvr2_3b_int8_视频放大 未检查 +PASS 390 Seedvr2_3b_int8_视频放大停用/时间戳空 +PASS 390 Seedvr2_3b_int8_视频放大参数全保留 +PASS 390 Seedvr2_3b_int8_视频放大默认无溢出 +PASS 390 Seedvr2_3b_int8_视频放大旧图归还焦点 +PASS 390 Seedvr2_3b_int8_图像放大默认中文用途 +PASS 390 Seedvr2_3b_int8_图像放大源审校默认折叠 +PASS 390 Seedvr2_3b_int8_图像放大技术范围默认折叠 +PASS 390 Seedvr2_3b_int8_图像放大默认无执行计数/实现标识 +PASS 390 Seedvr2_3b_int8_图像放大默认依据限制可见 +PASS 390 Seedvr2_3b_int8_图像放大 说明未定稿 +PASS 390 Seedvr2_3b_int8_图像放大 未验证实跑 +PASS 390 Seedvr2_3b_int8_图像放大 未检查 +PASS 390 Seedvr2_3b_int8_图像放大停用/时间戳空 +PASS 390 Seedvr2_3b_int8_图像放大参数全保留 +PASS 390 Seedvr2_3b_int8_图像放大默认无溢出 +PASS 390 Seedvr2_3b_int8_图像放大旧图归还焦点 +PASS 390 RTX_video_upscale默认中文用途 +PASS 390 RTX_video_upscale源审校默认折叠 +PASS 390 RTX_video_upscale技术范围默认折叠 +PASS 390 RTX_video_upscale默认无执行计数/实现标识 +PASS 390 RTX_video_upscale默认依据限制可见 +PASS 390 RTX_video_upscale 说明未定稿 +PASS 390 RTX_video_upscale 未验证实跑 +PASS 390 RTX_video_upscale 未检查 +PASS 390 RTX_video_upscale停用/时间戳空 +PASS 390 RTX_video_upscale参数全保留 +PASS 390 RTX_video_upscale默认无溢出 +PASS 390 RTX_video_upscale旧图归还焦点 +PASS 390 RTX_image_upscale默认中文用途 +PASS 390 RTX_image_upscale源审校默认折叠 +PASS 390 RTX_image_upscale技术范围默认折叠 +PASS 390 RTX_image_upscale默认无执行计数/实现标识 +PASS 390 RTX_image_upscale默认依据限制可见 +PASS 390 RTX_image_upscale 说明未定稿 +PASS 390 RTX_image_upscale 未验证实跑 +PASS 390 RTX_image_upscale 未检查 +PASS 390 RTX_image_upscale停用/时间戳空 +PASS 390 RTX_image_upscale参数全保留 +PASS 390 RTX_image_upscale默认无溢出 +PASS 390 RTX_image_upscale旧图归还焦点 +PASS 390 手动按分镜视频截取默认中文用途 +PASS 390 手动按分镜视频截取源审校默认折叠 +PASS 390 手动按分镜视频截取技术范围默认折叠 +PASS 390 手动按分镜视频截取默认无执行计数/实现标识 +PASS 390 手动按分镜视频截取默认依据限制可见 +PASS 390 手动按分镜视频截取 说明未定稿 +PASS 390 手动按分镜视频截取 未验证实跑 +PASS 390 手动按分镜视频截取 未检查 +PASS 390 手动按分镜视频截取停用/时间戳空 +PASS 390 手动按分镜视频截取参数全保留 +PASS 390 手动按分镜视频截取默认无溢出 +PASS 390 手动按分镜视频截取旧图归还焦点 +PASS 390 sam3_图像视频-提示词遮罩分割默认中文用途 +PASS 390 sam3_图像视频-提示词遮罩分割源审校默认折叠 +PASS 390 sam3_图像视频-提示词遮罩分割技术范围默认折叠 +PASS 390 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识 +PASS 390 sam3_图像视频-提示词遮罩分割默认依据限制可见 +PASS 390 sam3_图像视频-提示词遮罩分割 说明未定稿 +PASS 390 sam3_图像视频-提示词遮罩分割 未验证实跑 +PASS 390 sam3_图像视频-提示词遮罩分割 未检查 +PASS 390 sam3_图像视频-提示词遮罩分割停用/时间戳空 +PASS 390 sam3_图像视频-提示词遮罩分割参数全保留 +PASS 390 sam3_图像视频-提示词遮罩分割默认无溢出 +PASS 390 sam3_图像视频-提示词遮罩分割旧图归还焦点 +PASS 390 多视频合成分屏展示默认中文用途 +PASS 390 多视频合成分屏展示源审校默认折叠 +PASS 390 多视频合成分屏展示技术范围默认折叠 +PASS 390 多视频合成分屏展示默认无执行计数/实现标识 +PASS 390 多视频合成分屏展示默认依据限制可见 +PASS 390 多视频合成分屏展示 说明未定稿 +PASS 390 多视频合成分屏展示 未验证实跑 +PASS 390 多视频合成分屏展示 未检查 +PASS 390 多视频合成分屏展示停用/时间戳空 +PASS 390 多视频合成分屏展示参数全保留 +PASS 390 多视频合成分屏展示默认无溢出 +PASS 390 多视频合成分屏展示旧图归还焦点 +PASS 390 图像4种添加水印节点默认中文用途 +PASS 390 图像4种添加水印节点源审校默认折叠 +PASS 390 图像4种添加水印节点技术范围默认折叠 +PASS 390 图像4种添加水印节点默认无执行计数/实现标识 +PASS 390 图像4种添加水印节点默认依据限制可见 +PASS 390 图像4种添加水印节点 说明未定稿 +PASS 390 图像4种添加水印节点 未验证实跑 +PASS 390 图像4种添加水印节点 未检查 +PASS 390 图像4种添加水印节点停用/时间戳空 +PASS 390 图像4种添加水印节点参数全保留 +PASS 390 图像4种添加水印节点默认无溢出 +PASS 390 图像4种添加水印节点旧图归还焦点 +PASS 390 birefnet_图像移除背景默认中文用途 +PASS 390 birefnet_图像移除背景源审校默认折叠 +PASS 390 birefnet_图像移除背景技术范围默认折叠 +PASS 390 birefnet_图像移除背景默认无执行计数/实现标识 +PASS 390 birefnet_图像移除背景默认依据限制可见 +PASS 390 birefnet_图像移除背景 说明未定稿 +PASS 390 birefnet_图像移除背景 未验证实跑 +PASS 390 birefnet_图像移除背景 未检查 +PASS 390 birefnet_图像移除背景停用/时间戳空 +PASS 390 birefnet_图像移除背景参数全保留 +PASS 390 birefnet_图像移除背景默认无溢出 +PASS 390 birefnet_图像移除背景旧图归还焦点 +PASS 390 加载本地latent解码默认中文用途 +PASS 390 加载本地latent解码源审校默认折叠 +PASS 390 加载本地latent解码技术范围默认折叠 +PASS 390 加载本地latent解码默认无执行计数/实现标识 +PASS 390 加载本地latent解码默认依据限制可见 +PASS 390 加载本地latent解码 说明未定稿 +PASS 390 加载本地latent解码 未验证实跑 +PASS 390 加载本地latent解码 未检查 +PASS 390 加载本地latent解码停用/时间戳空 +PASS 390 加载本地latent解码参数全保留 +PASS 390 加载本地latent解码默认无溢出 +PASS 390 加载本地latent解码旧图归还焦点 +PASS 390 截取视频每一帧默认中文用途 +PASS 390 截取视频每一帧源审校默认折叠 +PASS 390 截取视频每一帧技术范围默认折叠 +PASS 390 截取视频每一帧默认无执行计数/实现标识 +PASS 390 截取视频每一帧默认依据限制可见 +PASS 390 截取视频每一帧 说明未定稿 +PASS 390 截取视频每一帧 未验证实跑 +PASS 390 截取视频每一帧 未检查 +PASS 390 截取视频每一帧停用/时间戳空 +PASS 390 截取视频每一帧参数全保留 +PASS 390 截取视频每一帧默认无溢出 +PASS 390 截取视频每一帧旧图归还焦点 +PASS 390 双图像或视频合并显示默认中文用途 +PASS 390 双图像或视频合并显示源审校默认折叠 +PASS 390 双图像或视频合并显示技术范围默认折叠 +PASS 390 双图像或视频合并显示默认无执行计数/实现标识 +PASS 390 双图像或视频合并显示默认依据限制可见 +PASS 390 双图像或视频合并显示 说明未定稿 +PASS 390 双图像或视频合并显示 未验证实跑 +PASS 390 双图像或视频合并显示 未检查 +PASS 390 双图像或视频合并显示停用/时间戳空 +PASS 390 双图像或视频合并显示参数全保留 +PASS 390 双图像或视频合并显示默认无溢出 +PASS 390 双图像或视频合并显示旧图归还焦点 +PASS 390 视频转gif动图图片默认中文用途 +PASS 390 视频转gif动图图片源审校默认折叠 +PASS 390 视频转gif动图图片技术范围默认折叠 +PASS 390 视频转gif动图图片默认无执行计数/实现标识 +PASS 390 视频转gif动图图片默认依据限制可见 +PASS 390 视频转gif动图图片 说明未定稿 +PASS 390 视频转gif动图图片 未验证实跑 +PASS 390 视频转gif动图图片 未检查 +PASS 390 视频转gif动图图片停用/时间戳空 +PASS 390 视频转gif动图图片参数全保留 +PASS 390 视频转gif动图图片默认无溢出 +PASS 390 视频转gif动图图片旧图归还焦点 +PASS 390 加载图片合成视频默认中文用途 +PASS 390 加载图片合成视频源审校默认折叠 +PASS 390 加载图片合成视频技术范围默认折叠 +PASS 390 加载图片合成视频默认无执行计数/实现标识 +PASS 390 加载图片合成视频默认依据限制可见 +PASS 390 加载图片合成视频 说明未定稿 +PASS 390 加载图片合成视频 未验证实跑 +PASS 390 加载图片合成视频 未检查 +PASS 390 加载图片合成视频停用/时间戳空 +PASS 390 加载图片合成视频参数全保留 +PASS 390 加载图片合成视频默认无溢出 +PASS 390 加载图片合成视频旧图归还焦点 +PASS 390 视频倒放默认中文用途 +PASS 390 视频倒放源审校默认折叠 +PASS 390 视频倒放技术范围默认折叠 +PASS 390 视频倒放默认无执行计数/实现标识 +PASS 390 视频倒放默认依据限制可见 +PASS 390 视频倒放 说明未定稿 +PASS 390 视频倒放 未验证实跑 +PASS 390 视频倒放 未检查 +PASS 390 视频倒放停用/时间戳空 +PASS 390 视频倒放参数全保留 +PASS 390 视频倒放默认无溢出 +PASS 390 视频倒放旧图归还焦点 +PASS 390 NLF_视频人物动作骨架获取默认中文用途 +PASS 390 NLF_视频人物动作骨架获取源审校默认折叠 +PASS 390 NLF_视频人物动作骨架获取技术范围默认折叠 +PASS 390 NLF_视频人物动作骨架获取默认无执行计数/实现标识 +PASS 390 NLF_视频人物动作骨架获取默认依据限制可见 +PASS 390 NLF_视频人物动作骨架获取 说明未定稿 +PASS 390 NLF_视频人物动作骨架获取 未验证实跑 +PASS 390 NLF_视频人物动作骨架获取 未检查 +PASS 390 NLF_视频人物动作骨架获取停用/时间戳空 +PASS 390 NLF_视频人物动作骨架获取参数全保留 +PASS 390 NLF_视频人物动作骨架获取默认无溢出 +PASS 390 NLF_视频人物动作骨架获取旧图归还焦点 +PASS 390 openpose-video-姿态检测默认中文用途 +PASS 390 openpose-video-姿态检测源审校默认折叠 +PASS 390 openpose-video-姿态检测技术范围默认折叠 +PASS 390 openpose-video-姿态检测默认无执行计数/实现标识 +PASS 390 openpose-video-姿态检测默认依据限制可见 +PASS 390 openpose-video-姿态检测 说明未定稿 +PASS 390 openpose-video-姿态检测 未验证实跑 +PASS 390 openpose-video-姿态检测 未检查 +PASS 390 openpose-video-姿态检测停用/时间戳空 +PASS 390 openpose-video-姿态检测参数全保留 +PASS 390 openpose-video-姿态检测默认无溢出 +PASS 390 openpose-video-姿态检测旧图归还焦点 +PASS 390 sdpose_视频人物姿势骨架提取默认中文用途 +PASS 390 sdpose_视频人物姿势骨架提取源审校默认折叠 +PASS 390 sdpose_视频人物姿势骨架提取技术范围默认折叠 +PASS 390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识 +PASS 390 sdpose_视频人物姿势骨架提取默认依据限制可见 +PASS 390 sdpose_视频人物姿势骨架提取 说明未定稿 +PASS 390 sdpose_视频人物姿势骨架提取 未验证实跑 +PASS 390 sdpose_视频人物姿势骨架提取 未检查 +PASS 390 sdpose_视频人物姿势骨架提取停用/时间戳空 +PASS 390 sdpose_视频人物姿势骨架提取参数全保留 +PASS 390 sdpose_视频人物姿势骨架提取默认无溢出 +PASS 390 sdpose_视频人物姿势骨架提取旧图归还焦点 +PASS 390 gemma4_提示词反推(图像视频音频)默认中文用途 +PASS 390 gemma4_提示词反推(图像视频音频)源审校默认折叠 +PASS 390 gemma4_提示词反推(图像视频音频)技术范围默认折叠 +PASS 390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识 +PASS 390 gemma4_提示词反推(图像视频音频)默认依据限制可见 +PASS 390 gemma4_提示词反推(图像视频音频) 说明未定稿 +PASS 390 gemma4_提示词反推(图像视频音频) 未验证实跑 +PASS 390 gemma4_提示词反推(图像视频音频) 未检查 +PASS 390 gemma4_提示词反推(图像视频音频)停用/时间戳空 +PASS 390 gemma4_提示词反推(图像视频音频)参数全保留 +PASS 390 gemma4_提示词反推(图像视频音频)默认无溢出 +PASS 390 gemma4_提示词反推(图像视频音频)旧图归还焦点 +PASS 390 图像合并成四宫格默认中文用途 +PASS 390 图像合并成四宫格源审校默认折叠 +PASS 390 图像合并成四宫格技术范围默认折叠 +PASS 390 图像合并成四宫格默认无执行计数/实现标识 +PASS 390 图像合并成四宫格默认依据限制可见 +PASS 390 图像合并成四宫格 说明未定稿 +PASS 390 图像合并成四宫格 未验证实跑 +PASS 390 图像合并成四宫格 未检查 +PASS 390 图像合并成四宫格停用/时间戳空 +PASS 390 图像合并成四宫格参数全保留 +PASS 390 图像合并成四宫格默认无溢出 +PASS 390 图像合并成四宫格旧图归还焦点 +PASS 390 图像分割-多宫格分割默认中文用途 +PASS 390 图像分割-多宫格分割源审校默认折叠 +PASS 390 图像分割-多宫格分割技术范围默认折叠 +PASS 390 图像分割-多宫格分割默认无执行计数/实现标识 +PASS 390 图像分割-多宫格分割默认依据限制可见 +PASS 390 图像分割-多宫格分割 说明未定稿 +PASS 390 图像分割-多宫格分割 未验证实跑 +PASS 390 图像分割-多宫格分割 未检查 +PASS 390 图像分割-多宫格分割停用/时间戳空 +PASS 390 图像分割-多宫格分割参数全保留 +PASS 390 图像分割-多宫格分割默认无溢出 +PASS 390 图像分割-多宫格分割旧图归还焦点 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认中文用途 +PASS 390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠 +PASS 390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见 +PASS 390 Qwen_image2.1_图像编辑_背景移除 说明未定稿 +PASS 390 Qwen_image2.1_图像编辑_背景移除 未验证实跑 +PASS 390 Qwen_image2.1_图像编辑_背景移除 未检查 +PASS 390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空 +PASS 390 Qwen_image2.1_图像编辑_背景移除参数全保留 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认无溢出 +PASS 390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认中文用途 +PASS 390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠 +PASS 390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 未检查 +PASS 390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空 +PASS 390 Qwen_image2.1_图像编辑_提示词增强参数全保留 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无溢出 +PASS 390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点 +PASS 390 Qwen_image2.1_文生图_提示词增强默认中文用途 +PASS 390 Qwen_image2.1_文生图_提示词增强源审校默认折叠 +PASS 390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠 +PASS 390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_文生图_提示词增强默认依据限制可见 +PASS 390 Qwen_image2.1_文生图_提示词增强 说明未定稿 +PASS 390 Qwen_image2.1_文生图_提示词增强 未验证实跑 +PASS 390 Qwen_image2.1_文生图_提示词增强 未检查 +PASS 390 Qwen_image2.1_文生图_提示词增强停用/时间戳空 +PASS 390 Qwen_image2.1_文生图_提示词增强参数全保留 +PASS 390 Qwen_image2.1_文生图_提示词增强默认无溢出 +PASS 390 Qwen_image2.1_文生图_提示词增强旧图归还焦点 +PASS 390 ControlNet_aux_常用样例默认中文用途 +PASS 390 ControlNet_aux_常用样例源审校默认折叠 +PASS 390 ControlNet_aux_常用样例技术范围默认折叠 +PASS 390 ControlNet_aux_常用样例默认无执行计数/实现标识 +PASS 390 ControlNet_aux_常用样例默认依据限制可见 +PASS 390 ControlNet_aux_常用样例 说明未定稿 +PASS 390 ControlNet_aux_常用样例 未验证实跑 +PASS 390 ControlNet_aux_常用样例 未检查 +PASS 390 ControlNet_aux_常用样例停用/时间戳空 +PASS 390 ControlNet_aux_常用样例参数全保留 +PASS 390 ControlNet_aux_常用样例默认无溢出 +PASS 390 ControlNet_aux_常用样例旧图归还焦点 +PASS 390 Qwen3-ASR-语音转文字默认中文用途 +PASS 390 Qwen3-ASR-语音转文字源审校默认折叠 +PASS 390 Qwen3-ASR-语音转文字技术范围默认折叠 +PASS 390 Qwen3-ASR-语音转文字默认无执行计数/实现标识 +PASS 390 Qwen3-ASR-语音转文字默认依据限制可见 +PASS 390 Qwen3-ASR-语音转文字 说明未定稿 +PASS 390 Qwen3-ASR-语音转文字 未验证实跑 +PASS 390 Qwen3-ASR-语音转文字 未检查 +PASS 390 Qwen3-ASR-语音转文字停用/时间戳空 +PASS 390 Qwen3-ASR-语音转文字参数全保留 +PASS 390 Qwen3-ASR-语音转文字默认无溢出 +PASS 390 Qwen3-ASR-语音转文字旧图归还焦点 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认中文用途 +PASS 390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠 +PASS 390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 未检查 +PASS 390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空 +PASS 390 Qwen3-ASR-Subtitle语音转字幕参数全保留 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无溢出 +PASS 390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点 +PASS 390 Minimax-H3提示词增强默认中文用途 +PASS 390 Minimax-H3提示词增强源审校默认折叠 +PASS 390 Minimax-H3提示词增强技术范围默认折叠 +PASS 390 Minimax-H3提示词增强默认无执行计数/实现标识 +PASS 390 Minimax-H3提示词增强默认依据限制可见 +PASS 390 Minimax-H3提示词增强 说明未定稿 +PASS 390 Minimax-H3提示词增强 未验证实跑 +PASS 390 Minimax-H3提示词增强 未检查 +PASS 390 Minimax-H3提示词增强停用/时间戳空 +PASS 390 Minimax-H3提示词增强参数全保留 +PASS 390 Minimax-H3提示词增强默认无溢出 +PASS 390 Minimax-H3提示词增强旧图归还焦点 +PASS 390 音频转MP3格式默认中文用途 +PASS 390 音频转MP3格式源审校默认折叠 +PASS 390 音频转MP3格式技术范围默认折叠 +PASS 390 音频转MP3格式默认无执行计数/实现标识 +PASS 390 音频转MP3格式默认依据限制可见 +PASS 390 音频转MP3格式 说明未定稿 +PASS 390 音频转MP3格式 未验证实跑 +PASS 390 音频转MP3格式 未检查 +PASS 390 音频转MP3格式停用/时间戳空 +PASS 390 音频转MP3格式参数全保留 +PASS 390 音频转MP3格式默认无溢出 +PASS 390 音频转MP3格式旧图归还焦点 +PASS 390 音频人声分离默认中文用途 +PASS 390 音频人声分离源审校默认折叠 +PASS 390 音频人声分离技术范围默认折叠 +PASS 390 音频人声分离默认无执行计数/实现标识 +PASS 390 音频人声分离默认依据限制可见 +PASS 390 音频人声分离 说明未定稿 +PASS 390 音频人声分离 未验证实跑 +PASS 390 音频人声分离 未检查 +PASS 390 音频人声分离停用/时间戳空 +PASS 390 音频人声分离参数全保留 +PASS 390 音频人声分离默认无溢出 +PASS 390 音频人声分离旧图归还焦点 +PASS 390 视频-音频分离默认中文用途 +PASS 390 视频-音频分离源审校默认折叠 +PASS 390 视频-音频分离技术范围默认折叠 +PASS 390 视频-音频分离默认无执行计数/实现标识 +PASS 390 视频-音频分离默认依据限制可见 +PASS 390 视频-音频分离 说明未定稿 +PASS 390 视频-音频分离 未验证实跑 +PASS 390 视频-音频分离 未检查 +PASS 390 视频-音频分离停用/时间戳空 +PASS 390 视频-音频分离参数全保留 +PASS 390 视频-音频分离默认无溢出 +PASS 390 视频-音频分离旧图归还焦点 +PASS 390 图像嵌入文字描述默认中文用途 +PASS 390 图像嵌入文字描述源审校默认折叠 +PASS 390 图像嵌入文字描述技术范围默认折叠 +PASS 390 图像嵌入文字描述默认无执行计数/实现标识 +PASS 390 图像嵌入文字描述默认依据限制可见 +PASS 390 图像嵌入文字描述 说明未定稿 +PASS 390 图像嵌入文字描述 未验证实跑 +PASS 390 图像嵌入文字描述 未检查 +PASS 390 图像嵌入文字描述停用/时间戳空 +PASS 390 图像嵌入文字描述参数全保留 +PASS 390 图像嵌入文字描述默认无溢出 +PASS 390 图像嵌入文字描述旧图归还焦点 +PASS 旧/空说明回退 旧工作流回退(隔离测试夹具) +PASS 旧/空说明回退 空说明回退(隔离测试夹具) +PASS 缺摘要自然中文回退 +PASS 回退不暴露undefined +PASS 错绑定提示明确且不展示旧字段 +PASS 回退不暴露undefined +PASS 摘要HTML仅纯文本不创建图像或请求 +PASS 回退不暴露undefined +PASS 迟到放大比较响应不覆盖旧VOSR2图片摘要/46字段 +PASS GET失败显示重试 +PASS 读取失败隐藏旧摘要 +PASS 重试恢复摘要 +PASS 无脚本错误或禁止请求 [] +PASS 全程本地GET无写/生成/目标/历史预览请求 +All owned browser services stopped; ports released. diff --git a/docs/hel-892/resize-compare-document-evidence/browser-initial.txt b/docs/hel-892/resize-compare-document-evidence/browser-initial.txt new file mode 100644 index 00000000..aceb219a --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/browser-initial.txt @@ -0,0 +1,60 @@ +PASS 34图1069保存位置 +PASS 34图25源注释 +PASS 1440 图像放大比较默认中文用途 +PASS 1440 图像放大比较源审校默认折叠 +PASS 1440 图像放大比较技术范围默认折叠 +PASS 1440 图像放大比较默认无执行计数/实现标识 +PASS 1440 图像放大比较默认依据限制可见 +PASS 1440 图像放大比较 说明未定稿 +PASS 1440 图像放大比较 未验证实跑 +PASS 1440 图像放大比较 未检查 +PASS 1440 图像放大比较停用/时间戳空 +PASS 1440 图像放大比较参数全保留 +PASS 1440 图像放大比较默认无溢出 +PASS 1440 图像放大比较原用途/源路径展开保留 +PASS 1440 图像放大比较展开流程 0 +PASS 1440 图像放大比较展开流程 1 +PASS 1440 图像放大比较展开流程 2 +PASS 1440 图像放大比较展开流程 3 +PASS 1440 图像放大比较展开流程 4 +PASS 1440 图像放大比较展开流程 5 +PASS 1440 图像放大比较展开流程 6 +PASS 1440 图像放大比较展开流程 7 +PASS 1440 图像放大比较展开流程 8 +PASS 1440 图像放大比较展开流程 9 +PASS 1440 图像放大比较展开流程 10 +PASS 1440 图像放大比较展开流程 11 +PASS 1440 图像放大比较展开流程 12 +PASS 1440 图像放大比较展开流程 13 +PASS 1440 图像放大比较展开流程 14 +PASS 1440 图像放大比较展开流程 15 +PASS 1440 图像放大比较展开流程 16 +PASS 1440 图像放大比较展开流程 17 +PASS 1440 图像放大比较展开流程 18 +PASS 1440 图像放大比较展开流程 19 +PASS 1440 图像放大比较展开流程 20 +PASS 1440 图像放大比较展开流程 21 +PASS 1440 图像放大比较展开流程 22 +PASS 1440 图像放大比较展开流程 23 +PASS 1440 图像放大比较展开流程 24 +PASS 1440 图像放大比较展开流程 25 +PASS 1440 图像放大比较展开流程 26 +PASS 1440 图像放大比较展开流程 27 +PASS 1440 图像放大比较展开流程 28 +PASS 1440 图像放大比较展开流程 29 +PASS 1440 图像放大比较展开流程 30 +PASS 1440 图像放大比较展开流程 31 +PASS 1440 图像放大比较展开流程 32 +PASS 1440 图像放大比较展开流程 33 +PASS 1440 图像放大比较原件摘要可展开 +PASS 1440 图像放大比较版本 0 +PASS 1440 图像放大比较版本 1 +PASS 1440 图像放大比较版本 2 +PASS 1440 图像放大比较版本 3 +PASS 1440 图像放大比较版本 4 +PASS 1440 图像放大比较版本 5 +PASS 1440 图像放大比较版本 6 +PASS 1440 1.image键盘展开 +PASS 1440 1.image用途/单位/范围/来源条件 +PASS 1440 1.image精确保留现值 +All owned browser services stopped; ports released. diff --git a/docs/hel-892/resize-compare-document-evidence/browser-results.json b/docs/hel-892/resize-compare-document-evidence/browser-results.json new file mode 100644 index 00000000..49207592 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/browser-results.json @@ -0,0 +1,1938 @@ +{ + "request_accounting": { + "fixed_count": 115, + "fixed_paths": { + "/api/settings": 1, + "/api/workflows": 2, + "/api/workflows/1": 3, + "/api/workflows/10": 3, + "/api/workflows/11": 3, + "/api/workflows/12": 3, + "/api/workflows/13": 3, + "/api/workflows/14": 3, + "/api/workflows/15": 3, + "/api/workflows/156": 1, + "/api/workflows/157": 1, + "/api/workflows/16": 3, + "/api/workflows/17": 3, + "/api/workflows/19": 3, + "/api/workflows/2": 3, + "/api/workflows/21": 3, + "/api/workflows/22": 3, + "/api/workflows/23": 3, + "/api/workflows/24": 3, + "/api/workflows/25": 3, + "/api/workflows/26": 3, + "/api/workflows/27": 3, + "/api/workflows/28": 3, + "/api/workflows/29": 3, + "/api/workflows/3": 3, + "/api/workflows/31": 4, + "/api/workflows/33": 10, + "/api/workflows/35": 3, + "/api/workflows/36": 3, + "/api/workflows/4": 3, + "/api/workflows/5": 3, + "/api/workflows/6": 3, + "/api/workflows/62": 3, + "/api/workflows/64": 3, + "/api/workflows/7": 3, + "/api/workflows/70": 3, + "/api/workflows/8": 3, + "/api/workflows/9": 3 + }, + "polling_count": 10, + "polling_paths": { + "/api/jobs": 10 + }, + "polling_tolerance": 1, + "reason": "定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。" + }, + "assertion_count": 1342, + "assertionGroups": { + "aggregate": 2, + "new_resize_compare": 534, + "old_thirty_three": 792, + "shared_regressions": 14 + }, + "interceptions": [ + { + "variant": "missing-overview", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "variant": "mismatched", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "variant": "html-summary", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "variant": "late", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "variant": "failure", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "variant": "failure", + "url": "http://127.0.0.1:5173/api/workflows/33" + } + ], + "checks": [ + "34图1069保存位置", + "34图25源注释", + "1440 图像放大比较默认中文用途", + "1440 图像放大比较源审校默认折叠", + "1440 图像放大比较技术范围默认折叠", + "1440 图像放大比较默认无执行计数/实现标识", + "1440 图像放大比较默认依据限制可见", + "1440 图像放大比较 说明未定稿", + "1440 图像放大比较 未验证实跑", + "1440 图像放大比较 未检查", + "1440 图像放大比较停用/时间戳空", + "1440 图像放大比较参数全保留", + "1440 图像放大比较默认无溢出", + "1440 图像放大比较原用途/源路径展开保留", + "1440 图像放大比较展开流程 0", + "1440 图像放大比较展开流程 1", + "1440 图像放大比较展开流程 2", + "1440 图像放大比较展开流程 3", + "1440 图像放大比较展开流程 4", + "1440 图像放大比较展开流程 5", + "1440 图像放大比较展开流程 6", + "1440 图像放大比较展开流程 7", + "1440 图像放大比较展开流程 8", + "1440 图像放大比较展开流程 9", + "1440 图像放大比较展开流程 10", + "1440 图像放大比较展开流程 11", + "1440 图像放大比较展开流程 12", + "1440 图像放大比较展开流程 13", + "1440 图像放大比较展开流程 14", + "1440 图像放大比较展开流程 15", + "1440 图像放大比较展开流程 16", + "1440 图像放大比较展开流程 17", + "1440 图像放大比较展开流程 18", + "1440 图像放大比较展开流程 19", + "1440 图像放大比较展开流程 20", + "1440 图像放大比较展开流程 21", + "1440 图像放大比较展开流程 22", + "1440 图像放大比较展开流程 23", + "1440 图像放大比较展开流程 24", + "1440 图像放大比较展开流程 25", + "1440 图像放大比较展开流程 26", + "1440 图像放大比较展开流程 27", + "1440 图像放大比较展开流程 28", + "1440 图像放大比较展开流程 29", + "1440 图像放大比较展开流程 30", + "1440 图像放大比较展开流程 31", + "1440 图像放大比较展开流程 32", + "1440 图像放大比较展开流程 33", + "1440 图像放大比较原件摘要可展开", + "1440 图像放大比较版本 0", + "1440 图像放大比较版本 1", + "1440 图像放大比较版本 2", + "1440 图像放大比较版本 3", + "1440 图像放大比较版本 4", + "1440 图像放大比较版本 5", + "1440 图像放大比较版本 6", + "1440 1.image键盘展开", + "1440 1.image用途/单位/范围/来源条件", + "1440 1.image精确保留现值", + "1440 1.image指针默认折叠", + "1440 1.image精确源码/类型/指针", + "1440 1.image展开无溢出", + "1440 1.upload键盘展开", + "1440 1.upload用途/单位/范围/来源条件", + "1440 1.upload精确保留现值", + "1440 1.upload指针默认折叠", + "1440 1.upload精确源码/类型/指针", + "1440 1.upload展开无溢出", + "1440 4.upscale_method键盘展开", + "1440 4.upscale_method用途/单位/范围/来源条件", + "1440 4.upscale_method精确保留现值", + "1440 4.upscale_method指针默认折叠", + "1440 4.upscale_method精确源码/类型/指针", + "1440 4.upscale_method展开无溢出", + "1440 4.width键盘展开", + "1440 4.width用途/单位/范围/来源条件", + "1440 4.width精确保留现值", + "1440 4.width指针默认折叠", + "1440 4.width精确源码/类型/指针", + "1440 4.width展开无溢出", + "1440 4.height键盘展开", + "1440 4.height用途/单位/范围/来源条件", + "1440 4.height精确保留现值", + "1440 4.height指针默认折叠", + "1440 4.height精确源码/类型/指针", + "1440 4.height展开无溢出", + "1440 4.crop键盘展开", + "1440 4.crop用途/单位/范围/来源条件", + "1440 4.crop精确保留现值", + "1440 4.crop指针默认折叠", + "1440 4.crop精确源码/类型/指针", + "1440 4.crop展开无溢出", + "1440 12.value键盘展开", + "1440 12.value用途/单位/范围/来源条件", + "1440 12.value精确保留现值", + "1440 12.value指针默认折叠", + "1440 12.value精确源码/类型/指针", + "1440 12.value展开无溢出", + "1440 11.value键盘展开", + "1440 11.value用途/单位/范围/来源条件", + "1440 11.value精确保留现值", + "1440 11.value指针默认折叠", + "1440 11.value精确源码/类型/指针", + "1440 11.value展开无溢出", + "1440 2.width键盘展开", + "1440 2.width用途/单位/范围/来源条件", + "1440 2.width精确保留现值", + "1440 2.width指针默认折叠", + "1440 2.width精确源码/类型/指针", + "1440 2.width展开无溢出", + "1440 2.height键盘展开", + "1440 2.height用途/单位/范围/来源条件", + "1440 2.height精确保留现值", + "1440 2.height指针默认折叠", + "1440 2.height精确源码/类型/指针", + "1440 2.height展开无溢出", + "1440 2.upscale_method键盘展开", + "1440 2.upscale_method用途/单位/范围/来源条件", + "1440 2.upscale_method精确保留现值", + "1440 2.upscale_method指针默认折叠", + "1440 2.upscale_method精确源码/类型/指针", + "1440 2.upscale_method展开无溢出", + "1440 2.keep_proportion键盘展开", + "1440 2.keep_proportion用途/单位/范围/来源条件", + "1440 2.keep_proportion精确保留现值", + "1440 2.keep_proportion指针默认折叠", + "1440 2.keep_proportion精确源码/类型/指针", + "1440 2.keep_proportion展开无溢出", + "1440 2.pad_color键盘展开", + "1440 2.pad_color用途/单位/范围/来源条件", + "1440 2.pad_color精确保留现值", + "1440 2.pad_color指针默认折叠", + "1440 2.pad_color精确源码/类型/指针", + "1440 2.pad_color展开无溢出", + "1440 2.crop_position键盘展开", + "1440 2.crop_position用途/单位/范围/来源条件", + "1440 2.crop_position精确保留现值", + "1440 2.crop_position指针默认折叠", + "1440 2.crop_position精确源码/类型/指针", + "1440 2.crop_position展开无溢出", + "1440 2.divisible_by键盘展开", + "1440 2.divisible_by用途/单位/范围/来源条件", + "1440 2.divisible_by精确保留现值", + "1440 2.divisible_by指针默认折叠", + "1440 2.divisible_by精确源码/类型/指针", + "1440 2.divisible_by展开无溢出", + "1440 2.device键盘展开", + "1440 2.device用途/单位/范围/来源条件", + "1440 2.device精确保留现值", + "1440 2.device指针默认折叠", + "1440 2.device精确源码/类型/指针", + "1440 2.device展开无溢出", + "1440 5.scale键盘展开", + "1440 5.scale用途/单位/范围/来源条件", + "1440 5.scale精确保留现值", + "1440 5.scale指针默认折叠", + "1440 5.scale精确源码/类型/指针", + "1440 5.scale展开无溢出", + "1440 5.method键盘展开", + "1440 5.method用途/单位/范围/来源条件", + "1440 5.method精确保留现值", + "1440 5.method指针默认折叠", + "1440 5.method精确源码/类型/指针", + "1440 5.method展开无溢出", + "1440 5.scale_by键盘展开", + "1440 5.scale_by用途/单位/范围/来源条件", + "1440 5.scale_by精确保留现值", + "1440 5.scale_by指针默认折叠", + "1440 5.scale_by精确源码/类型/指针", + "1440 5.scale_by展开无溢出", + "1440 5.scale_by_length键盘展开", + "1440 5.scale_by_length用途/单位/范围/来源条件", + "1440 5.scale_by_length精确保留现值", + "1440 5.scale_by_length指针默认折叠", + "1440 5.scale_by_length精确源码/类型/指针", + "1440 5.scale_by_length展开无溢出", + "1440 7.aspect_ratio键盘展开", + "1440 7.aspect_ratio用途/单位/范围/来源条件", + "1440 7.aspect_ratio精确保留现值", + "1440 7.aspect_ratio指针默认折叠", + "1440 7.aspect_ratio精确源码/类型/指针", + "1440 7.aspect_ratio展开无溢出", + "1440 7.proportional_width键盘展开", + "1440 7.proportional_width用途/单位/范围/来源条件", + "1440 7.proportional_width精确保留现值", + "1440 7.proportional_width指针默认折叠", + "1440 7.proportional_width精确源码/类型/指针", + "1440 7.proportional_width展开无溢出", + "1440 7.proportional_height键盘展开", + "1440 7.proportional_height用途/单位/范围/来源条件", + "1440 7.proportional_height精确保留现值", + "1440 7.proportional_height指针默认折叠", + "1440 7.proportional_height精确源码/类型/指针", + "1440 7.proportional_height展开无溢出", + "1440 7.fit键盘展开", + "1440 7.fit用途/单位/范围/来源条件", + "1440 7.fit精确保留现值", + "1440 7.fit指针默认折叠", + "1440 7.fit精确源码/类型/指针", + "1440 7.fit展开无溢出", + "1440 7.method键盘展开", + "1440 7.method用途/单位/范围/来源条件", + "1440 7.method精确保留现值", + "1440 7.method指针默认折叠", + "1440 7.method精确源码/类型/指针", + "1440 7.method展开无溢出", + "1440 7.round_to_multiple键盘展开", + "1440 7.round_to_multiple用途/单位/范围/来源条件", + "1440 7.round_to_multiple精确保留现值", + "1440 7.round_to_multiple指针默认折叠", + "1440 7.round_to_multiple精确源码/类型/指针", + "1440 7.round_to_multiple展开无溢出", + "1440 7.scale_to_side键盘展开", + "1440 7.scale_to_side用途/单位/范围/来源条件", + "1440 7.scale_to_side精确保留现值", + "1440 7.scale_to_side指针默认折叠", + "1440 7.scale_to_side精确源码/类型/指针", + "1440 7.scale_to_side展开无溢出", + "1440 7.scale_to_length键盘展开", + "1440 7.scale_to_length用途/单位/范围/来源条件", + "1440 7.scale_to_length精确保留现值", + "1440 7.scale_to_length指针默认折叠", + "1440 7.scale_to_length精确源码/类型/指针", + "1440 7.scale_to_length展开无溢出", + "1440 7.background_color键盘展开", + "1440 7.background_color用途/单位/范围/来源条件", + "1440 7.background_color精确保留现值", + "1440 7.background_color指针默认折叠", + "1440 7.background_color精确源码/类型/指针", + "1440 7.background_color展开无溢出", + "1440 17.output键盘展开", + "1440 17.output用途/单位/范围/来源条件", + "1440 17.output精确保留现值", + "1440 17.output指针默认折叠", + "1440 17.output精确源码/类型/指针", + "1440 17.output展开无溢出", + "1440 13.output键盘展开", + "1440 13.output用途/单位/范围/来源条件", + "1440 13.output精确保留现值", + "1440 13.output指针默认折叠", + "1440 13.output精确源码/类型/指针", + "1440 13.output展开无溢出", + "1440 18.output键盘展开", + "1440 18.output用途/单位/范围/来源条件", + "1440 18.output精确保留现值", + "1440 18.output指针默认折叠", + "1440 18.output精确源码/类型/指针", + "1440 18.output展开无溢出", + "1440 15.output键盘展开", + "1440 15.output用途/单位/范围/来源条件", + "1440 15.output精确保留现值", + "1440 15.output指针默认折叠", + "1440 15.output精确源码/类型/指针", + "1440 15.output展开无溢出", + "1440 16.output键盘展开", + "1440 16.output用途/单位/范围/来源条件", + "1440 16.output精确保留现值", + "1440 16.output指针默认折叠", + "1440 16.output精确源码/类型/指针", + "1440 16.output展开无溢出", + "1440 14.output键盘展开", + "1440 14.output用途/单位/范围/来源条件", + "1440 14.output精确保留现值", + "1440 14.output指针默认折叠", + "1440 14.output精确源码/类型/指针", + "1440 14.output展开无溢出", + "1440Tab焦点保留", + "1440ShiftTab焦点保留", + "1440 图像放大比较关闭归还焦点", + "1440 VOSR2_图像超分放大默认中文用途", + "1440 VOSR2_图像超分放大源审校默认折叠", + "1440 VOSR2_图像超分放大技术范围默认折叠", + "1440 VOSR2_图像超分放大默认无执行计数/实现标识", + "1440 VOSR2_图像超分放大默认依据限制可见", + "1440 VOSR2_图像超分放大 说明未定稿", + "1440 VOSR2_图像超分放大 未验证实跑", + "1440 VOSR2_图像超分放大 未检查", + "1440 VOSR2_图像超分放大停用/时间戳空", + "1440 VOSR2_图像超分放大参数全保留", + "1440 VOSR2_图像超分放大默认无溢出", + "1440 VOSR2_图像超分放大旧图归还焦点", + "1440 Seedvr2_3b_int8_视频放大默认中文用途", + "1440 Seedvr2_3b_int8_视频放大源审校默认折叠", + "1440 Seedvr2_3b_int8_视频放大技术范围默认折叠", + "1440 Seedvr2_3b_int8_视频放大默认无执行计数/实现标识", + "1440 Seedvr2_3b_int8_视频放大默认依据限制可见", + "1440 Seedvr2_3b_int8_视频放大 说明未定稿", + "1440 Seedvr2_3b_int8_视频放大 未验证实跑", + "1440 Seedvr2_3b_int8_视频放大 未检查", + "1440 Seedvr2_3b_int8_视频放大停用/时间戳空", + "1440 Seedvr2_3b_int8_视频放大参数全保留", + "1440 Seedvr2_3b_int8_视频放大默认无溢出", + "1440 Seedvr2_3b_int8_视频放大旧图归还焦点", + "1440 Seedvr2_3b_int8_图像放大默认中文用途", + "1440 Seedvr2_3b_int8_图像放大源审校默认折叠", + "1440 Seedvr2_3b_int8_图像放大技术范围默认折叠", + "1440 Seedvr2_3b_int8_图像放大默认无执行计数/实现标识", + "1440 Seedvr2_3b_int8_图像放大默认依据限制可见", + "1440 Seedvr2_3b_int8_图像放大 说明未定稿", + "1440 Seedvr2_3b_int8_图像放大 未验证实跑", + "1440 Seedvr2_3b_int8_图像放大 未检查", + "1440 Seedvr2_3b_int8_图像放大停用/时间戳空", + "1440 Seedvr2_3b_int8_图像放大参数全保留", + "1440 Seedvr2_3b_int8_图像放大默认无溢出", + "1440 Seedvr2_3b_int8_图像放大旧图归还焦点", + "1440 RTX_video_upscale默认中文用途", + "1440 RTX_video_upscale源审校默认折叠", + "1440 RTX_video_upscale技术范围默认折叠", + "1440 RTX_video_upscale默认无执行计数/实现标识", + "1440 RTX_video_upscale默认依据限制可见", + "1440 RTX_video_upscale 说明未定稿", + "1440 RTX_video_upscale 未验证实跑", + "1440 RTX_video_upscale 未检查", + "1440 RTX_video_upscale停用/时间戳空", + "1440 RTX_video_upscale参数全保留", + "1440 RTX_video_upscale默认无溢出", + "1440 RTX_video_upscale旧图归还焦点", + "1440 RTX_image_upscale默认中文用途", + "1440 RTX_image_upscale源审校默认折叠", + "1440 RTX_image_upscale技术范围默认折叠", + "1440 RTX_image_upscale默认无执行计数/实现标识", + "1440 RTX_image_upscale默认依据限制可见", + "1440 RTX_image_upscale 说明未定稿", + "1440 RTX_image_upscale 未验证实跑", + "1440 RTX_image_upscale 未检查", + "1440 RTX_image_upscale停用/时间戳空", + "1440 RTX_image_upscale参数全保留", + "1440 RTX_image_upscale默认无溢出", + "1440 RTX_image_upscale旧图归还焦点", + "1440 手动按分镜视频截取默认中文用途", + "1440 手动按分镜视频截取源审校默认折叠", + "1440 手动按分镜视频截取技术范围默认折叠", + "1440 手动按分镜视频截取默认无执行计数/实现标识", + "1440 手动按分镜视频截取默认依据限制可见", + "1440 手动按分镜视频截取 说明未定稿", + "1440 手动按分镜视频截取 未验证实跑", + "1440 手动按分镜视频截取 未检查", + "1440 手动按分镜视频截取停用/时间戳空", + "1440 手动按分镜视频截取参数全保留", + "1440 手动按分镜视频截取默认无溢出", + "1440 手动按分镜视频截取旧图归还焦点", + "1440 sam3_图像视频-提示词遮罩分割默认中文用途", + "1440 sam3_图像视频-提示词遮罩分割源审校默认折叠", + "1440 sam3_图像视频-提示词遮罩分割技术范围默认折叠", + "1440 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识", + "1440 sam3_图像视频-提示词遮罩分割默认依据限制可见", + "1440 sam3_图像视频-提示词遮罩分割 说明未定稿", + "1440 sam3_图像视频-提示词遮罩分割 未验证实跑", + "1440 sam3_图像视频-提示词遮罩分割 未检查", + "1440 sam3_图像视频-提示词遮罩分割停用/时间戳空", + "1440 sam3_图像视频-提示词遮罩分割参数全保留", + "1440 sam3_图像视频-提示词遮罩分割默认无溢出", + "1440 sam3_图像视频-提示词遮罩分割旧图归还焦点", + "1440 多视频合成分屏展示默认中文用途", + "1440 多视频合成分屏展示源审校默认折叠", + "1440 多视频合成分屏展示技术范围默认折叠", + "1440 多视频合成分屏展示默认无执行计数/实现标识", + "1440 多视频合成分屏展示默认依据限制可见", + "1440 多视频合成分屏展示 说明未定稿", + "1440 多视频合成分屏展示 未验证实跑", + "1440 多视频合成分屏展示 未检查", + "1440 多视频合成分屏展示停用/时间戳空", + "1440 多视频合成分屏展示参数全保留", + "1440 多视频合成分屏展示默认无溢出", + "1440 多视频合成分屏展示旧图归还焦点", + "1440 图像4种添加水印节点默认中文用途", + "1440 图像4种添加水印节点源审校默认折叠", + "1440 图像4种添加水印节点技术范围默认折叠", + "1440 图像4种添加水印节点默认无执行计数/实现标识", + "1440 图像4种添加水印节点默认依据限制可见", + "1440 图像4种添加水印节点 说明未定稿", + "1440 图像4种添加水印节点 未验证实跑", + "1440 图像4种添加水印节点 未检查", + "1440 图像4种添加水印节点停用/时间戳空", + "1440 图像4种添加水印节点参数全保留", + "1440 图像4种添加水印节点默认无溢出", + "1440 图像4种添加水印节点旧图归还焦点", + "1440 birefnet_图像移除背景默认中文用途", + "1440 birefnet_图像移除背景源审校默认折叠", + "1440 birefnet_图像移除背景技术范围默认折叠", + "1440 birefnet_图像移除背景默认无执行计数/实现标识", + "1440 birefnet_图像移除背景默认依据限制可见", + "1440 birefnet_图像移除背景 说明未定稿", + "1440 birefnet_图像移除背景 未验证实跑", + "1440 birefnet_图像移除背景 未检查", + "1440 birefnet_图像移除背景停用/时间戳空", + "1440 birefnet_图像移除背景参数全保留", + "1440 birefnet_图像移除背景默认无溢出", + "1440 birefnet_图像移除背景旧图归还焦点", + "1440 加载本地latent解码默认中文用途", + "1440 加载本地latent解码源审校默认折叠", + "1440 加载本地latent解码技术范围默认折叠", + "1440 加载本地latent解码默认无执行计数/实现标识", + "1440 加载本地latent解码默认依据限制可见", + "1440 加载本地latent解码 说明未定稿", + "1440 加载本地latent解码 未验证实跑", + "1440 加载本地latent解码 未检查", + "1440 加载本地latent解码停用/时间戳空", + "1440 加载本地latent解码参数全保留", + "1440 加载本地latent解码默认无溢出", + "1440 加载本地latent解码旧图归还焦点", + "1440 截取视频每一帧默认中文用途", + "1440 截取视频每一帧源审校默认折叠", + "1440 截取视频每一帧技术范围默认折叠", + "1440 截取视频每一帧默认无执行计数/实现标识", + "1440 截取视频每一帧默认依据限制可见", + "1440 截取视频每一帧 说明未定稿", + "1440 截取视频每一帧 未验证实跑", + "1440 截取视频每一帧 未检查", + "1440 截取视频每一帧停用/时间戳空", + "1440 截取视频每一帧参数全保留", + "1440 截取视频每一帧默认无溢出", + "1440 截取视频每一帧旧图归还焦点", + "1440 双图像或视频合并显示默认中文用途", + "1440 双图像或视频合并显示源审校默认折叠", + "1440 双图像或视频合并显示技术范围默认折叠", + "1440 双图像或视频合并显示默认无执行计数/实现标识", + "1440 双图像或视频合并显示默认依据限制可见", + "1440 双图像或视频合并显示 说明未定稿", + "1440 双图像或视频合并显示 未验证实跑", + "1440 双图像或视频合并显示 未检查", + "1440 双图像或视频合并显示停用/时间戳空", + "1440 双图像或视频合并显示参数全保留", + "1440 双图像或视频合并显示默认无溢出", + "1440 双图像或视频合并显示旧图归还焦点", + "1440 视频转gif动图图片默认中文用途", + "1440 视频转gif动图图片源审校默认折叠", + "1440 视频转gif动图图片技术范围默认折叠", + "1440 视频转gif动图图片默认无执行计数/实现标识", + "1440 视频转gif动图图片默认依据限制可见", + "1440 视频转gif动图图片 说明未定稿", + "1440 视频转gif动图图片 未验证实跑", + "1440 视频转gif动图图片 未检查", + "1440 视频转gif动图图片停用/时间戳空", + "1440 视频转gif动图图片参数全保留", + "1440 视频转gif动图图片默认无溢出", + "1440 视频转gif动图图片旧图归还焦点", + "1440 加载图片合成视频默认中文用途", + "1440 加载图片合成视频源审校默认折叠", + "1440 加载图片合成视频技术范围默认折叠", + "1440 加载图片合成视频默认无执行计数/实现标识", + "1440 加载图片合成视频默认依据限制可见", + "1440 加载图片合成视频 说明未定稿", + "1440 加载图片合成视频 未验证实跑", + "1440 加载图片合成视频 未检查", + "1440 加载图片合成视频停用/时间戳空", + "1440 加载图片合成视频参数全保留", + "1440 加载图片合成视频默认无溢出", + "1440 加载图片合成视频旧图归还焦点", + "1440 视频倒放默认中文用途", + "1440 视频倒放源审校默认折叠", + "1440 视频倒放技术范围默认折叠", + "1440 视频倒放默认无执行计数/实现标识", + "1440 视频倒放默认依据限制可见", + "1440 视频倒放 说明未定稿", + "1440 视频倒放 未验证实跑", + "1440 视频倒放 未检查", + "1440 视频倒放停用/时间戳空", + "1440 视频倒放参数全保留", + "1440 视频倒放默认无溢出", + "1440 视频倒放旧图归还焦点", + "1440 NLF_视频人物动作骨架获取默认中文用途", + "1440 NLF_视频人物动作骨架获取源审校默认折叠", + "1440 NLF_视频人物动作骨架获取技术范围默认折叠", + "1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识", + "1440 NLF_视频人物动作骨架获取默认依据限制可见", + "1440 NLF_视频人物动作骨架获取 说明未定稿", + "1440 NLF_视频人物动作骨架获取 未验证实跑", + "1440 NLF_视频人物动作骨架获取 未检查", + "1440 NLF_视频人物动作骨架获取停用/时间戳空", + "1440 NLF_视频人物动作骨架获取参数全保留", + "1440 NLF_视频人物动作骨架获取默认无溢出", + "1440 NLF_视频人物动作骨架获取旧图归还焦点", + "1440 openpose-video-姿态检测默认中文用途", + "1440 openpose-video-姿态检测源审校默认折叠", + "1440 openpose-video-姿态检测技术范围默认折叠", + "1440 openpose-video-姿态检测默认无执行计数/实现标识", + "1440 openpose-video-姿态检测默认依据限制可见", + "1440 openpose-video-姿态检测 说明未定稿", + "1440 openpose-video-姿态检测 未验证实跑", + "1440 openpose-video-姿态检测 未检查", + "1440 openpose-video-姿态检测停用/时间戳空", + "1440 openpose-video-姿态检测参数全保留", + "1440 openpose-video-姿态检测默认无溢出", + "1440 openpose-video-姿态检测旧图归还焦点", + "1440 sdpose_视频人物姿势骨架提取默认中文用途", + "1440 sdpose_视频人物姿势骨架提取源审校默认折叠", + "1440 sdpose_视频人物姿势骨架提取技术范围默认折叠", + "1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识", + "1440 sdpose_视频人物姿势骨架提取默认依据限制可见", + "1440 sdpose_视频人物姿势骨架提取 说明未定稿", + "1440 sdpose_视频人物姿势骨架提取 未验证实跑", + "1440 sdpose_视频人物姿势骨架提取 未检查", + "1440 sdpose_视频人物姿势骨架提取停用/时间戳空", + "1440 sdpose_视频人物姿势骨架提取参数全保留", + "1440 sdpose_视频人物姿势骨架提取默认无溢出", + "1440 sdpose_视频人物姿势骨架提取旧图归还焦点", + "1440 gemma4_提示词反推(图像视频音频)默认中文用途", + "1440 gemma4_提示词反推(图像视频音频)源审校默认折叠", + "1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠", + "1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识", + "1440 gemma4_提示词反推(图像视频音频)默认依据限制可见", + "1440 gemma4_提示词反推(图像视频音频) 说明未定稿", + "1440 gemma4_提示词反推(图像视频音频) 未验证实跑", + "1440 gemma4_提示词反推(图像视频音频) 未检查", + "1440 gemma4_提示词反推(图像视频音频)停用/时间戳空", + "1440 gemma4_提示词反推(图像视频音频)参数全保留", + "1440 gemma4_提示词反推(图像视频音频)默认无溢出", + "1440 gemma4_提示词反推(图像视频音频)旧图归还焦点", + "1440 图像合并成四宫格默认中文用途", + "1440 图像合并成四宫格源审校默认折叠", + "1440 图像合并成四宫格技术范围默认折叠", + "1440 图像合并成四宫格默认无执行计数/实现标识", + "1440 图像合并成四宫格默认依据限制可见", + "1440 图像合并成四宫格 说明未定稿", + "1440 图像合并成四宫格 未验证实跑", + "1440 图像合并成四宫格 未检查", + "1440 图像合并成四宫格停用/时间戳空", + "1440 图像合并成四宫格参数全保留", + "1440 图像合并成四宫格默认无溢出", + "1440 图像合并成四宫格旧图归还焦点", + "1440 图像分割-多宫格分割默认中文用途", + "1440 图像分割-多宫格分割源审校默认折叠", + "1440 图像分割-多宫格分割技术范围默认折叠", + "1440 图像分割-多宫格分割默认无执行计数/实现标识", + "1440 图像分割-多宫格分割默认依据限制可见", + "1440 图像分割-多宫格分割 说明未定稿", + "1440 图像分割-多宫格分割 未验证实跑", + "1440 图像分割-多宫格分割 未检查", + "1440 图像分割-多宫格分割停用/时间戳空", + "1440 图像分割-多宫格分割参数全保留", + "1440 图像分割-多宫格分割默认无溢出", + "1440 图像分割-多宫格分割旧图归还焦点", + "1440 Qwen_image2.1_图像编辑_背景移除默认中文用途", + "1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠", + "1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠", + "1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识", + "1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见", + "1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿", + "1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑", + "1440 Qwen_image2.1_图像编辑_背景移除 未检查", + "1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空", + "1440 Qwen_image2.1_图像编辑_背景移除参数全保留", + "1440 Qwen_image2.1_图像编辑_背景移除默认无溢出", + "1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点", + "1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途", + "1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠", + "1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠", + "1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识", + "1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见", + "1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿", + "1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑", + "1440 Qwen_image2.1_图像编辑_提示词增强 未检查", + "1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空", + "1440 Qwen_image2.1_图像编辑_提示词增强参数全保留", + "1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出", + "1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点", + "1440 Qwen_image2.1_文生图_提示词增强默认中文用途", + "1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠", + "1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠", + "1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识", + "1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见", + "1440 Qwen_image2.1_文生图_提示词增强 说明未定稿", + "1440 Qwen_image2.1_文生图_提示词增强 未验证实跑", + "1440 Qwen_image2.1_文生图_提示词增强 未检查", + "1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空", + "1440 Qwen_image2.1_文生图_提示词增强参数全保留", + "1440 Qwen_image2.1_文生图_提示词增强默认无溢出", + "1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点", + "1440 ControlNet_aux_常用样例默认中文用途", + "1440 ControlNet_aux_常用样例源审校默认折叠", + "1440 ControlNet_aux_常用样例技术范围默认折叠", + "1440 ControlNet_aux_常用样例默认无执行计数/实现标识", + "1440 ControlNet_aux_常用样例默认依据限制可见", + "1440 ControlNet_aux_常用样例 说明未定稿", + "1440 ControlNet_aux_常用样例 未验证实跑", + "1440 ControlNet_aux_常用样例 未检查", + "1440 ControlNet_aux_常用样例停用/时间戳空", + "1440 ControlNet_aux_常用样例参数全保留", + "1440 ControlNet_aux_常用样例默认无溢出", + "1440 ControlNet_aux_常用样例旧图归还焦点", + "1440 Qwen3-ASR-语音转文字默认中文用途", + "1440 Qwen3-ASR-语音转文字源审校默认折叠", + "1440 Qwen3-ASR-语音转文字技术范围默认折叠", + "1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识", + "1440 Qwen3-ASR-语音转文字默认依据限制可见", + "1440 Qwen3-ASR-语音转文字 说明未定稿", + "1440 Qwen3-ASR-语音转文字 未验证实跑", + "1440 Qwen3-ASR-语音转文字 未检查", + "1440 Qwen3-ASR-语音转文字停用/时间戳空", + "1440 Qwen3-ASR-语音转文字参数全保留", + "1440 Qwen3-ASR-语音转文字默认无溢出", + "1440 Qwen3-ASR-语音转文字旧图归还焦点", + "1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途", + "1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠", + "1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠", + "1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识", + "1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见", + "1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿", + "1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑", + "1440 Qwen3-ASR-Subtitle语音转字幕 未检查", + "1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空", + "1440 Qwen3-ASR-Subtitle语音转字幕参数全保留", + "1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出", + "1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点", + "1440 Minimax-H3提示词增强默认中文用途", + "1440 Minimax-H3提示词增强源审校默认折叠", + "1440 Minimax-H3提示词增强技术范围默认折叠", + "1440 Minimax-H3提示词增强默认无执行计数/实现标识", + "1440 Minimax-H3提示词增强默认依据限制可见", + "1440 Minimax-H3提示词增强 说明未定稿", + "1440 Minimax-H3提示词增强 未验证实跑", + "1440 Minimax-H3提示词增强 未检查", + "1440 Minimax-H3提示词增强停用/时间戳空", + "1440 Minimax-H3提示词增强参数全保留", + "1440 Minimax-H3提示词增强默认无溢出", + "1440 Minimax-H3提示词增强旧图归还焦点", + "1440 音频转MP3格式默认中文用途", + "1440 音频转MP3格式源审校默认折叠", + "1440 音频转MP3格式技术范围默认折叠", + "1440 音频转MP3格式默认无执行计数/实现标识", + "1440 音频转MP3格式默认依据限制可见", + "1440 音频转MP3格式 说明未定稿", + "1440 音频转MP3格式 未验证实跑", + "1440 音频转MP3格式 未检查", + "1440 音频转MP3格式停用/时间戳空", + "1440 音频转MP3格式参数全保留", + "1440 音频转MP3格式默认无溢出", + "1440 音频转MP3格式旧图归还焦点", + "1440 音频人声分离默认中文用途", + "1440 音频人声分离源审校默认折叠", + "1440 音频人声分离技术范围默认折叠", + "1440 音频人声分离默认无执行计数/实现标识", + "1440 音频人声分离默认依据限制可见", + "1440 音频人声分离 说明未定稿", + "1440 音频人声分离 未验证实跑", + "1440 音频人声分离 未检查", + "1440 音频人声分离停用/时间戳空", + "1440 音频人声分离参数全保留", + "1440 音频人声分离默认无溢出", + "1440 音频人声分离旧图归还焦点", + "1440 视频-音频分离默认中文用途", + "1440 视频-音频分离源审校默认折叠", + "1440 视频-音频分离技术范围默认折叠", + "1440 视频-音频分离默认无执行计数/实现标识", + "1440 视频-音频分离默认依据限制可见", + "1440 视频-音频分离 说明未定稿", + "1440 视频-音频分离 未验证实跑", + "1440 视频-音频分离 未检查", + "1440 视频-音频分离停用/时间戳空", + "1440 视频-音频分离参数全保留", + "1440 视频-音频分离默认无溢出", + "1440 视频-音频分离旧图归还焦点", + "1440 图像嵌入文字描述默认中文用途", + "1440 图像嵌入文字描述源审校默认折叠", + "1440 图像嵌入文字描述技术范围默认折叠", + "1440 图像嵌入文字描述默认无执行计数/实现标识", + "1440 图像嵌入文字描述默认依据限制可见", + "1440 图像嵌入文字描述 说明未定稿", + "1440 图像嵌入文字描述 未验证实跑", + "1440 图像嵌入文字描述 未检查", + "1440 图像嵌入文字描述停用/时间戳空", + "1440 图像嵌入文字描述参数全保留", + "1440 图像嵌入文字描述默认无溢出", + "1440 图像嵌入文字描述旧图归还焦点", + "390 图像放大比较默认中文用途", + "390 图像放大比较源审校默认折叠", + "390 图像放大比较技术范围默认折叠", + "390 图像放大比较默认无执行计数/实现标识", + "390 图像放大比较默认依据限制可见", + "390 图像放大比较 说明未定稿", + "390 图像放大比较 未验证实跑", + "390 图像放大比较 未检查", + "390 图像放大比较停用/时间戳空", + "390 图像放大比较参数全保留", + "390 图像放大比较默认无溢出", + "390 图像放大比较原用途/源路径展开保留", + "390 图像放大比较展开流程 0", + "390 图像放大比较展开流程 1", + "390 图像放大比较展开流程 2", + "390 图像放大比较展开流程 3", + "390 图像放大比较展开流程 4", + "390 图像放大比较展开流程 5", + "390 图像放大比较展开流程 6", + "390 图像放大比较展开流程 7", + "390 图像放大比较展开流程 8", + "390 图像放大比较展开流程 9", + "390 图像放大比较展开流程 10", + "390 图像放大比较展开流程 11", + "390 图像放大比较展开流程 12", + "390 图像放大比较展开流程 13", + "390 图像放大比较展开流程 14", + "390 图像放大比较展开流程 15", + "390 图像放大比较展开流程 16", + "390 图像放大比较展开流程 17", + "390 图像放大比较展开流程 18", + "390 图像放大比较展开流程 19", + "390 图像放大比较展开流程 20", + "390 图像放大比较展开流程 21", + "390 图像放大比较展开流程 22", + "390 图像放大比较展开流程 23", + "390 图像放大比较展开流程 24", + "390 图像放大比较展开流程 25", + "390 图像放大比较展开流程 26", + "390 图像放大比较展开流程 27", + "390 图像放大比较展开流程 28", + "390 图像放大比较展开流程 29", + "390 图像放大比较展开流程 30", + "390 图像放大比较展开流程 31", + "390 图像放大比较展开流程 32", + "390 图像放大比较展开流程 33", + "390 图像放大比较原件摘要可展开", + "390 图像放大比较版本 0", + "390 图像放大比较版本 1", + "390 图像放大比较版本 2", + "390 图像放大比较版本 3", + "390 图像放大比较版本 4", + "390 图像放大比较版本 5", + "390 图像放大比较版本 6", + "390 1.image键盘展开", + "390 1.image用途/单位/范围/来源条件", + "390 1.image精确保留现值", + "390 1.image指针默认折叠", + "390 1.image精确源码/类型/指针", + "390 1.image展开无溢出", + "390 1.upload键盘展开", + "390 1.upload用途/单位/范围/来源条件", + "390 1.upload精确保留现值", + "390 1.upload指针默认折叠", + "390 1.upload精确源码/类型/指针", + "390 1.upload展开无溢出", + "390 4.upscale_method键盘展开", + "390 4.upscale_method用途/单位/范围/来源条件", + "390 4.upscale_method精确保留现值", + "390 4.upscale_method指针默认折叠", + "390 4.upscale_method精确源码/类型/指针", + "390 4.upscale_method展开无溢出", + "390 4.width键盘展开", + "390 4.width用途/单位/范围/来源条件", + "390 4.width精确保留现值", + "390 4.width指针默认折叠", + "390 4.width精确源码/类型/指针", + "390 4.width展开无溢出", + "390 4.height键盘展开", + "390 4.height用途/单位/范围/来源条件", + "390 4.height精确保留现值", + "390 4.height指针默认折叠", + "390 4.height精确源码/类型/指针", + "390 4.height展开无溢出", + "390 4.crop键盘展开", + "390 4.crop用途/单位/范围/来源条件", + "390 4.crop精确保留现值", + "390 4.crop指针默认折叠", + "390 4.crop精确源码/类型/指针", + "390 4.crop展开无溢出", + "390 12.value键盘展开", + "390 12.value用途/单位/范围/来源条件", + "390 12.value精确保留现值", + "390 12.value指针默认折叠", + "390 12.value精确源码/类型/指针", + "390 12.value展开无溢出", + "390 11.value键盘展开", + "390 11.value用途/单位/范围/来源条件", + "390 11.value精确保留现值", + "390 11.value指针默认折叠", + "390 11.value精确源码/类型/指针", + "390 11.value展开无溢出", + "390 2.width键盘展开", + "390 2.width用途/单位/范围/来源条件", + "390 2.width精确保留现值", + "390 2.width指针默认折叠", + "390 2.width精确源码/类型/指针", + "390 2.width展开无溢出", + "390 2.height键盘展开", + "390 2.height用途/单位/范围/来源条件", + "390 2.height精确保留现值", + "390 2.height指针默认折叠", + "390 2.height精确源码/类型/指针", + "390 2.height展开无溢出", + "390 2.upscale_method键盘展开", + "390 2.upscale_method用途/单位/范围/来源条件", + "390 2.upscale_method精确保留现值", + "390 2.upscale_method指针默认折叠", + "390 2.upscale_method精确源码/类型/指针", + "390 2.upscale_method展开无溢出", + "390 2.keep_proportion键盘展开", + "390 2.keep_proportion用途/单位/范围/来源条件", + "390 2.keep_proportion精确保留现值", + "390 2.keep_proportion指针默认折叠", + "390 2.keep_proportion精确源码/类型/指针", + "390 2.keep_proportion展开无溢出", + "390 2.pad_color键盘展开", + "390 2.pad_color用途/单位/范围/来源条件", + "390 2.pad_color精确保留现值", + "390 2.pad_color指针默认折叠", + "390 2.pad_color精确源码/类型/指针", + "390 2.pad_color展开无溢出", + "390 2.crop_position键盘展开", + "390 2.crop_position用途/单位/范围/来源条件", + "390 2.crop_position精确保留现值", + "390 2.crop_position指针默认折叠", + "390 2.crop_position精确源码/类型/指针", + "390 2.crop_position展开无溢出", + "390 2.divisible_by键盘展开", + "390 2.divisible_by用途/单位/范围/来源条件", + "390 2.divisible_by精确保留现值", + "390 2.divisible_by指针默认折叠", + "390 2.divisible_by精确源码/类型/指针", + "390 2.divisible_by展开无溢出", + "390 2.device键盘展开", + "390 2.device用途/单位/范围/来源条件", + "390 2.device精确保留现值", + "390 2.device指针默认折叠", + "390 2.device精确源码/类型/指针", + "390 2.device展开无溢出", + "390 5.scale键盘展开", + "390 5.scale用途/单位/范围/来源条件", + "390 5.scale精确保留现值", + "390 5.scale指针默认折叠", + "390 5.scale精确源码/类型/指针", + "390 5.scale展开无溢出", + "390 5.method键盘展开", + "390 5.method用途/单位/范围/来源条件", + "390 5.method精确保留现值", + "390 5.method指针默认折叠", + "390 5.method精确源码/类型/指针", + "390 5.method展开无溢出", + "390 5.scale_by键盘展开", + "390 5.scale_by用途/单位/范围/来源条件", + "390 5.scale_by精确保留现值", + "390 5.scale_by指针默认折叠", + "390 5.scale_by精确源码/类型/指针", + "390 5.scale_by展开无溢出", + "390 5.scale_by_length键盘展开", + "390 5.scale_by_length用途/单位/范围/来源条件", + "390 5.scale_by_length精确保留现值", + "390 5.scale_by_length指针默认折叠", + "390 5.scale_by_length精确源码/类型/指针", + "390 5.scale_by_length展开无溢出", + "390 7.aspect_ratio键盘展开", + "390 7.aspect_ratio用途/单位/范围/来源条件", + "390 7.aspect_ratio精确保留现值", + "390 7.aspect_ratio指针默认折叠", + "390 7.aspect_ratio精确源码/类型/指针", + "390 7.aspect_ratio展开无溢出", + "390 7.proportional_width键盘展开", + "390 7.proportional_width用途/单位/范围/来源条件", + "390 7.proportional_width精确保留现值", + "390 7.proportional_width指针默认折叠", + "390 7.proportional_width精确源码/类型/指针", + "390 7.proportional_width展开无溢出", + "390 7.proportional_height键盘展开", + "390 7.proportional_height用途/单位/范围/来源条件", + "390 7.proportional_height精确保留现值", + "390 7.proportional_height指针默认折叠", + "390 7.proportional_height精确源码/类型/指针", + "390 7.proportional_height展开无溢出", + "390 7.fit键盘展开", + "390 7.fit用途/单位/范围/来源条件", + "390 7.fit精确保留现值", + "390 7.fit指针默认折叠", + "390 7.fit精确源码/类型/指针", + "390 7.fit展开无溢出", + "390 7.method键盘展开", + "390 7.method用途/单位/范围/来源条件", + "390 7.method精确保留现值", + "390 7.method指针默认折叠", + "390 7.method精确源码/类型/指针", + "390 7.method展开无溢出", + "390 7.round_to_multiple键盘展开", + "390 7.round_to_multiple用途/单位/范围/来源条件", + "390 7.round_to_multiple精确保留现值", + "390 7.round_to_multiple指针默认折叠", + "390 7.round_to_multiple精确源码/类型/指针", + "390 7.round_to_multiple展开无溢出", + "390 7.scale_to_side键盘展开", + "390 7.scale_to_side用途/单位/范围/来源条件", + "390 7.scale_to_side精确保留现值", + "390 7.scale_to_side指针默认折叠", + "390 7.scale_to_side精确源码/类型/指针", + "390 7.scale_to_side展开无溢出", + "390 7.scale_to_length键盘展开", + "390 7.scale_to_length用途/单位/范围/来源条件", + "390 7.scale_to_length精确保留现值", + "390 7.scale_to_length指针默认折叠", + "390 7.scale_to_length精确源码/类型/指针", + "390 7.scale_to_length展开无溢出", + "390 7.background_color键盘展开", + "390 7.background_color用途/单位/范围/来源条件", + "390 7.background_color精确保留现值", + "390 7.background_color指针默认折叠", + "390 7.background_color精确源码/类型/指针", + "390 7.background_color展开无溢出", + "390 17.output键盘展开", + "390 17.output用途/单位/范围/来源条件", + "390 17.output精确保留现值", + "390 17.output指针默认折叠", + "390 17.output精确源码/类型/指针", + "390 17.output展开无溢出", + "390 13.output键盘展开", + "390 13.output用途/单位/范围/来源条件", + "390 13.output精确保留现值", + "390 13.output指针默认折叠", + "390 13.output精确源码/类型/指针", + "390 13.output展开无溢出", + "390 18.output键盘展开", + "390 18.output用途/单位/范围/来源条件", + "390 18.output精确保留现值", + "390 18.output指针默认折叠", + "390 18.output精确源码/类型/指针", + "390 18.output展开无溢出", + "390 15.output键盘展开", + "390 15.output用途/单位/范围/来源条件", + "390 15.output精确保留现值", + "390 15.output指针默认折叠", + "390 15.output精确源码/类型/指针", + "390 15.output展开无溢出", + "390 16.output键盘展开", + "390 16.output用途/单位/范围/来源条件", + "390 16.output精确保留现值", + "390 16.output指针默认折叠", + "390 16.output精确源码/类型/指针", + "390 16.output展开无溢出", + "390 14.output键盘展开", + "390 14.output用途/单位/范围/来源条件", + "390 14.output精确保留现值", + "390 14.output指针默认折叠", + "390 14.output精确源码/类型/指针", + "390 14.output展开无溢出", + "390Tab焦点保留", + "390ShiftTab焦点保留", + "390 图像放大比较关闭归还焦点", + "390 VOSR2_图像超分放大默认中文用途", + "390 VOSR2_图像超分放大源审校默认折叠", + "390 VOSR2_图像超分放大技术范围默认折叠", + "390 VOSR2_图像超分放大默认无执行计数/实现标识", + "390 VOSR2_图像超分放大默认依据限制可见", + "390 VOSR2_图像超分放大 说明未定稿", + "390 VOSR2_图像超分放大 未验证实跑", + "390 VOSR2_图像超分放大 未检查", + "390 VOSR2_图像超分放大停用/时间戳空", + "390 VOSR2_图像超分放大参数全保留", + "390 VOSR2_图像超分放大默认无溢出", + "390 VOSR2_图像超分放大旧图归还焦点", + "390 Seedvr2_3b_int8_视频放大默认中文用途", + "390 Seedvr2_3b_int8_视频放大源审校默认折叠", + "390 Seedvr2_3b_int8_视频放大技术范围默认折叠", + "390 Seedvr2_3b_int8_视频放大默认无执行计数/实现标识", + "390 Seedvr2_3b_int8_视频放大默认依据限制可见", + "390 Seedvr2_3b_int8_视频放大 说明未定稿", + "390 Seedvr2_3b_int8_视频放大 未验证实跑", + "390 Seedvr2_3b_int8_视频放大 未检查", + "390 Seedvr2_3b_int8_视频放大停用/时间戳空", + "390 Seedvr2_3b_int8_视频放大参数全保留", + "390 Seedvr2_3b_int8_视频放大默认无溢出", + "390 Seedvr2_3b_int8_视频放大旧图归还焦点", + "390 Seedvr2_3b_int8_图像放大默认中文用途", + "390 Seedvr2_3b_int8_图像放大源审校默认折叠", + "390 Seedvr2_3b_int8_图像放大技术范围默认折叠", + "390 Seedvr2_3b_int8_图像放大默认无执行计数/实现标识", + "390 Seedvr2_3b_int8_图像放大默认依据限制可见", + "390 Seedvr2_3b_int8_图像放大 说明未定稿", + "390 Seedvr2_3b_int8_图像放大 未验证实跑", + "390 Seedvr2_3b_int8_图像放大 未检查", + "390 Seedvr2_3b_int8_图像放大停用/时间戳空", + "390 Seedvr2_3b_int8_图像放大参数全保留", + "390 Seedvr2_3b_int8_图像放大默认无溢出", + "390 Seedvr2_3b_int8_图像放大旧图归还焦点", + "390 RTX_video_upscale默认中文用途", + "390 RTX_video_upscale源审校默认折叠", + "390 RTX_video_upscale技术范围默认折叠", + "390 RTX_video_upscale默认无执行计数/实现标识", + "390 RTX_video_upscale默认依据限制可见", + "390 RTX_video_upscale 说明未定稿", + "390 RTX_video_upscale 未验证实跑", + "390 RTX_video_upscale 未检查", + "390 RTX_video_upscale停用/时间戳空", + "390 RTX_video_upscale参数全保留", + "390 RTX_video_upscale默认无溢出", + "390 RTX_video_upscale旧图归还焦点", + "390 RTX_image_upscale默认中文用途", + "390 RTX_image_upscale源审校默认折叠", + "390 RTX_image_upscale技术范围默认折叠", + "390 RTX_image_upscale默认无执行计数/实现标识", + "390 RTX_image_upscale默认依据限制可见", + "390 RTX_image_upscale 说明未定稿", + "390 RTX_image_upscale 未验证实跑", + "390 RTX_image_upscale 未检查", + "390 RTX_image_upscale停用/时间戳空", + "390 RTX_image_upscale参数全保留", + "390 RTX_image_upscale默认无溢出", + "390 RTX_image_upscale旧图归还焦点", + "390 手动按分镜视频截取默认中文用途", + "390 手动按分镜视频截取源审校默认折叠", + "390 手动按分镜视频截取技术范围默认折叠", + "390 手动按分镜视频截取默认无执行计数/实现标识", + "390 手动按分镜视频截取默认依据限制可见", + "390 手动按分镜视频截取 说明未定稿", + "390 手动按分镜视频截取 未验证实跑", + "390 手动按分镜视频截取 未检查", + "390 手动按分镜视频截取停用/时间戳空", + "390 手动按分镜视频截取参数全保留", + "390 手动按分镜视频截取默认无溢出", + "390 手动按分镜视频截取旧图归还焦点", + "390 sam3_图像视频-提示词遮罩分割默认中文用途", + "390 sam3_图像视频-提示词遮罩分割源审校默认折叠", + "390 sam3_图像视频-提示词遮罩分割技术范围默认折叠", + "390 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识", + "390 sam3_图像视频-提示词遮罩分割默认依据限制可见", + "390 sam3_图像视频-提示词遮罩分割 说明未定稿", + "390 sam3_图像视频-提示词遮罩分割 未验证实跑", + "390 sam3_图像视频-提示词遮罩分割 未检查", + "390 sam3_图像视频-提示词遮罩分割停用/时间戳空", + "390 sam3_图像视频-提示词遮罩分割参数全保留", + "390 sam3_图像视频-提示词遮罩分割默认无溢出", + "390 sam3_图像视频-提示词遮罩分割旧图归还焦点", + "390 多视频合成分屏展示默认中文用途", + "390 多视频合成分屏展示源审校默认折叠", + "390 多视频合成分屏展示技术范围默认折叠", + "390 多视频合成分屏展示默认无执行计数/实现标识", + "390 多视频合成分屏展示默认依据限制可见", + "390 多视频合成分屏展示 说明未定稿", + "390 多视频合成分屏展示 未验证实跑", + "390 多视频合成分屏展示 未检查", + "390 多视频合成分屏展示停用/时间戳空", + "390 多视频合成分屏展示参数全保留", + "390 多视频合成分屏展示默认无溢出", + "390 多视频合成分屏展示旧图归还焦点", + "390 图像4种添加水印节点默认中文用途", + "390 图像4种添加水印节点源审校默认折叠", + "390 图像4种添加水印节点技术范围默认折叠", + "390 图像4种添加水印节点默认无执行计数/实现标识", + "390 图像4种添加水印节点默认依据限制可见", + "390 图像4种添加水印节点 说明未定稿", + "390 图像4种添加水印节点 未验证实跑", + "390 图像4种添加水印节点 未检查", + "390 图像4种添加水印节点停用/时间戳空", + "390 图像4种添加水印节点参数全保留", + "390 图像4种添加水印节点默认无溢出", + "390 图像4种添加水印节点旧图归还焦点", + "390 birefnet_图像移除背景默认中文用途", + "390 birefnet_图像移除背景源审校默认折叠", + "390 birefnet_图像移除背景技术范围默认折叠", + "390 birefnet_图像移除背景默认无执行计数/实现标识", + "390 birefnet_图像移除背景默认依据限制可见", + "390 birefnet_图像移除背景 说明未定稿", + "390 birefnet_图像移除背景 未验证实跑", + "390 birefnet_图像移除背景 未检查", + "390 birefnet_图像移除背景停用/时间戳空", + "390 birefnet_图像移除背景参数全保留", + "390 birefnet_图像移除背景默认无溢出", + "390 birefnet_图像移除背景旧图归还焦点", + "390 加载本地latent解码默认中文用途", + "390 加载本地latent解码源审校默认折叠", + "390 加载本地latent解码技术范围默认折叠", + "390 加载本地latent解码默认无执行计数/实现标识", + "390 加载本地latent解码默认依据限制可见", + "390 加载本地latent解码 说明未定稿", + "390 加载本地latent解码 未验证实跑", + "390 加载本地latent解码 未检查", + "390 加载本地latent解码停用/时间戳空", + "390 加载本地latent解码参数全保留", + "390 加载本地latent解码默认无溢出", + "390 加载本地latent解码旧图归还焦点", + "390 截取视频每一帧默认中文用途", + "390 截取视频每一帧源审校默认折叠", + "390 截取视频每一帧技术范围默认折叠", + "390 截取视频每一帧默认无执行计数/实现标识", + "390 截取视频每一帧默认依据限制可见", + "390 截取视频每一帧 说明未定稿", + "390 截取视频每一帧 未验证实跑", + "390 截取视频每一帧 未检查", + "390 截取视频每一帧停用/时间戳空", + "390 截取视频每一帧参数全保留", + "390 截取视频每一帧默认无溢出", + "390 截取视频每一帧旧图归还焦点", + "390 双图像或视频合并显示默认中文用途", + "390 双图像或视频合并显示源审校默认折叠", + "390 双图像或视频合并显示技术范围默认折叠", + "390 双图像或视频合并显示默认无执行计数/实现标识", + "390 双图像或视频合并显示默认依据限制可见", + "390 双图像或视频合并显示 说明未定稿", + "390 双图像或视频合并显示 未验证实跑", + "390 双图像或视频合并显示 未检查", + "390 双图像或视频合并显示停用/时间戳空", + "390 双图像或视频合并显示参数全保留", + "390 双图像或视频合并显示默认无溢出", + "390 双图像或视频合并显示旧图归还焦点", + "390 视频转gif动图图片默认中文用途", + "390 视频转gif动图图片源审校默认折叠", + "390 视频转gif动图图片技术范围默认折叠", + "390 视频转gif动图图片默认无执行计数/实现标识", + "390 视频转gif动图图片默认依据限制可见", + "390 视频转gif动图图片 说明未定稿", + "390 视频转gif动图图片 未验证实跑", + "390 视频转gif动图图片 未检查", + "390 视频转gif动图图片停用/时间戳空", + "390 视频转gif动图图片参数全保留", + "390 视频转gif动图图片默认无溢出", + "390 视频转gif动图图片旧图归还焦点", + "390 加载图片合成视频默认中文用途", + "390 加载图片合成视频源审校默认折叠", + "390 加载图片合成视频技术范围默认折叠", + "390 加载图片合成视频默认无执行计数/实现标识", + "390 加载图片合成视频默认依据限制可见", + "390 加载图片合成视频 说明未定稿", + "390 加载图片合成视频 未验证实跑", + "390 加载图片合成视频 未检查", + "390 加载图片合成视频停用/时间戳空", + "390 加载图片合成视频参数全保留", + "390 加载图片合成视频默认无溢出", + "390 加载图片合成视频旧图归还焦点", + "390 视频倒放默认中文用途", + "390 视频倒放源审校默认折叠", + "390 视频倒放技术范围默认折叠", + "390 视频倒放默认无执行计数/实现标识", + "390 视频倒放默认依据限制可见", + "390 视频倒放 说明未定稿", + "390 视频倒放 未验证实跑", + "390 视频倒放 未检查", + "390 视频倒放停用/时间戳空", + "390 视频倒放参数全保留", + "390 视频倒放默认无溢出", + "390 视频倒放旧图归还焦点", + "390 NLF_视频人物动作骨架获取默认中文用途", + "390 NLF_视频人物动作骨架获取源审校默认折叠", + "390 NLF_视频人物动作骨架获取技术范围默认折叠", + "390 NLF_视频人物动作骨架获取默认无执行计数/实现标识", + "390 NLF_视频人物动作骨架获取默认依据限制可见", + "390 NLF_视频人物动作骨架获取 说明未定稿", + "390 NLF_视频人物动作骨架获取 未验证实跑", + "390 NLF_视频人物动作骨架获取 未检查", + "390 NLF_视频人物动作骨架获取停用/时间戳空", + "390 NLF_视频人物动作骨架获取参数全保留", + "390 NLF_视频人物动作骨架获取默认无溢出", + "390 NLF_视频人物动作骨架获取旧图归还焦点", + "390 openpose-video-姿态检测默认中文用途", + "390 openpose-video-姿态检测源审校默认折叠", + "390 openpose-video-姿态检测技术范围默认折叠", + "390 openpose-video-姿态检测默认无执行计数/实现标识", + "390 openpose-video-姿态检测默认依据限制可见", + "390 openpose-video-姿态检测 说明未定稿", + "390 openpose-video-姿态检测 未验证实跑", + "390 openpose-video-姿态检测 未检查", + "390 openpose-video-姿态检测停用/时间戳空", + "390 openpose-video-姿态检测参数全保留", + "390 openpose-video-姿态检测默认无溢出", + "390 openpose-video-姿态检测旧图归还焦点", + "390 sdpose_视频人物姿势骨架提取默认中文用途", + "390 sdpose_视频人物姿势骨架提取源审校默认折叠", + "390 sdpose_视频人物姿势骨架提取技术范围默认折叠", + "390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识", + "390 sdpose_视频人物姿势骨架提取默认依据限制可见", + "390 sdpose_视频人物姿势骨架提取 说明未定稿", + "390 sdpose_视频人物姿势骨架提取 未验证实跑", + "390 sdpose_视频人物姿势骨架提取 未检查", + "390 sdpose_视频人物姿势骨架提取停用/时间戳空", + "390 sdpose_视频人物姿势骨架提取参数全保留", + "390 sdpose_视频人物姿势骨架提取默认无溢出", + "390 sdpose_视频人物姿势骨架提取旧图归还焦点", + "390 gemma4_提示词反推(图像视频音频)默认中文用途", + "390 gemma4_提示词反推(图像视频音频)源审校默认折叠", + "390 gemma4_提示词反推(图像视频音频)技术范围默认折叠", + "390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识", + "390 gemma4_提示词反推(图像视频音频)默认依据限制可见", + "390 gemma4_提示词反推(图像视频音频) 说明未定稿", + "390 gemma4_提示词反推(图像视频音频) 未验证实跑", + "390 gemma4_提示词反推(图像视频音频) 未检查", + "390 gemma4_提示词反推(图像视频音频)停用/时间戳空", + "390 gemma4_提示词反推(图像视频音频)参数全保留", + "390 gemma4_提示词反推(图像视频音频)默认无溢出", + "390 gemma4_提示词反推(图像视频音频)旧图归还焦点", + "390 图像合并成四宫格默认中文用途", + "390 图像合并成四宫格源审校默认折叠", + "390 图像合并成四宫格技术范围默认折叠", + "390 图像合并成四宫格默认无执行计数/实现标识", + "390 图像合并成四宫格默认依据限制可见", + "390 图像合并成四宫格 说明未定稿", + "390 图像合并成四宫格 未验证实跑", + "390 图像合并成四宫格 未检查", + "390 图像合并成四宫格停用/时间戳空", + "390 图像合并成四宫格参数全保留", + "390 图像合并成四宫格默认无溢出", + "390 图像合并成四宫格旧图归还焦点", + "390 图像分割-多宫格分割默认中文用途", + "390 图像分割-多宫格分割源审校默认折叠", + "390 图像分割-多宫格分割技术范围默认折叠", + "390 图像分割-多宫格分割默认无执行计数/实现标识", + "390 图像分割-多宫格分割默认依据限制可见", + "390 图像分割-多宫格分割 说明未定稿", + "390 图像分割-多宫格分割 未验证实跑", + "390 图像分割-多宫格分割 未检查", + "390 图像分割-多宫格分割停用/时间戳空", + "390 图像分割-多宫格分割参数全保留", + "390 图像分割-多宫格分割默认无溢出", + "390 图像分割-多宫格分割旧图归还焦点", + "390 Qwen_image2.1_图像编辑_背景移除默认中文用途", + "390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠", + "390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠", + "390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识", + "390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见", + "390 Qwen_image2.1_图像编辑_背景移除 说明未定稿", + "390 Qwen_image2.1_图像编辑_背景移除 未验证实跑", + "390 Qwen_image2.1_图像编辑_背景移除 未检查", + "390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空", + "390 Qwen_image2.1_图像编辑_背景移除参数全保留", + "390 Qwen_image2.1_图像编辑_背景移除默认无溢出", + "390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点", + "390 Qwen_image2.1_图像编辑_提示词增强默认中文用途", + "390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠", + "390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠", + "390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识", + "390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见", + "390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿", + "390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑", + "390 Qwen_image2.1_图像编辑_提示词增强 未检查", + "390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空", + "390 Qwen_image2.1_图像编辑_提示词增强参数全保留", + "390 Qwen_image2.1_图像编辑_提示词增强默认无溢出", + "390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点", + "390 Qwen_image2.1_文生图_提示词增强默认中文用途", + "390 Qwen_image2.1_文生图_提示词增强源审校默认折叠", + "390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠", + "390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识", + "390 Qwen_image2.1_文生图_提示词增强默认依据限制可见", + "390 Qwen_image2.1_文生图_提示词增强 说明未定稿", + "390 Qwen_image2.1_文生图_提示词增强 未验证实跑", + "390 Qwen_image2.1_文生图_提示词增强 未检查", + "390 Qwen_image2.1_文生图_提示词增强停用/时间戳空", + "390 Qwen_image2.1_文生图_提示词增强参数全保留", + "390 Qwen_image2.1_文生图_提示词增强默认无溢出", + "390 Qwen_image2.1_文生图_提示词增强旧图归还焦点", + "390 ControlNet_aux_常用样例默认中文用途", + "390 ControlNet_aux_常用样例源审校默认折叠", + "390 ControlNet_aux_常用样例技术范围默认折叠", + "390 ControlNet_aux_常用样例默认无执行计数/实现标识", + "390 ControlNet_aux_常用样例默认依据限制可见", + "390 ControlNet_aux_常用样例 说明未定稿", + "390 ControlNet_aux_常用样例 未验证实跑", + "390 ControlNet_aux_常用样例 未检查", + "390 ControlNet_aux_常用样例停用/时间戳空", + "390 ControlNet_aux_常用样例参数全保留", + "390 ControlNet_aux_常用样例默认无溢出", + "390 ControlNet_aux_常用样例旧图归还焦点", + "390 Qwen3-ASR-语音转文字默认中文用途", + "390 Qwen3-ASR-语音转文字源审校默认折叠", + "390 Qwen3-ASR-语音转文字技术范围默认折叠", + "390 Qwen3-ASR-语音转文字默认无执行计数/实现标识", + "390 Qwen3-ASR-语音转文字默认依据限制可见", + "390 Qwen3-ASR-语音转文字 说明未定稿", + "390 Qwen3-ASR-语音转文字 未验证实跑", + "390 Qwen3-ASR-语音转文字 未检查", + "390 Qwen3-ASR-语音转文字停用/时间戳空", + "390 Qwen3-ASR-语音转文字参数全保留", + "390 Qwen3-ASR-语音转文字默认无溢出", + "390 Qwen3-ASR-语音转文字旧图归还焦点", + "390 Qwen3-ASR-Subtitle语音转字幕默认中文用途", + "390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠", + "390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠", + "390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识", + "390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见", + "390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿", + "390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑", + "390 Qwen3-ASR-Subtitle语音转字幕 未检查", + "390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空", + "390 Qwen3-ASR-Subtitle语音转字幕参数全保留", + "390 Qwen3-ASR-Subtitle语音转字幕默认无溢出", + "390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点", + "390 Minimax-H3提示词增强默认中文用途", + "390 Minimax-H3提示词增强源审校默认折叠", + "390 Minimax-H3提示词增强技术范围默认折叠", + "390 Minimax-H3提示词增强默认无执行计数/实现标识", + "390 Minimax-H3提示词增强默认依据限制可见", + "390 Minimax-H3提示词增强 说明未定稿", + "390 Minimax-H3提示词增强 未验证实跑", + "390 Minimax-H3提示词增强 未检查", + "390 Minimax-H3提示词增强停用/时间戳空", + "390 Minimax-H3提示词增强参数全保留", + "390 Minimax-H3提示词增强默认无溢出", + "390 Minimax-H3提示词增强旧图归还焦点", + "390 音频转MP3格式默认中文用途", + "390 音频转MP3格式源审校默认折叠", + "390 音频转MP3格式技术范围默认折叠", + "390 音频转MP3格式默认无执行计数/实现标识", + "390 音频转MP3格式默认依据限制可见", + "390 音频转MP3格式 说明未定稿", + "390 音频转MP3格式 未验证实跑", + "390 音频转MP3格式 未检查", + "390 音频转MP3格式停用/时间戳空", + "390 音频转MP3格式参数全保留", + "390 音频转MP3格式默认无溢出", + "390 音频转MP3格式旧图归还焦点", + "390 音频人声分离默认中文用途", + "390 音频人声分离源审校默认折叠", + "390 音频人声分离技术范围默认折叠", + "390 音频人声分离默认无执行计数/实现标识", + "390 音频人声分离默认依据限制可见", + "390 音频人声分离 说明未定稿", + "390 音频人声分离 未验证实跑", + "390 音频人声分离 未检查", + "390 音频人声分离停用/时间戳空", + "390 音频人声分离参数全保留", + "390 音频人声分离默认无溢出", + "390 音频人声分离旧图归还焦点", + "390 视频-音频分离默认中文用途", + "390 视频-音频分离源审校默认折叠", + "390 视频-音频分离技术范围默认折叠", + "390 视频-音频分离默认无执行计数/实现标识", + "390 视频-音频分离默认依据限制可见", + "390 视频-音频分离 说明未定稿", + "390 视频-音频分离 未验证实跑", + "390 视频-音频分离 未检查", + "390 视频-音频分离停用/时间戳空", + "390 视频-音频分离参数全保留", + "390 视频-音频分离默认无溢出", + "390 视频-音频分离旧图归还焦点", + "390 图像嵌入文字描述默认中文用途", + "390 图像嵌入文字描述源审校默认折叠", + "390 图像嵌入文字描述技术范围默认折叠", + "390 图像嵌入文字描述默认无执行计数/实现标识", + "390 图像嵌入文字描述默认依据限制可见", + "390 图像嵌入文字描述 说明未定稿", + "390 图像嵌入文字描述 未验证实跑", + "390 图像嵌入文字描述 未检查", + "390 图像嵌入文字描述停用/时间戳空", + "390 图像嵌入文字描述参数全保留", + "390 图像嵌入文字描述默认无溢出", + "390 图像嵌入文字描述旧图归还焦点", + "旧/空说明回退 旧工作流回退(隔离测试夹具)", + "旧/空说明回退 空说明回退(隔离测试夹具)", + "缺摘要自然中文回退", + "回退不暴露undefined", + "错绑定提示明确且不展示旧字段", + "回退不暴露undefined", + "摘要HTML仅纯文本不创建图像或请求", + "回退不暴露undefined", + "迟到放大比较响应不覆盖旧VOSR2图片摘要/46字段", + "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/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/31" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/29" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/28" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/27" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/26" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/4" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/16" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/10" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/23" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/8" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/22" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/5" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/19" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/13" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/12" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/64" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/62" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/70" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/1" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/35" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/2" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/25" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/24" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/21" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/14" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/settings" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/31" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/29" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/28" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/27" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/26" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/4" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/16" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/10" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/23" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/8" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/22" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/5" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/19" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/13" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/12" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/64" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/62" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/70" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/1" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/35" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/2" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/25" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/24" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/21" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/14" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/31" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/29" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/28" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/27" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/26" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/4" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/16" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/10" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/23" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/8" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/22" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/5" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/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/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/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/31" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/33" + } + ], + "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/resize-compare-document-evidence/build-final.txt b/docs/hel-892/resize-compare-document-evidence/build-final.txt new file mode 100644 index 00000000..5d5d6a7a --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/build-final.txt @@ -0,0 +1,3 @@ +PASS uv build --project calliope-backend --offline +Built source distribution and wheel using existing locked build tools. +Byte verification of shipped fixed_document.py, source_reviews.json and library.py: package-check.json diff --git a/docs/hel-892/resize-compare-document-evidence/build_definition.py b/docs/hel-892/resize-compare-document-evidence/build_definition.py new file mode 100644 index 00000000..aef28deb --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/build_definition.py @@ -0,0 +1,662 @@ +"""One source-bound interpolation comparison document; no execution contract.""" + +from __future__ import annotations + +import hashlib +import json +from pathlib import Path + +REPO = Path(__file__).resolve().parents[3] +OUT = Path(__file__).resolve().parent +REF = OUT.parent / "resize-compare-reference" +PATHS = [ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json" +] + + +def canonical(v): + return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode() + + +def build(index=0): + raw = (REPO / PATHS[index]).read_bytes() + g = json.loads(raw) + entries = json.loads((REF / "sources.json").read_bytes())["sources"] + refs = [] + + def ref(key, file, first, last, claim): + e = next(e for e in entries if e["id"] == key and e["file"] == file) + refs.append( + { + **e, + "local_file": "../resize-compare-reference/" + e["local_file"], + "lines": [first, last], + "claim": claim, + } + ) + return len(refs) - 1 + + image = ref( + "load", + "nodes.py", + 1626, + 1700, + "准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得", + ) + ref("load", "nodes.py", 1957, 1959, "准确core0.3.50 LoadImage注册") + scale = ref( + "core", + "nodes.py", + 1778, + 1806, + "准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用", + ) + preview = ref( + "core", + "nodes.py", + 1561, + 1628, + "PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符", + ) + ref("core", "nodes.py", 1957, 1967, "准确核心节点注册") + maximum = ref( + "core", "nodes.py", 52, 52, "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本" + ) + util = ref( + "core", + "comfy/utils.py", + 858, + 900, + "lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体", + ) + kj = ref( + "kj", + "nodes/image_nodes.py", + 2376, + 2502, + "KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留", + ) + ref("kj", "nodes/image_nodes.py", 21, 21, "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知") + ref("kj", "__init__.py", 75, 85, "准确KJ ImageResizeKJv2注册") + restore = ref( + "layer", + "py/image_scale_restore_v2.py", + 7, + 132, + "准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回", + ) + aspect = ref( + "layer", + "py/image_scale_by_aspect_ratio_v2.py", + 8, + 186, + "准确AspectRatio schema、original/custom、None长度不采用、对齐及返回", + ) + fit = ref("layer", "py/imagefunc.py", 591, 618, "letterbox居中填色、crop居中裁剪、fill直接伸缩") + rounding = ref("layer", "py/imagefunc.py", 1967, 1973, "向上取整到倍数;不同于KJ向下取整") + ref("layer", "__init__.py", 29, 48, "LayerStyle包逐模块合并注册,未执行") + impact = ref( + "impact", + "modules/impact/logics.py", + 239, + 255, + "准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回", + ) + ref("impact", "__init__.py", 48, 48, "ImpactPack logics导入") + ref("impact", "__init__.py", 259, 259, "ImpactInt注册") + display = ref( + "rgthree", + "py/display_any.py", + 6, + 50, + "准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数", + ) + displayjs = ref( + "rgthree", + "web/comfyui/display_any.js", + 1, + 35, + "只读output控件;serializeValue返回空字符串/onExecuted更新", + ) + ref("rgthree", "py/constants.py", 2, 5, "Display Any (rgthree)准确命名") + ref("rgthree", "__init__.py", 47, 54, "DisplayAny准确注册") + front = ref( + "frontend", + "src/lib/litegraph/src/LGraphNode.ts", + 917, + 925, + "仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本", + ) + ref( + "frontend", + "src/lib/litegraph/src/LGraphNode.ts", + 972, + 984, + "仅参考假设位置序列化;不证明目标实际恢复", + ) + upload = ref( + "frontend", + "src/extensions/core/uploadImage.ts", + 10, + 40, + "仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数", + ) + ref("frontend", "src/scripts/widgets.ts", 305, 308, "仅参考假设IMAGEUPLOAD控件构造入口") + uploadfile = next(e["file"] for e in entries if e["file"].endswith("useImageUploadWidget.ts")) + ref( + "frontend", + uploadfile, + 1, + len( + (REF / next(e["local_file"] for e in entries if e["file"] == uploadfile)) + .read_text() + .splitlines() + ), + "仅参考假设上传控件行为;源保存image原样保留,未上传", + ) + for key in ["load", "core", "kj", "layer", "impact", "rgthree", "frontend"]: + e = next(e for e in entries if e["id"] == key and "LICENSE" in e["file"]) + ref( + key, + e["file"], + 1, + len((REF / e["local_file"]).read_text().splitlines()), + "准确来源许可文本;发布包Git绑定未知,前端仅显式假设", + ) + + # Entries describe concrete source positions; no named values are fabricated. + specifications = { + 1: [ + ( + "image", + "输入图片文件名", + "未显式指定默认;输入目录图片排序枚举", + "文件名", + "依赖准确运行目录和素材;不存在或校验失败不能加载", + "选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。", + image, + ), + ( + "upload", + "上传控件保存占位", + "后端无upload参数;参考前端自动补控件", + "前端状态", + "保存字符串image;准确宿主前端及扩展恢复未知", + "保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。", + upload, + ), + ], + 4: [ + ( + "upscale_method", + "核心重采样方法", + "未显式默认;首选项nearest-exact", + "枚举", + "nearest-exact/bilinear/area/bicubic/lanczos", + "核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。", + scale, + ), + ( + "width", + "核心分支宽度缓存", + "512", + "像素", + "INT 0~16384,step1;0按另一轴推算;两轴0直接返回", + "缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。", + scale, + ), + ( + "height", + "核心分支高度缓存", + "512", + "像素", + "INT 0~16384,step1;0按另一轴推算", + "缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。", + scale, + ), + ( + "crop", + "核心裁剪开关", + "未显式默认;首选项disabled", + "枚举", + "disabled/center", + "当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。", + scale, + ), + ], + 11: [ + ( + "value", + "共同宽度整数", + "0", + "整数;接宽度时为像素", + "INT 0~sys.maxsize,step1;资源上限另受下游约束", + "保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。", + impact, + ) + ], + 12: [ + ( + "value", + "高度及长度整数", + "0", + "整数;长度输入为像素", + "INT 0~sys.maxsize,step1;不是内存或图像尺寸保证", + ( + "保存720;边10接2.height、11接4.height、12接5.scale_by_len" + "gth、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。" + ), + impact, + ) + ], + 2: [ + ( + "width", + "KJ宽度缓存", + "512", + "像素", + "INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384", + "缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。", + kj, + ), + ( + "height", + "KJ高度缓存", + "512", + "像素", + "INT 0~宿主MAX_RESOLUTION,step1", + "缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。", + kj, + ), + ( + "upscale_method", + "KJ重采样方法", + "未显式默认;首选项nearest-exact", + "枚举", + "nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos", + "保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。", + kj, + ), + ( + "keep_proportion", + "KJ比例处理", + "源码显式False(与枚举类型不一致);不改写为stretch", + "枚举", + "stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开", + "当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。", + kj, + ), + ( + "pad_color", + "KJ填充颜色", + "0, 0, 0", + "RGB文本", + "STRING;仅pad/pad_edge路径调用填边", + "保存黑色0, 0, 0,当前stretch不采用该颜色。", + kj, + ), + ( + "crop_position", + "KJ裁剪位置", + "center", + "枚举", + "center/top/bottom/left/right;仅crop分支", + "保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。", + kj, + ), + ( + "divisible_by", + "KJ尺寸倍数", + "2", + "像素倍数", + "INT 0~512,step1;>1向下取整,0/1不对齐", + "保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。", + kj, + ), + ( + "device", + "KJ处理设备", + "schema未显式;首项cpu,函数默认cpu", + "设备枚举", + "cpu/gpu;gpu+lanczos主动抛错", + "保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。", + kj, + ), + ], + 5: [ + ( + "scale", + "恢复分支倍率", + "1", + "倍数", + "FLOAT 0.01~100,step0.01;源JSON为int1", + "当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。", + restore, + ), + ( + "method", + "恢复分支重采样", + "未显式默认;首项lanczos", + "枚举", + "lanczos/bicubic/hamming/bilinear/box/nearest", + "保存lanczos,经PIL RGB resize;是否改善观感未知。", + restore, + ), + ( + "scale_by", + "恢复分支尺寸方式", + "未显式默认;首项by_scale", + "枚举", + "by_scale/longest/shortest/width/height/total_pixel(kilo pixel)", + "当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。", + restore, + ), + ( + "scale_by_length", + "恢复分支长度缓存", + "1024", + "像素;total_pixel模式为千像素", + "INT 4~99999999,step1;仅长度/面积分支采用", + "缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。", + restore, + ), + ], + 7: [ + ( + "aspect_ratio", + "比例分支目标比例", + "未显式默认;首项original", + "枚举", + "original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16", + "保存original从输入宽高取比例;不是custom的1:1。", + aspect, + ), + ( + "proportional_width", + "自定比例宽", + "1", + "比例份数", + "INT 1~1e8,step1;仅custom读取", + "保存1,当前original不使用该值计算目标比例。", + aspect, + ), + ( + "proportional_height", + "自定比例高", + "1", + "比例份数", + "INT 1~1e8,step1;仅custom读取", + "保存1,当前original不使用该值,不据两项1声称方图。", + aspect, + ), + ( + "fit", + "比例分支适配方式", + "未显式默认;首项letterbox", + "枚举", + "letterbox/crop/fill", + "letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。", + fit, + ), + ( + "method", + "比例分支重采样", + "未显式默认;首项lanczos", + "枚举", + "lanczos/bicubic/hamming/bilinear/box/nearest", + "保存lanczos,供适配图片的PIL resize使用,不保证画质。", + aspect, + ), + ( + "round_to_multiple", + "比例分支倍数对齐", + "未显式默认;首项字符串8", + "像素倍数枚举", + "8/16/32/64/128/256/512/None,全部字符串", + "源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。", + rounding, + ), + ( + "scale_to_side", + "比例分支缩放基准", + "未显式默认;首项字符串None", + "枚举", + "None/longest/shortest/width/height/total_pixel(kilo pixel)", + "当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。", + aspect, + ), + ( + "scale_to_length", + "比例分支长度缓存", + "1024", + "像素;total_pixel模式为千像素", + "INT 4~1e8,step1;按scale_to_side分支读取", + "缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。", + aspect, + ), + ( + "background_color", + "比例分支背景色", + "#000000", + "颜色字符串", + "STRING;letterbox用PIL颜色创建背景", + "保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。", + fit, + ), + ], + } + dims = { + 13: ("2", "width"), + 14: ("2", "height"), + 15: ("5", "width"), + 16: ("5", "height"), + 17: ("7", "width"), + 18: ("7", "height"), + } + fields = [] + zero = [] + for i, n in enumerate(g["nodes"]): + if n["type"] == "PreviewImage": + assert n["widgets_values"] == [] + zero.append( + dict( + node_id=str(n["id"]), + class_type=n["type"], + pointer=f"/nodes/{i}/widgets_values", + effect=( + "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回" + "ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。" + ), + evidence=[preview], + ) + ) + continue + specs = specifications.get(n["id"]) + if n["id"] in dims: + src, dim = dims[n["id"]] + specs = [ + ( + "output", + "显示" + ("宽度" if dim == "width" else "高度") + "文本", + "前端创建STRING输出框;没有后端output输入", + "显示文本", + "只读前端STRING,序列化返回空字符串;不是实际宽高", + "节点" + + str(n["id"]) + + "接" + + src + + "." + + dim + + ",当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + displayjs, + ) + ] + assert len(specs) == len(n["widgets_values"]) + for k, (name, label, default, unit, limits, effect, ev) in enumerate(specs): + ptr = f"/nodes/{i}/widgets_values/{k}" + inp = next( + (j for j, x in enumerate(n["inputs"]) if x.get("widget", {}).get("name") == name), + None, + ) + v = n["widgets_values"][k] + field_type = n["inputs"][inp]["type"] if inp is not None else "前端STRING" + link = n["inputs"][inp]["link"] if inp is not None else None + fields.append( + dict( + node_id=str(n["id"]), + scope="root", + class_type=n["type"], + field=name, + label=label, + pointer=ptr, + input_pointer=f"/nodes/{i}/inputs/{inp}" if inp is not None else ptr, + value=v, + json_type=type(v).__name__, + type=field_type, + role="frontend_control" + if name in ["upload", "output"] + else "linked_cache" + if link is not None + else "scalar", + schema_default=default, + unit=unit, + limits=limits, + effect=effect, + execution_note=f"节点{n['id']}保存mode0;源无具名保存表,不制造具名保存值。" + + ( + f"源输入边{link}覆盖该缓存;" + if link is not None + else "该控件无源输入边覆盖;" + ) + + "前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + evidence=list( + dict.fromkeys( + [ev, front] + + ([display] if name == "output" else []) + + ([util, maximum] if n["id"] in [2, 4] else []) + + ([aspect] if n["id"] == 7 else []) + ) + ), + ) + ) + assert len(fields) == 35 and len(zero) == 4 + overview = ( + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块" + ",也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度" + "。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。" + ) + flow = [ + overview, + "17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。", + ( + "四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImag" + "e;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRe" + "storeV2→9.PreviewImage;1→7.ImageScaleByAspectRat" + "ioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。" + ), + ( + "11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存7" + "20,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale" + "_by_length/7.scale_to_length。缓存仍保留,不构造prompt。" + ), + ( + "5保存scale为JSON int1但schema为FLOAT;original_size未接," + "scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有long" + "est/shortest/width/height/total_pixel分支才采用长度,ori" + "ginal_size若有值则优先。" + ), + ( + "7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符" + "串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底" + ",不保证与原图逐像素一致。" + ), + ( + "2当前stretch/lanczos/cpu,width480、height720经过divis" + "ible_by16向下对齐;pad_color与crop_position在当前stretch不" + "参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+l" + "anczos抛错仅静态条件。" + ), + ( + "源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只" + "有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未" + "知,转换关闭。" + ), + ( + "4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分" + "别13/14显示2.width/height,15/16显示5.width/height,17/" + "18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据" + "。" + ), + ( + "未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输" + "入、mask及original_size出口;7.mask输入、mask及original_si" + "ze出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。" + ), + ( + "准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp" + " PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本" + ",实际素材存在/尺寸/设备/内存/像素及效果均未知。" + ), + ( + "身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明" + "0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgt" + "hree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只" + "有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设," + "不称宿主版本。" + ), + ( + "UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实" + "际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得" + "inputs.widget.name指针,未制造具名保存值。" + ), + ( + "旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考" + "。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case0" + "6排除。" + ), + *["原边 root " + json.dumps(e, ensure_ascii=False) for e in g["links"]], + ] + versions = [ + e["id"] + "→" + e["commit"] for e in json.loads((REF / "identities.json").read_bytes()) + ] + for key in ["impact", "rgthree", "frontend"]: + e = next(e for e in entries if e["id"] == key) + versions.append( + key + + "→" + + e["commit"] + + (";Git绑定未知" if key != "frontend" else ";仅参考假设1.45.20,源前端未知") + ) + return dict( + source_path=PATHS[index], + source_sha1=hashlib.sha1(raw).hexdigest(), + source_sha256=hashlib.sha256(raw).hexdigest(), + canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(), + notice="仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。", + user_overview=overview, + versions=versions, + counts=dict( + saved_fields=35, + source_nodes=17, + physical_edges=20, + source_notes=0, + history_objects=0, + linked_saved_fields=6, + frontend_only=7, + final_scalars=0, + final_prompt_constructed=False, + ), + fields=fields, + sources=refs, + comments=[], + flow=flow, + flow_evidence=list(range(len(refs))), + zero_saved_nodes=zero, + boundaries=[], + steps=[ + overview, + "操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。", + "操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。", + "操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。", + ], + ) diff --git a/docs/hel-892/resize-compare-document-evidence/check-code-final.txt b/docs/hel-892/resize-compare-document-evidence/check-code-final.txt new file mode 100644 index 00000000..562ec2f1 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/check-code-final.txt @@ -0,0 +1,3 @@ +All checks passed! +14 files already formatted +PASS 14 authored Python files and one JS syntax check diff --git a/docs/hel-892/resize-compare-document-evidence/check-code-initial.txt b/docs/hel-892/resize-compare-document-evidence/check-code-initial.txt new file mode 100644 index 00000000..8e98b692 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/check-code-initial.txt @@ -0,0 +1,77 @@ +E501 Line too long (151 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:462:81 + | +460 | … +461 | … +462 | …re0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +463 | … +464 | … + | + +E501 Line too long (263 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:536:59 + | +534 | … +535 | … +536 | … 分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。" + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +537 | … +538 | … + | + +E501 Line too long (219 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:542:84 + | +540 | …;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。", +541 | …t/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。", +542 | … 率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +543 | … 度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。", +544 | …rop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。", + | + +E501 Line too long (190 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:548:86 + | +546 | …显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。", +547 | … original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。", +548 | …s文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +549 | …与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVer… +550 | … 恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。", + | + +E501 Line too long (108 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:27:101 + | +25 | **e, +26 | "local_file": "../seedvr2-reference/" + e["local_file"], +27 | "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + | ^^^^^^^^ +28 | } +29 | ) + | + +E501 Line too long (101 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:49:101 + | +47 | sha256=hashlib.sha256(b).hexdigest(), +48 | git_blob_sha1=blob, +49 | identity_binding="reference hypothesis v1.45.20 only; source frontendVersion absent", + | ^ +50 | ) +51 | ) + | + +E501 Line too long (102 > 100) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:66:101 + | +64 | ) +65 | print( +66 | "PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory" + | ^^ +67 | ) + | + +Found 7 errors. diff --git a/docs/hel-892/resize-compare-document-evidence/check_code.py b/docs/hel-892/resize-compare-document-evidence/check_code.py new file mode 100644 index 00000000..179c2cf9 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/check_code.py @@ -0,0 +1,40 @@ +"Check changed authored Python only; upstream originals remain byte-for-byte." + +import json +import subprocess +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[3] +OUT = Path(__file__).resolve().parent +FILES = [ + "calliope-backend/src/calliope/comfyui/fixed_document.py", + "calliope-backend/tests/test_resize_compare_fixed_document.py", + "e2e/run-resize-compare-document.py", +] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))] + + +def main(): + for command in [["check"], ["format", "--check"]]: + subprocess.run( + [ + "uv", + "run", + "--project", + "calliope-backend", + "--offline", + "ruff", + *command, + "--config", + "calliope-backend/pyproject.toml", + *FILES, + ], + cwd=ROOT, + check=True, + ) + subprocess.run(["node", "--check", "e2e/resize-compare-document.mjs"], cwd=ROOT, check=True) + (OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n") + print("PASS", len(FILES), "authored Python files and one JS syntax check") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/definition-0.json b/docs/hel-892/resize-compare-document-evidence/definition-0.json new file mode 100644 index 00000000..96aa6414 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/definition-0.json @@ -0,0 +1,1444 @@ +{ + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "source_sha1": "b16eb7cea17ce125be95637c2309c941870cd25b", + "source_sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4", + "canonical_sha256": "bb8e2be66e72bf1ffb37837ce13dfc18b9c66182dc8ea1d2593c1f925a486061", + "notice": "仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。", + "user_overview": "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "versions": [ + "load→d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "core→51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "kj→f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "layer→89014d833d2ad0998d724090eff1456692692a1d", + "impact→发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;Git绑定未知", + "rgthree→发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;Git绑定未知", + "frontend→7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;仅参考假设1.45.20,源前端未知" + ], + "counts": { + "saved_fields": 35, + "source_nodes": 17, + "physical_edges": 20, + "source_notes": 0, + "history_objects": 0, + "linked_saved_fields": 6, + "frontend_only": 7, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "node_id": "1", + "scope": "root", + "class_type": "LoadImage", + "field": "image", + "label": "输入图片文件名", + "pointer": "/nodes/0/widgets_values/0", + "input_pointer": "/nodes/0/inputs/0", + "value": "360截图20251018220547863.jpg", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式指定默认;输入目录图片排序枚举", + "unit": "文件名", + "limits": "依赖准确运行目录和素材;不存在或校验失败不能加载", + "effect": "选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。", + "execution_note": "节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 0, + 22 + ] + }, + { + "node_id": "1", + "scope": "root", + "class_type": "LoadImage", + "field": "upload", + "label": "上传控件保存占位", + "pointer": "/nodes/0/widgets_values/1", + "input_pointer": "/nodes/0/inputs/1", + "value": "image", + "json_type": "str", + "type": "IMAGEUPLOAD", + "role": "frontend_control", + "schema_default": "后端无upload参数;参考前端自动补控件", + "unit": "前端状态", + "limits": "保存字符串image;准确宿主前端及扩展恢复未知", + "effect": "保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。", + "execution_note": "节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 24, + 22 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "upscale_method", + "label": "核心重采样方法", + "pointer": "/nodes/1/widgets_values/0", + "input_pointer": "/nodes/1/inputs/1", + "value": "nearest-exact", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首选项nearest-exact", + "unit": "枚举", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "effect": "核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "width", + "label": "核心分支宽度缓存", + "pointer": "/nodes/1/widgets_values/1", + "input_pointer": "/nodes/1/inputs/2", + "value": 480, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~16384,step1;0按另一轴推算;两轴0直接返回", + "effect": "缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边14覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "height", + "label": "核心分支高度缓存", + "pointer": "/nodes/1/widgets_values/2", + "input_pointer": "/nodes/1/inputs/3", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~16384,step1;0按另一轴推算", + "effect": "缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边11覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "4", + "scope": "root", + "class_type": "ImageScale", + "field": "crop", + "label": "核心裁剪开关", + "pointer": "/nodes/1/widgets_values/3", + "input_pointer": "/nodes/1/inputs/4", + "value": "disabled", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首选项disabled", + "unit": "枚举", + "limits": "disabled/center", + "effect": "当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。", + "execution_note": "节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 2, + 22, + 6, + 5 + ] + }, + { + "node_id": "12", + "scope": "root", + "class_type": "ImpactInt", + "field": "value", + "label": "高度及长度整数", + "pointer": "/nodes/2/widgets_values/0", + "input_pointer": "/nodes/2/inputs/0", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "0", + "unit": "整数;长度输入为像素", + "limits": "INT 0~sys.maxsize,step1;不是内存或图像尺寸保证", + "effect": "保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。", + "execution_note": "节点12保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 15, + 22 + ] + }, + { + "node_id": "11", + "scope": "root", + "class_type": "ImpactInt", + "field": "value", + "label": "共同宽度整数", + "pointer": "/nodes/3/widgets_values/0", + "input_pointer": "/nodes/3/inputs/0", + "value": 480, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "0", + "unit": "整数;接宽度时为像素", + "limits": "INT 0~sys.maxsize,step1;资源上限另受下游约束", + "effect": "保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。", + "execution_note": "节点11保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 15, + 22 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "width", + "label": "KJ宽度缓存", + "pointer": "/nodes/4/widgets_values/0", + "input_pointer": "/nodes/4/inputs/2", + "value": 480, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384", + "effect": "缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边9覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "height", + "label": "KJ高度缓存", + "pointer": "/nodes/4/widgets_values/1", + "input_pointer": "/nodes/4/inputs/3", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "512", + "unit": "像素", + "limits": "INT 0~宿主MAX_RESOLUTION,step1", + "effect": "缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边10覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "upscale_method", + "label": "KJ重采样方法", + "pointer": "/nodes/4/widgets_values/2", + "input_pointer": "/nodes/4/inputs/4", + "value": "lanczos", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首选项nearest-exact", + "unit": "枚举", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos", + "effect": "保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "keep_proportion", + "label": "KJ比例处理", + "pointer": "/nodes/4/widgets_values/3", + "input_pointer": "/nodes/4/inputs/5", + "value": "stretch", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "源码显式False(与枚举类型不一致);不改写为stretch", + "unit": "枚举", + "limits": "stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开", + "effect": "当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "pad_color", + "label": "KJ填充颜色", + "pointer": "/nodes/4/widgets_values/4", + "input_pointer": "/nodes/4/inputs/6", + "value": "0, 0, 0", + "json_type": "str", + "type": "STRING", + "role": "scalar", + "schema_default": "0, 0, 0", + "unit": "RGB文本", + "limits": "STRING;仅pad/pad_edge路径调用填边", + "effect": "保存黑色0, 0, 0,当前stretch不采用该颜色。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "crop_position", + "label": "KJ裁剪位置", + "pointer": "/nodes/4/widgets_values/5", + "input_pointer": "/nodes/4/inputs/7", + "value": "center", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "center", + "unit": "枚举", + "limits": "center/top/bottom/left/right;仅crop分支", + "effect": "保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "divisible_by", + "label": "KJ尺寸倍数", + "pointer": "/nodes/4/widgets_values/6", + "input_pointer": "/nodes/4/inputs/8", + "value": 16, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "2", + "unit": "像素倍数", + "limits": "INT 0~512,step1;>1向下取整,0/1不对齐", + "effect": "保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "2", + "scope": "root", + "class_type": "ImageResizeKJv2", + "field": "device", + "label": "KJ处理设备", + "pointer": "/nodes/4/widgets_values/7", + "input_pointer": "/nodes/4/inputs/9", + "value": "cpu", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "schema未显式;首项cpu,函数默认cpu", + "unit": "设备枚举", + "limits": "cpu/gpu;gpu+lanczos主动抛错", + "effect": "保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。", + "execution_note": "节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 7, + 22, + 6, + 5 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "scale", + "label": "恢复分支倍率", + "pointer": "/nodes/5/widgets_values/0", + "input_pointer": "/nodes/5/inputs/3", + "value": 1, + "json_type": "int", + "type": "FLOAT", + "role": "scalar", + "schema_default": "1", + "unit": "倍数", + "limits": "FLOAT 0.01~100,step0.01;源JSON为int1", + "effect": "当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "method", + "label": "恢复分支重采样", + "pointer": "/nodes/5/widgets_values/1", + "input_pointer": "/nodes/5/inputs/4", + "value": "lanczos", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项lanczos", + "unit": "枚举", + "limits": "lanczos/bicubic/hamming/bilinear/box/nearest", + "effect": "保存lanczos,经PIL RGB resize;是否改善观感未知。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "scale_by", + "label": "恢复分支尺寸方式", + "pointer": "/nodes/5/widgets_values/2", + "input_pointer": "/nodes/5/inputs/5", + "value": "by_scale", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项by_scale", + "unit": "枚举", + "limits": "by_scale/longest/shortest/width/height/total_pixel(kilo pixel)", + "effect": "当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "5", + "scope": "root", + "class_type": "LayerUtility: ImageScaleRestore V2", + "field": "scale_by_length", + "label": "恢复分支长度缓存", + "pointer": "/nodes/5/widgets_values/3", + "input_pointer": "/nodes/5/inputs/6", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "1024", + "unit": "像素;total_pixel模式为千像素", + "limits": "INT 4~99999999,step1;仅长度/面积分支采用", + "effect": "缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。", + "execution_note": "节点5保存mode0;源无具名保存表,不制造具名保存值。源输入边12覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 10, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "aspect_ratio", + "label": "比例分支目标比例", + "pointer": "/nodes/6/widgets_values/0", + "input_pointer": "/nodes/6/inputs/2", + "value": "original", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项original", + "unit": "枚举", + "limits": "original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16", + "effect": "保存original从输入宽高取比例;不是custom的1:1。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "proportional_width", + "label": "自定比例宽", + "pointer": "/nodes/6/widgets_values/1", + "input_pointer": "/nodes/6/inputs/3", + "value": 1, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "1", + "unit": "比例份数", + "limits": "INT 1~1e8,step1;仅custom读取", + "effect": "保存1,当前original不使用该值计算目标比例。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "proportional_height", + "label": "自定比例高", + "pointer": "/nodes/6/widgets_values/2", + "input_pointer": "/nodes/6/inputs/4", + "value": 1, + "json_type": "int", + "type": "INT", + "role": "scalar", + "schema_default": "1", + "unit": "比例份数", + "limits": "INT 1~1e8,step1;仅custom读取", + "effect": "保存1,当前original不使用该值,不据两项1声称方图。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "fit", + "label": "比例分支适配方式", + "pointer": "/nodes/6/widgets_values/3", + "input_pointer": "/nodes/6/inputs/5", + "value": "letterbox", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项letterbox", + "unit": "枚举", + "limits": "letterbox/crop/fill", + "effect": "letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 12, + 22, + 11 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "method", + "label": "比例分支重采样", + "pointer": "/nodes/6/widgets_values/4", + "input_pointer": "/nodes/6/inputs/6", + "value": "lanczos", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项lanczos", + "unit": "枚举", + "limits": "lanczos/bicubic/hamming/bilinear/box/nearest", + "effect": "保存lanczos,供适配图片的PIL resize使用,不保证画质。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "round_to_multiple", + "label": "比例分支倍数对齐", + "pointer": "/nodes/6/widgets_values/5", + "input_pointer": "/nodes/6/inputs/7", + "value": "8", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项字符串8", + "unit": "像素倍数枚举", + "limits": "8/16/32/64/128/256/512/None,全部字符串", + "effect": "源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 13, + 22, + 11 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "scale_to_side", + "label": "比例分支缩放基准", + "pointer": "/nodes/6/widgets_values/6", + "input_pointer": "/nodes/6/inputs/8", + "value": "None", + "json_type": "str", + "type": "COMBO", + "role": "scalar", + "schema_default": "未显式默认;首项字符串None", + "unit": "枚举", + "limits": "None/longest/shortest/width/height/total_pixel(kilo pixel)", + "effect": "当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "scale_to_length", + "label": "比例分支长度缓存", + "pointer": "/nodes/6/widgets_values/7", + "input_pointer": "/nodes/6/inputs/9", + "value": 720, + "json_type": "int", + "type": "INT", + "role": "linked_cache", + "schema_default": "1024", + "unit": "像素;total_pixel模式为千像素", + "limits": "INT 4~1e8,step1;按scale_to_side分支读取", + "effect": "缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。源输入边13覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 11, + 22 + ] + }, + { + "node_id": "7", + "scope": "root", + "class_type": "LayerUtility: ImageScaleByAspectRatio V2", + "field": "background_color", + "label": "比例分支背景色", + "pointer": "/nodes/6/widgets_values/8", + "input_pointer": "/nodes/6/inputs/10", + "value": "#000000", + "json_type": "str", + "type": "STRING", + "role": "scalar", + "schema_default": "#000000", + "unit": "颜色字符串", + "limits": "STRING;letterbox用PIL颜色创建背景", + "effect": "保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。", + "execution_note": "节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 12, + 22, + 11 + ] + }, + { + "node_id": "17", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示宽度文本", + "pointer": "/nodes/7/widgets_values/0", + "input_pointer": "/nodes/7/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点17接7.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点17保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "13", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示宽度文本", + "pointer": "/nodes/8/widgets_values/0", + "input_pointer": "/nodes/8/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点13接2.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点13保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "18", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示高度文本", + "pointer": "/nodes/9/widgets_values/0", + "input_pointer": "/nodes/9/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点18接7.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点18保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "15", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示宽度文本", + "pointer": "/nodes/10/widgets_values/0", + "input_pointer": "/nodes/10/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点15接5.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点15保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "16", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示高度文本", + "pointer": "/nodes/11/widgets_values/0", + "input_pointer": "/nodes/11/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点16接5.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点16保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + }, + { + "node_id": "14", + "scope": "root", + "class_type": "Display Any (rgthree)", + "field": "output", + "label": "显示高度文本", + "pointer": "/nodes/12/widgets_values/0", + "input_pointer": "/nodes/12/widgets_values/0", + "value": "", + "json_type": "str", + "type": "前端STRING", + "role": "frontend_control", + "schema_default": "前端创建STRING输出框;没有后端output输入", + "unit": "显示文本", + "limits": "只读前端STRING,序列化返回空字符串;不是实际宽高", + "effect": "节点14接2.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。", + "execution_note": "节点14保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。", + "evidence": [ + 19, + 22, + 18 + ] + } + ], + "sources": [ + { + "id": "load", + "file": "nodes.py", + "local_file": "../resize-compare-reference/load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "lines": [ + 1626, + 1700 + ], + "claim": "准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得" + }, + { + "id": "load", + "file": "nodes.py", + "local_file": "../resize-compare-reference/load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "lines": [ + 1957, + 1959 + ], + "claim": "准确core0.3.50 LoadImage注册" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1778, + 1806 + ], + "claim": "准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1561, + 1628 + ], + "claim": "PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1957, + 1967 + ], + "claim": "准确核心节点注册" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 52, + 52 + ], + "claim": "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本" + }, + { + "id": "core", + "file": "comfy/utils.py", + "local_file": "../resize-compare-reference/core__comfy__utils.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509", + "git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d", + "lines": [ + 858, + 900 + ], + "claim": "lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "lines": [ + 2376, + 2502 + ], + "claim": "KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "lines": [ + 21, + 21 + ], + "claim": "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "../resize-compare-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a", + "git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35", + "lines": [ + 75, + 85 + ], + "claim": "准确KJ ImageResizeKJv2注册" + }, + { + "id": "layer", + "file": "py/image_scale_restore_v2.py", + "local_file": "../resize-compare-reference/layer__py__image_scale_restore_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43", + "git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13", + "lines": [ + 7, + 132 + ], + "claim": "准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回" + }, + { + "id": "layer", + "file": "py/image_scale_by_aspect_ratio_v2.py", + "local_file": "../resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5", + "git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5", + "lines": [ + 8, + 186 + ], + "claim": "准确AspectRatio schema、original/custom、None长度不采用、对齐及返回" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 591, + 618 + ], + "claim": "letterbox居中填色、crop居中裁剪、fill直接伸缩" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 1967, + 1973 + ], + "claim": "向上取整到倍数;不同于KJ向下取整" + }, + { + "id": "layer", + "file": "__init__.py", + "local_file": "../resize-compare-reference/layer____init__.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a", + "lines": [ + 29, + 48 + ], + "claim": "LayerStyle包逐模块合并注册,未执行" + }, + { + "id": "impact", + "file": "modules/impact/logics.py", + "local_file": "../resize-compare-reference/impact__modules__impact__logics.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb", + "lines": [ + 239, + 255 + ], + "claim": "准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回" + }, + { + "id": "impact", + "file": "__init__.py", + "local_file": "../resize-compare-reference/impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "lines": [ + 48, + 48 + ], + "claim": "ImpactPack logics导入" + }, + { + "id": "impact", + "file": "__init__.py", + "local_file": "../resize-compare-reference/impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "lines": [ + 259, + 259 + ], + "claim": "ImpactInt注册" + }, + { + "id": "rgthree", + "file": "py/display_any.py", + "local_file": "../resize-compare-reference/rgthree__py__display_any.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840", + "lines": [ + 6, + 50 + ], + "claim": "准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数" + }, + { + "id": "rgthree", + "file": "web/comfyui/display_any.js", + "local_file": "../resize-compare-reference/rgthree__web__comfyui__display_any.js", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d", + "lines": [ + 1, + 35 + ], + "claim": "只读output控件;serializeValue返回空字符串/onExecuted更新" + }, + { + "id": "rgthree", + "file": "py/constants.py", + "local_file": "../resize-compare-reference/rgthree__py__constants.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558", + "lines": [ + 2, + 5 + ], + "claim": "Display Any (rgthree)准确命名" + }, + { + "id": "rgthree", + "file": "__init__.py", + "local_file": "../resize-compare-reference/rgthree____init__.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb", + "lines": [ + 47, + 54 + ], + "claim": "DisplayAny准确注册" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 917, + 925 + ], + "claim": "仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 972, + 984 + ], + "claim": "仅参考假设位置序列化;不证明目标实际恢复" + }, + { + "id": "frontend", + "file": "src/extensions/core/uploadImage.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06", + "git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 10, + 40 + ], + "claim": "仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数" + }, + { + "id": "frontend", + "file": "src/scripts/widgets.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__scripts__widgets.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c", + "git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 305, + 308 + ], + "claim": "仅参考假设IMAGEUPLOAD控件构造入口" + }, + { + "id": "frontend", + "file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "local_file": "../resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c", + "git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 136 + ], + "claim": "仅参考假设上传控件行为;源保存image原样保留,未上传" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "../resize-compare-reference/load__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "../resize-compare-reference/core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "../resize-compare-reference/kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "../resize-compare-reference/layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "lines": [ + 1, + 21 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "impact", + "file": "LICENSE.txt", + "local_file": "../resize-compare-reference/impact__LICENSE.txt", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "rgthree", + "file": "LICENSE", + "local_file": "../resize-compare-reference/rgthree__LICENSE", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1", + "lines": [ + 1, + 21 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "id": "frontend", + "file": "LICENSE", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + } + ], + "comments": [], + "flow": [ + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。", + "四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImage;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。", + "11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存720,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。", + "5保存scale为JSON int1但schema为FLOAT;original_size未接,scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。", + "7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。", + "2当前stretch/lanczos/cpu,width480、height720经过divisible_by16向下对齐;pad_color与crop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。", + "源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未知,转换关闭。", + "4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分别13/14显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。", + "未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输入、mask及original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。", + "准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。", + "身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设,不称宿主版本。", + "UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。", + "旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case06排除。", + "原边 root [1, 1, 0, 2, 0, \"IMAGE\"]", + "原边 root [2, 2, 0, 3, 0, \"IMAGE\"]", + "原边 root [3, 1, 0, 4, 0, \"IMAGE\"]", + "原边 root [4, 1, 0, 5, 0, \"IMAGE\"]", + "原边 root [5, 1, 0, 7, 0, \"IMAGE\"]", + "原边 root [6, 4, 0, 8, 0, \"IMAGE\"]", + "原边 root [7, 5, 0, 9, 0, \"IMAGE\"]", + "原边 root [8, 7, 0, 10, 0, \"IMAGE\"]", + "原边 root [9, 11, 0, 2, 2, \"INT\"]", + "原边 root [10, 12, 0, 2, 3, \"INT\"]", + "原边 root [11, 12, 0, 4, 3, \"INT\"]", + "原边 root [12, 12, 0, 5, 6, \"INT\"]", + "原边 root [13, 12, 0, 7, 9, \"INT\"]", + "原边 root [14, 11, 0, 4, 2, \"INT\"]", + "原边 root [17, 2, 1, 13, 0, \"*\"]", + "原边 root [18, 2, 2, 14, 0, \"*\"]", + "原边 root [19, 5, 3, 15, 0, \"*\"]", + "原边 root [20, 5, 4, 16, 0, \"*\"]", + "原边 root [21, 7, 3, 17, 0, \"*\"]", + "原边 root [22, 7, 4, 18, 0, \"*\"]" + ], + "flow_evidence": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33 + ], + "zero_saved_nodes": [ + { + "node_id": "3", + "class_type": "PreviewImage", + "pointer": "/nodes/13/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + }, + { + "node_id": "8", + "class_type": "PreviewImage", + "pointer": "/nodes/14/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + }, + { + "node_id": "9", + "class_type": "PreviewImage", + "pointer": "/nodes/15/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + }, + { + "node_id": "10", + "class_type": "PreviewImage", + "pointer": "/nodes/16/widgets_values", + "effect": "源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。", + "evidence": [ + 3 + ] + } + ], + "boundaries": [], + "steps": [ + "这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。", + "操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。", + "操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。", + "操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。" + ] +} diff --git a/docs/hel-892/resize-compare-document-evidence/delivery-summary.md b/docs/hel-892/resize-compare-document-evidence/delivery-summary.md new file mode 100644 index 00000000..3d1bea66 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/delivery-summary.md @@ -0,0 +1,13 @@ +第53批仅图像放大比较单图:35个标量保存位置,0源注释,已接入实际doc_json/GET/既有Drawer。旧33块1034位置+25注释逐对象不变,现34图1069+25仅参考;155完整定稿0/必要实跑0/新增转换0,全量目标未完成。 + +17节点20物理边,全mode0,无子图。四链独立预览,六DisplayAny仅显示三个插件分支宽高。480/720外线覆盖KJ和核心宽高,以及两条LayerStyle长度缓存;5当前by_scale与7当前None分支不采用720长度。KJ向下16对齐、AspectRatio向上8对齐分别说明;int1与FLOAT、字符串8/None、上传占位、六空字符串及四Preview空[]均保持。 + +准确KJ提交没有源2所存的mask输入/第四mask输出,该冲突保留关闭,不补线。core0.3.65 PreviewImage无数据出口,写临时PNG只返回ui.images;无模型超分或正式SaveImage。LoadImage0.3.50与ImageScale/Preview0.3.65分层;两个完整插件提交、两个准确发布包及SHA/许可固定,发布包Git绑定未知。源没有frontendVersion;1.45.20仅恢复参考假设,非宿主事实。UE7.1只在LoadImage/KJ声明,不扩调查。 + +本次后台226通过(213专项+13库回归);14自写Python Ruff/format与一JS语法通过。离线wheel/sdist资源字节、双次定义重建/渲染确定性通过。真实ce9502a旧代码隔离库升级1更新154跳过,154条整行不变;幂等155跳过、精确回退1、再升级1,升级前后编辑各1冲突并29列整行保护。155条停用未检查/时间戳空、16/139、1217/3660/294及case06排除保持。163原件/191冻结资源/28profiles/9候选hash/六差分/执行资格/Drawer整文件均不变。 + +1440/390逐位置/来源/默认折叠、旧33概要、错绑定/旧空doc/迟到响应/失败重试/键盘焦点/无横溢通过;代表5截图已实际目验,只作附件,不入库。浏览请求与后台真实GET/就绪、详情及字体拦截分别见browser-results.json与server-request-accounting.json;禁止请求0。finally已停两服务,8247/5173释放。开发失败修正保留于development-corrections.md及初始日志。 + +仅运行受影响专项与库回归,不重复未改全后台/全前端/冻结转换,不称全仓全绿。准确来源local_file以docs/hel-892/resize-compare-document-evidence为基准;完整中文为../图像放大比较固定参考中文说明.md,实际doc为actual-图像放大比较.json,固定源码/许可为../resize-compare-reference。复现入口validation-commands.txt,受测资源SHA见package-check.json/repeatability.json/pins.json。 + +真实素材存在/尺寸、KJ冲突恢复、扩展及宿主版本、设备资源、实际像素/画质与产物仍未知。未连目标、不停TTS、不启ComfyUI、不构造prompt、不执行上游插件/表达式/媒体/GPU、不下载模型素材字体运行库、不加依赖/付费、不写在线库、不合并部署。全量完成并审核后才发布。 diff --git a/docs/hel-892/resize-compare-document-evidence/development-corrections.md b/docs/hel-892/resize-compare-document-evidence/development-corrections.md new file mode 100644 index 00000000..7d501c0c --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/development-corrections.md @@ -0,0 +1,9 @@ +本轮开发失败与修正记录(均为本次编写的验证或文档,无旧业务修改): + +- 初次源码校验及专项测试发现AspectRatio引用结束行195超出准确文件186行;按原字节修正为8~186。初次专项+库回归216通过、10失败,其中9项为该引用越界,另一项为旧文档部分无comments键。 +- 旧注释不能直接累加固定块comments:部分旧注释由build_document源图提取。改用实际source_notes计数,保留旧33图25条源注释。 +- 初次Ruff检查发现新写脚本的长字符串、单行语句和格式问题;按原字符串拆分、格式化并复检。 +- 首次浏览在1440屏宽的1.image项发现execution_note重复露出物理指针,违反来源默认折叠。去掉正文技术指针,折叠来源保留准确pointer及input_pointer;不改Drawer。首次浏览finally已停两服务并释放端口。 +- 最终测试、包、保护和浏览结果以各*-final.txt及JSON报告为准;未运行不受影响的全后台/前端/冻结转换套件,也不沿用历史测试数冒充本次结果。 + +- 差集检查发现初次pytest原始输出有尾空白,仅对本批机器日志去除行尾空白,保留失败内容;固定上游原件完全不作空白归一化。 diff --git a/docs/hel-892/resize-compare-document-evidence/fetch_frontend.py b/docs/hel-892/resize-compare-document-evidence/fetch_frontend.py new file mode 100644 index 00000000..d386e291 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/fetch_frontend.py @@ -0,0 +1,60 @@ +"""Fixed frontend is an explicit restoration hypothesis, never source identity.""" + +import hashlib +import json +import urllib.request +from pathlib import Path + +REF = Path(__file__).resolve().parent.parent / "resize-compare-reference" +OLD = REF.parent / "seedvr2-reference" + + +def main(): + j = json.loads((REF / "sources.json").read_bytes()) + j["sources"] = [e for e in j["sources"] if e["id"] != "frontend"] + old = json.loads((OLD / "sources.json").read_bytes())["sources"] + for e in old: + if e["id"] == "frontend" and e["file"] in [ + "src/lib/litegraph/src/LGraphNode.ts", + "src/scripts/widgets.ts", + "src/extensions/core/uploadImage.ts", + "LICENSE", + ]: + j["sources"].append( + { + **e, + "local_file": "../seedvr2-reference/" + e["local_file"], + "identity_binding": ( + "reference hypothesis v1.45.20 only; source frontendVersion absent" + ), + } + ) + tree = json.loads((OLD / "frontend-tree.json").read_bytes()) + commit = tree["sha"] + for f in ["src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts"]: + url = f"https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/{commit}/{f}" + with urllib.request.urlopen(url, timeout=30) as r: + b = r.read() + blob = hashlib.sha1(b"blob " + str(len(b)).encode() + b"\0" + b).hexdigest() + assert blob == next(e["sha"] for e in tree["tree"] if e["path"] == f) + name = "frontend__" + f.replace("/", "__") + (REF / name).write_bytes(b) + j["sources"].append( + dict( + id="frontend", + file=f, + local_file=name, + url=url, + commit=commit, + sha256=hashlib.sha256(b).hexdigest(), + git_blob_sha1=blob, + identity_binding=( + "reference hypothesis v1.45.20 only; source frontendVersion absent" + ), + ) + ) + (REF / "sources.json").write_text(json.dumps(j, ensure_ascii=False, indent=2) + "\n") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/fetch_packages.py b/docs/hel-892/resize-compare-document-evidence/fetch_packages.py new file mode 100644 index 00000000..28281e66 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/fetch_packages.py @@ -0,0 +1,63 @@ +"""Read exact release archive members as text; no install or execution.""" + +import hashlib +import io +import json +import urllib.request +import zipfile +from pathlib import Path + +REF = Path(__file__).resolve().parent.parent / "resize-compare-reference" + + +def main(): + entries = json.loads((REF / "sources.json").read_bytes())["sources"] + entries = [e for e in entries if e["id"] not in ["impact", "rgthree"]] + for key in ["impact", "rgthree"]: + meta = json.loads((REF / f"{key}-registry.json").read_bytes()) + with urllib.request.urlopen(meta["downloadUrl"], timeout=40) as r: + raw = r.read(15000001) + assert len(raw) < 15000000 + (REF / f"{key}-source.zip").write_bytes(raw) + sha = hashlib.sha256(raw).hexdigest() + with zipfile.ZipFile(io.BytesIO(raw)) as z: + names = z.namelist() + (REF / f"{key}-members.json").write_text(json.dumps(names, indent=2) + "\n") + wanted = ( + ["__init__.py", "modules/impact/logics.py", "LICENSE.txt", "LICENSE"] + if key == "impact" + else [ + "__init__.py", + "py/display_any.py", + "py/constants.py", + "web/comfyui/display_any.js", + "py/utils.py", + "LICENSE", + ] + ) + for f in wanted: + if f not in names: + continue + b = z.read(f) + name = key + "__" + f.replace("/", "__") + (REF / name).write_bytes(b) + entries.append( + dict( + id=key, + file=f, + local_file=name, + url=meta["downloadUrl"], + commit="发布包SHA256:" + sha, + git_commit_binding="unknown", + package_sha256=sha, + sha256=hashlib.sha256(b).hexdigest(), + ) + ) + print(key, "SHA256", sha, "selected", [e["file"] for e in entries if e["id"] == key]) + (REF / "sources.json").write_text( + json.dumps(dict(sources=entries), ensure_ascii=False, indent=2) + "\n" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/fetch_sources.py b/docs/hel-892/resize-compare-document-evidence/fetch_sources.py new file mode 100644 index 00000000..3b527055 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/fetch_sources.py @@ -0,0 +1,94 @@ +"""Fetch exact bounded text only; never load or execute upstream code.""" + +import hashlib +import json +import urllib.request +from concurrent.futures import ThreadPoolExecutor +from pathlib import Path + +REF = Path(__file__).resolve().parent.parent / "resize-compare-reference" +SPECS = { + "load": ("Comfy-Org/ComfyUI", "v0.3.50", ["nodes.py", "folder_paths.py", "LICENSE"]), + "core": ( + "Comfy-Org/ComfyUI", + "v0.3.65", + ["nodes.py", "comfy/utils.py", "folder_paths.py", "LICENSE"], + ), + "kj": ( + "kijai/ComfyUI-KJNodes", + "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + ["__init__.py", "nodes/image_nodes.py", "LICENSE"], + ), + "layer": ( + "chflame163/ComfyUI_LayerStyle", + "89014d833d2ad0998d724090eff1456692692a1d", + [ + "__init__.py", + "py/image_scale_restore_v2.py", + "py/image_scale_by_aspect_ratio_v2.py", + "py/imagefunc.py", + "LICENSE", + ], + ), +} + + +def get(url): + with urllib.request.urlopen(url, timeout=40) as r: + b = r.read(3000001) + assert len(b) < 3000000 + return b + + +def one(item): + key, (repo, rev, files) = item + if rev.startswith("v"): + b = get(f"https://api.github.com/repos/{repo}/git/ref/tags/{rev}") + (REF / f"{key}-tag.json").write_bytes(b) + obj = json.loads(b)["object"] + if obj["type"] == "tag": + b = get(obj["url"]) + (REF / f"{key}-tag-object.json").write_bytes(b) + obj = json.loads(b)["object"] + rev = obj["sha"] + b = get(f"https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1") + (REF / f"{key}-tree.json").write_bytes(b) + t = json.loads(b) + assert t["sha"] == rev and not t["truncated"] + entries = [] + for file in files: + blob = next(x["sha"] for x in t["tree"] if x["path"] == file) + url = f"https://raw.githubusercontent.com/{repo}/{rev}/{file}" + b = get(url) + assert hashlib.sha1(b"blob " + str(len(b)).encode() + b"\0" + b).hexdigest() == blob + name = key + "__" + file.replace("/", "__") + (REF / name).write_bytes(b) + entries.append( + dict( + id=key, + file=file, + local_file=name, + url=url, + commit=rev, + sha256=hashlib.sha256(b).hexdigest(), + git_blob_sha1=blob, + ) + ) + return dict(id=key, repo=repo, commit=rev), entries + + +if __name__ == "__main__": + with ThreadPoolExecutor(max_workers=4) as pool: + rows = list(pool.map(one, SPECS.items())) + (REF / "identities.json").write_text(json.dumps([r[0] for r in rows], indent=2) + "\n") + (REF / "sources.json").write_text( + json.dumps(dict(sources=[e for r in rows for e in r[1]]), indent=2) + "\n" + ) + # Accurate registry release metadata; package Git bindings are not inferred. + for key, node, version in [ + ("impact", "comfyui-impact-pack", "8.25.1"), + ("rgthree", "rgthree-comfy", "1.0.2510052058"), + ]: + b = get(f"https://api.comfy.org/nodes/{node}/versions/{version}") + (REF / f"{key}-registry.json").write_bytes(b) + print(key, b[:450]) diff --git a/docs/hel-892/resize-compare-document-evidence/file-change-manifest.json b/docs/hel-892/resize-compare-document-evidence/file-change-manifest.json new file mode 100644 index 00000000..7278290e --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/file-change-manifest.json @@ -0,0 +1,534 @@ +{ + "base": "ce9502af89dcc2b0047785e4425a95c010da2fec", + "self_excluded": true, + "files": [ + { + "path": "calliope-backend/src/calliope/comfyui/fixed_document.py", + "bytes": 9860, + "sha256": "ca60842cd88dc4adecb2cba91ffd27d309e94de42174af90aa475cb9b526a9f1", + "purpose": "新增本图定义摘要白名单;原33摘要不变" + }, + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.json", + "bytes": 4211589, + "sha256": "64bc414da56186825db52dbaf240a97e9d2b81c2b0e6502ad6a17c878b8bda19", + "purpose": "只在本图审校对象新增固定参考块,其余155对象冻结" + }, + { + "path": "calliope-backend/tests/test_resize_compare_fixed_document.py", + "bytes": 8888, + "sha256": "db04a38ddc212a57c29032a81047f6a75ebe1a6162390ecc6155650b3a5e2ba1", + "purpose": "新增本图定义摘要白名单;原33摘要不变" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/actual-图像放大比较.json", + "bytes": 90449, + "sha256": "0fbdea2caa0f407b2288328b25f8babce8c6d9e85637322463e5561dfd1555f0", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/audit-summary.json", + "bytes": 797, + "sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/authored-diff-check.txt", + "bytes": 88, + "sha256": "17293b65366bf232670ef3c570fe87c02bf377dcd2b3f7b9fc1fa71c7c1db85e", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/boundaries.json", + "bytes": 38634, + "sha256": "d856488832604570281cf503843d00b301740a460b84a65ddb3500ee33b24e56", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/browser-final.txt", + "bytes": 68389, + "sha256": "1f95e3c643ecae6fe1f94b487f2c7662b615bbb38d73e139cc928e3ef8665367", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/browser-initial.txt", + "bytes": 2604, + "sha256": "eaae5da6a730d4525d8c3eaff120b7fbae2128edd8835cba98dd1f0486ae6300", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/browser-results.json", + "bytes": 84717, + "sha256": "bf0ded1fda9c0f01b0202ef5f8dcfe7914189cf0fee165c824e837dbe977eb6b", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/build-final.txt", + "bytes": 225, + "sha256": "f47830f4c19876019d7496b7dff4aead88d8abe6f1deada5819eaca442000353", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/build_definition.py", + "bytes": 27430, + "sha256": "817428e740fff89a680e714c135d290981fecd4a228ae256fa1c7bb8ebdaca22", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/check-code-final.txt", + "bytes": 100, + "sha256": "f13a665b53482d1dceeb38f992ce3c317dd520fd0bfcecb96e398c69cd24f7b0", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/check-code-initial.txt", + "bytes": 4410, + "sha256": "29b60aea1d0b6be6edb32a714e80d987999b8aa0b40e2fab2460ebedae4152a2", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/check_code.py", + "bytes": 1236, + "sha256": "3ed230815dbc56963b44c7617b74f91f8dd5a8bcc4ea58c1b398d5ab162e1956", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/definition-0.json", + "bytes": 63345, + "sha256": "5427fd1a4cddb4c3f7c020deaf1de9a6482acec187ca564141b377f9fdddd3bf", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/delivery-summary.md", + "bytes": 2961, + "sha256": "61af9f97c383cba9c47d78f4af56ade1bbe7a80354e2382ca4d85c536262784e", + "purpose": "完整中文或本次交付/开发修正记录" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/development-corrections.md", + "bytes": 1271, + "sha256": "775fb8fac36e22eff80532785ac877351e4632febf7b3efef44e809362a5cd80", + "purpose": "完整中文或本次交付/开发修正记录" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/fetch_frontend.py", + "bytes": 2253, + "sha256": "745bd67f085275f453994535ce20aef0f39c3a4be3c903151801b58668a3a72f", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/fetch_packages.py", + "bytes": 2320, + "sha256": "c4d5f312e09426df63cc76b22bcd09fcbc148002270f5f5c3fae09961de91b8d", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/fetch_sources.py", + "bytes": 3240, + "sha256": "db5e9bcdd48f94dc85f80e657dfd25e84e1c226acff9f3a3c2d9c6ba44418599", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/fixed-source-index.json", + "bytes": 26917, + "sha256": "4baa16c535c694eefaa6e242881602262b163369feb96e1656cb7b246e5e2030", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/frozen-resource-check.json", + "bytes": 40348, + "sha256": "fddf632178fb8cbb10f11302ca423b3e10da88c7b70fa40a63fb148f3378b4b5", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/import-protection.json", + "bytes": 1270, + "sha256": "87800335e53d0a8ecdfad72a11822c69b11b523324dc383f63820dab7787ea32", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/package-check.json", + "bytes": 550, + "sha256": "27bed3d2b2e32d8268386fd482abca25132c17c6c44b15a936d8e8562bd6ca55", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/pins.json", + "bytes": 220, + "sha256": "8135fe24810f31954b75f34d6099f2de559efcc1d6008f69457100a1200dccc8", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/pr-baseline.json", + "bytes": 239, + "sha256": "c9252ce86f9f9634595d8938dca3ff8ab3b34c5b3fc3ae11966a5ac0edbf7986", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/pytest-final.txt", + "bytes": 960, + "sha256": "3df594775356c8ab6438bc47c68ac77f87ec3351276239e6e3cb60444e074816", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/pytest-initial.txt", + "bytes": 27619, + "sha256": "7f107acf80e2183c37f471a8238f2461ce5e81af596342f4c901f758642967b7", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/python-check-files.json", + "bytes": 905, + "sha256": "6600ed5cc94cef5182a8e1ffe0102ba6c5b4f033c2c9e4cc0c2941203563c223", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/rebuild.py", + "bytes": 2448, + "sha256": "be14f6c45aaf00d404ef58a8dd2566ff3bda4c7c172f7db887624cdc20da9146", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/recompute-final.txt", + "bytes": 240, + "sha256": "6986b01e04d4d4c32682a09b29dfd8d30f6b489574197a79f6bb18618e497bd0", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/recompute-initial.txt", + "bytes": 240, + "sha256": "6986b01e04d4d4c32682a09b29dfd8d30f6b489574197a79f6bb18618e497bd0", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/recompute.py", + "bytes": 12280, + "sha256": "25f6a947db5f4bc69183e0a1b06c05f7bbee64b350a38d5673a03cb594959dbd", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/render_report.py", + "bytes": 4442, + "sha256": "07a7de09f92ebfd2ca8d983a1928039ae0739a76fc1ddb57f1a98aaf9e6e6496", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/repeat.py", + "bytes": 1283, + "sha256": "45e2f120dafdc87de496e06c8b0032bf71c6361a893da14608016bea38ad5ced", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/repeatability.json", + "bytes": 419, + "sha256": "96f80b24b87c7b719ea59801c352fcb91f25c9816db8b878ee2d8729c9588bca", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/request_counts.py", + "bytes": 1385, + "sha256": "982d4859e01e9a3e3ef9746fc8b7f447b4ea63fbdf414f13de3bbaaaedd2d58f", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/review-delta.json", + "bytes": 443, + "sha256": "6c43ba46924a38106cf02a0b0338ecabc483f05f5e4894f044120a6f531a5663", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/ruff-initial.txt", + "bytes": 68062, + "sha256": "b3da21222027733f454bc8f3101381e5ec53276d26814d855c87eb30b01a695c", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/server-request-accounting.json", + "bytes": 1390, + "sha256": "edc592dc6547952ddb1ffeb95160d5cc1df3b5d9d4f8b465768281181aeab540", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/service-0.txt", + "bytes": 8584, + "sha256": "7403cdf0d97f53edd3191cb14162b4aebd31f7633d104226eeda9633a25cddd4", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/service-stop.json", + "bytes": 65, + "sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/source-check.json", + "bytes": 553, + "sha256": "c3ad5dc1bcbca3f19220129b5ba38bc505cb5dd25a27100dabee7f78b96e3328", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/validation-commands.txt", + "bytes": 2299, + "sha256": "9a407606b52639f49c7bef11a9967bec9d5436ccdc899f902aeba1c07a4eeec5", + "purpose": "本次实际生成的定义、doc或验证日志/审计样例" + }, + { + "path": "docs/hel-892/resize-compare-document-evidence/verify_sources.py", + "bytes": 2979, + "sha256": "64bc3a07f265b0da06ee548280e50833d8126f784dd324c94f7d18e57510ce91", + "purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具" + }, + { + "path": "docs/hel-892/resize-compare-reference/core-tag.json", + "bytes": 339, + "sha256": "e7a65c1cff1fb9215482bafcce2ca373e6a7a09f11cc050839e16132a35e52c9", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/core-tree.json", + "bytes": 162407, + "sha256": "8569c5af3aa9886a9d5d57b0e973c913ef2cab17743206ad84501aedc684a75a", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/core__LICENSE", + "bytes": 35149, + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/core__comfy__utils.py", + "bytes": 47815, + "sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/core__folder_paths.py", + "bytes": 16137, + "sha256": "df82630df610edbaf86cecf0376871e1d026a05c12aa439670916099ecdd4f7a", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/core__nodes.py", + "bytes": 98752, + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts", + "bytes": 4583, + "sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/identities.json", + "bytes": 486, + "sha256": "e6adfbcf1112d930b2b083d68f85280ddd0d6730c09f11e4f04c1f51a8b1fac8", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/impact-members.json", + "bytes": 2470, + "sha256": "a9e623c3c642258d64663e69ab2ce583ad93963f718c7471c6d7fa8c2a03ed06", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/impact-registry.json", + "bytes": 551, + "sha256": "e1ef83ba61b7ea6b983c46b70180d954676a5c5e849c4c51d615f4e2f776a126", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/impact-source.zip", + "bytes": 2554889, + "sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/impact__LICENSE.txt", + "bytes": 35149, + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/impact____init__.py", + "bytes": 21951, + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/impact__modules__impact__logics.py", + "bytes": 22496, + "sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/kj-tree.json", + "bytes": 14252, + "sha256": "ceadebef2e8bc20892e385322caa2198cd34695211db4aa2913dbe20e6a8b369", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/kj__LICENSE", + "bytes": 35149, + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/kj____init__.py", + "bytes": 17806, + "sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/kj__nodes__image_nodes.py", + "bytes": 138829, + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/layer-tree.json", + "bytes": 126406, + "sha256": "07aa82e8974b967e36022f633dc4fbf574151febb8ae6fc04e9d610c80a0f1bb", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/layer__LICENSE", + "bytes": 1067, + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/layer____init__.py", + "bytes": 1572, + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py", + "bytes": 8734, + "sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/layer__py__image_scale_restore_v2.py", + "bytes": 5247, + "sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/layer__py__imagefunc.py", + "bytes": 107560, + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/load-tag.json", + "bytes": 339, + "sha256": "5b0ed80bac52f5b0f978ec92b2e83c70d7b124e80e814a9c782e84818f5980f9", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/load-tree.json", + "bytes": 146966, + "sha256": "720111b4124140999db72e72c658cf170387e396c0592caf987c27f11f8276b4", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/load__LICENSE", + "bytes": 35149, + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/load__folder_paths.py", + "bytes": 15907, + "sha256": "99d77f12a87d7d25ceac544d9c29dbe988d2718e94c0357b3eb754e79f4b7547", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/load__nodes.py", + "bytes": 98312, + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree-members.json", + "bytes": 8920, + "sha256": "768479dbd0b488e595636de0f0b01836d8ba53e69bd1c06c911ea6a95b2009ef", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree-registry.json", + "bytes": 439, + "sha256": "a2b0004e9b29245e706386cec392ffc145e0fa437f4b81916e8bb6b3db6276f3", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree-source.zip", + "bytes": 4033076, + "sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree__LICENSE", + "bytes": 1106, + "sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree____init__.py", + "bytes": 4537, + "sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree__py__constants.py", + "bytes": 238, + "sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree__py__display_any.py", + "bytes": 1932, + "sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree__py__utils.py", + "bytes": 5423, + "sha256": "47dcb57dae78b6562abd51e6796fb64df5b3820a081273394a41d250e6b14284", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/rgthree__web__comfyui__display_any.js", + "bytes": 1860, + "sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/resize-compare-reference/sources.json", + "bytes": 14554, + "sha256": "d8c20df78afd5a7f3bf28810eb77ea8c4b4597fb855c1cde68103b39573186c8", + "purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行" + }, + { + "path": "docs/hel-892/图像放大比较固定参考中文说明.md", + "bytes": 81966, + "sha256": "12f803a7266ece6fda13fcb999fd363260435d6e45c8602f41d99f9aa4140835", + "purpose": "完整中文或本次交付/开发修正记录" + }, + { + "path": "e2e/resize-compare-document.mjs", + "bytes": 14407, + "sha256": "ea2eedd331cbb2642f9594a7bb04e439879411983733d99aacc9e7511b879c96", + "purpose": "本图35位置及旧33概要、共享回退浏览验证;finally释放服务" + }, + { + "path": "e2e/run-resize-compare-document.py", + "bytes": 3130, + "sha256": "0c08194e2ec7f0c0c990fa2035dae31892c2beb102bb8306c2707f26acc03b84", + "purpose": "本图35位置及旧33概要、共享回退浏览验证;finally释放服务" + } + ] +} diff --git a/docs/hel-892/resize-compare-document-evidence/fixed-source-index.json b/docs/hel-892/resize-compare-document-evidence/fixed-source-index.json new file mode 100644 index 00000000..3d2e09a5 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/fixed-source-index.json @@ -0,0 +1,527 @@ +[ + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "load", + "file": "nodes.py", + "local_file": "../resize-compare-reference/load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "lines": [ + 1626, + 1700 + ], + "claim": "准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "load", + "file": "nodes.py", + "local_file": "../resize-compare-reference/load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375", + "lines": [ + 1957, + 1959 + ], + "claim": "准确core0.3.50 LoadImage注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1778, + 1806 + ], + "claim": "准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1561, + 1628 + ], + "claim": "PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 1957, + 1967 + ], + "claim": "准确核心节点注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "core", + "file": "nodes.py", + "local_file": "../resize-compare-reference/core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b", + "lines": [ + 52, + 52 + ], + "claim": "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "core", + "file": "comfy/utils.py", + "local_file": "../resize-compare-reference/core__comfy__utils.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509", + "git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d", + "lines": [ + 858, + 900 + ], + "claim": "lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "lines": [ + 2376, + 2502 + ], + "claim": "KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../resize-compare-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a", + "lines": [ + 21, + 21 + ], + "claim": "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "kj", + "file": "__init__.py", + "local_file": "../resize-compare-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a", + "git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35", + "lines": [ + 75, + 85 + ], + "claim": "准确KJ ImageResizeKJv2注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "layer", + "file": "py/image_scale_restore_v2.py", + "local_file": "../resize-compare-reference/layer__py__image_scale_restore_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43", + "git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13", + "lines": [ + 7, + 132 + ], + "claim": "准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "layer", + "file": "py/image_scale_by_aspect_ratio_v2.py", + "local_file": "../resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5", + "git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5", + "lines": [ + 8, + 186 + ], + "claim": "准确AspectRatio schema、original/custom、None长度不采用、对齐及返回" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 591, + 618 + ], + "claim": "letterbox居中填色、crop居中裁剪、fill直接伸缩" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../resize-compare-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 1967, + 1973 + ], + "claim": "向上取整到倍数;不同于KJ向下取整" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "layer", + "file": "__init__.py", + "local_file": "../resize-compare-reference/layer____init__.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a", + "lines": [ + 29, + 48 + ], + "claim": "LayerStyle包逐模块合并注册,未执行" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "impact", + "file": "modules/impact/logics.py", + "local_file": "../resize-compare-reference/impact__modules__impact__logics.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb", + "lines": [ + 239, + 255 + ], + "claim": "准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "impact", + "file": "__init__.py", + "local_file": "../resize-compare-reference/impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "lines": [ + 48, + 48 + ], + "claim": "ImpactPack logics导入" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "impact", + "file": "__init__.py", + "local_file": "../resize-compare-reference/impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0", + "lines": [ + 259, + 259 + ], + "claim": "ImpactInt注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "rgthree", + "file": "py/display_any.py", + "local_file": "../resize-compare-reference/rgthree__py__display_any.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840", + "lines": [ + 6, + 50 + ], + "claim": "准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "rgthree", + "file": "web/comfyui/display_any.js", + "local_file": "../resize-compare-reference/rgthree__web__comfyui__display_any.js", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d", + "lines": [ + 1, + 35 + ], + "claim": "只读output控件;serializeValue返回空字符串/onExecuted更新" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "rgthree", + "file": "py/constants.py", + "local_file": "../resize-compare-reference/rgthree__py__constants.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558", + "lines": [ + 2, + 5 + ], + "claim": "Display Any (rgthree)准确命名" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "rgthree", + "file": "__init__.py", + "local_file": "../resize-compare-reference/rgthree____init__.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb", + "lines": [ + 47, + 54 + ], + "claim": "DisplayAny准确注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 917, + 925 + ], + "claim": "仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 972, + 984 + ], + "claim": "仅参考假设位置序列化;不证明目标实际恢复" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "frontend", + "file": "src/extensions/core/uploadImage.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06", + "git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 10, + 40 + ], + "claim": "仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "frontend", + "file": "src/scripts/widgets.ts", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__scripts__widgets.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c", + "git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 305, + 308 + ], + "claim": "仅参考假设IMAGEUPLOAD控件构造入口" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "frontend", + "file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "local_file": "../resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c", + "git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 136 + ], + "claim": "仅参考假设上传控件行为;源保存image原样保留,未上传" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "load", + "file": "LICENSE", + "local_file": "../resize-compare-reference/load__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "core", + "file": "LICENSE", + "local_file": "../resize-compare-reference/core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "kj", + "file": "LICENSE", + "local_file": "../resize-compare-reference/kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "layer", + "file": "LICENSE", + "local_file": "../resize-compare-reference/layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "lines": [ + 1, + 21 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "impact", + "file": "LICENSE.txt", + "local_file": "../resize-compare-reference/impact__LICENSE.txt", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "rgthree", + "file": "LICENSE", + "local_file": "../resize-compare-reference/rgthree__LICENSE", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1", + "lines": [ + 1, + 21 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "id": "frontend", + "file": "LICENSE", + "local_file": "../resize-compare-reference/../seedvr2-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent", + "lines": [ + 1, + 674 + ], + "claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设" + } +] diff --git a/docs/hel-892/resize-compare-document-evidence/frozen-resource-check.json b/docs/hel-892/resize-compare-document-evidence/frozen-resource-check.json new file mode 100644 index 00000000..3af12136 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/frozen-resource-check.json @@ -0,0 +1,771 @@ +{ + "base": "ce9502af89dcc2b0047785e4425a95c010da2fec", + "files": [ + { + "path": "calliope-backend/src/calliope/comfyui/__init__.py", + "sha256": "1d3488bcc2eadcd8a8f2e84ab4f6e9bdf52096b8af637c4da399db041d5a0543" + }, + { + "path": "calliope-backend/src/calliope/comfyui/client.py", + "sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72" + }, + { + "path": "calliope-backend/src/calliope/comfyui/companions.py", + "sha256": "7dde205059bf489e3d39539a8b42333b3947c3989d890441f70a45cf67d9ab04" + }, + { + "path": "calliope-backend/src/calliope/comfyui/delivery_scope.json", + "sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6" + }, + { + "path": "calliope-backend/src/calliope/comfyui/delivery_scope.py", + "sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867" + }, + { + "path": "calliope-backend/src/calliope/comfyui/dry_run.py", + "sha256": "f8bf4d1b91d959044de1dbc4aeb11bf0bb521f51f1928d36a46c670381a08ed7" + }, + { + "path": "calliope-backend/src/calliope/comfyui/endpoints.py", + "sha256": "fc99a623850b581ae38843bbc3baf1b71ca9fd633e6103a34cb809a345e5a647" + }, + { + "path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py", + "sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741" + }, + { + "path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py", + "sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f" + }, + { + "path": "calliope-backend/src/calliope/comfyui/library.py", + "sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c" + }, + { + "path": "calliope-backend/src/calliope/comfyui/library_cli.py", + "sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380" + }, + { + "path": "calliope-backend/src/calliope/comfyui/lint.py", + "sha256": "9b79bf162e13fb68321727fb17f96d6fc0c217d60db85de38235c4270bf9b4e3" + }, + { + "path": "calliope-backend/src/calliope/comfyui/output_map.py", + "sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e" + }, + { + "path": "calliope-backend/src/calliope/comfyui/parser.py", + "sha256": "a02d583c6a1cf7f85e77341a20308823771c233fb95241118a264e202a5230a0" + }, + { + "path": "calliope-backend/src/calliope/comfyui/patcher.py", + "sha256": "8ac1417f0f78d952cdb219b10811a6ed7d4ce3bb0d561708858c4a8f5d15b45d" + }, + { + "path": "calliope-backend/src/calliope/comfyui/preflight.py", + "sha256": "6629961d33204cbe5b3fc3d8a5a0a4de0c86d235e73f542d191429cf7f4bd2ec" + }, + { + "path": "calliope-backend/src/calliope/comfyui/profiles.py", + "sha256": "4ca33343fc3f20e0fb82558cb428548f6415af04fb90213a694fb759515732f2" + }, + { + "path": "calliope-backend/src/calliope/comfyui/protocol_references.json", + "sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4" + }, + { + "path": "calliope-backend/src/calliope/comfyui/protocol_references.py", + "sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916" + }, + { + "path": "calliope-backend/src/calliope/comfyui/registry.py", + "sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d" + }, + { + "path": "calliope-backend/src/calliope/comfyui/roles.py", + "sha256": "cc0b45eac2d881a6f7cc5ea88ceadb03f71715240a45257fef3a76bfc53d56c4" + }, + { + "path": "calliope-backend/src/calliope/comfyui/serialization_reference.py", + "sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1" + }, + { + "path": "calliope-backend/src/calliope/comfyui/smart_fill.py", + "sha256": "adc34e80cca7a2b38cc834a713c9e64001caac84413af288389e5554e304bab6" + }, + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.py", + "sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419" + }, + { + "path": "calliope-backend/src/calliope/comfyui/structure_reference.py", + "sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb" + }, + { + "path": "calliope-backend/src/calliope/comfyui/ui2api.py", + "sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f" + }, + { + "path": "calliope-backend/src/calliope/comfyui/validate.py", + "sha256": "c27fca69a604705b06809fdd692975ca0e7a08d05d558172962f8910a6a0491d" + }, + { + "path": "docs/hel-892/supplied-api/01.api.json", + "sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e" + }, + { + "path": "docs/hel-892/supplied-api/02.api.json", + "sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b" + }, + { + "path": "docs/hel-892/supplied-api/03.api.json", + "sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce" + }, + { + "path": "docs/hel-892/supplied-api/04.api.json", + "sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e" + }, + { + "path": "docs/hel-892/supplied-api/05.api.json", + "sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8" + }, + { + "path": "docs/hel-892/supplied-api/06.api.json", + "sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b" + }, + { + "path": "docs/hel-892/supplied-api/07.api.json", + "sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d" + }, + { + "path": "docs/hel-892/supplied-api/manifest.json", + "sha256": "f1367b4fa7a8377fb57512d17c80bc697d4d3abd0adb77adc3c06c6dedab69ea" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json", + "sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json", + "sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json", + "sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json", + "sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json", + "sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json", + "sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json", + "sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json", + "sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json", + "sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json", + "sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json", + "sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json", + "sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json", + "sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json", + "sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json", + "sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json", + "sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json", + "sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json", + "sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json", + "sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json", + "sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json", + "sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json", + "sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json", + "sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json", + "sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json", + "sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json", + "sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json", + "sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json", + "sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json", + "sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json", + "sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json", + "sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071" + }, + { + "path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json", + "sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8" + }, + { + "path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json", + "sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65" + }, + { + "path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json", + "sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690" + }, + { + "path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json", + "sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1" + }, + { + "path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json", + "sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de" + }, + { + "path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json", + "sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef" + }, + { + "path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json", + "sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85" + }, + { + "path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json", + "sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json", + "sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json", + "sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json", + "sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json", + "sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json", + "sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json", + "sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json", + "sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json", + "sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json", + "sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json", + "sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json", + "sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json", + "sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json", + "sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json", + "sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json", + "sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json", + "sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json", + "sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json", + "sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json", + "sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json", + "sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json", + "sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json", + "sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json", + "sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json", + "sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json", + "sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json", + "sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json", + "sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json", + "sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json", + "sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json", + "sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json", + "sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json", + "sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json", + "sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json", + "sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json", + "sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json", + "sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json", + "sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json", + "sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json", + "sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json", + "sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json", + "sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json", + "sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json", + "sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json", + "sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json", + "sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json", + "sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json", + "sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json", + "sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json", + "sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json", + "sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json", + "sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json", + "sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json", + "sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json", + "sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json", + "sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json", + "sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json", + "sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json", + "sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json", + "sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json", + "sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json", + "sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json", + "sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json", + "sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60" + }, + { + "path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json", + "sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json", + "sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json", + "sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json", + "sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json", + "sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json", + "sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json", + "sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json", + "sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json", + "sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json", + "sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json", + "sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json", + "sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json", + "sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json", + "sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json", + "sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json", + "sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json", + "sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json", + "sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json", + "sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json", + "sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json", + "sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json", + "sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json", + "sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json", + "sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json", + "sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json", + "sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json", + "sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json", + "sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json", + "sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json", + "sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2" + }, + { + "path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json", + "sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537" + }, + { + "path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json", + "sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f" + }, + { + "path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json", + "sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c" + }, + { + "path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json", + "sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06" + }, + { + "path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json", + "sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd" + }, + { + "path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json", + "sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8" + }, + { + "path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json", + "sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45" + }, + { + "path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json", + "sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637" + }, + { + "path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json", + "sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41" + }, + { + "path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json", + "sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002" + }, + { + "path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json", + "sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b" + }, + { + "path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json", + "sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313" + }, + { + "path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json", + "sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757" + }, + { + "path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json", + "sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40" + }, + { + "path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json", + "sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce" + }, + { + "path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json", + "sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed" + }, + { + "path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json", + "sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49" + }, + { + "path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json", + "sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a" + }, + { + "path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json", + "sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a" + }, + { + "path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json", + "sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909" + }, + { + "path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json", + "sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c" + } + ], + "original_files": 156, + "all_unchanged": true +} diff --git a/docs/hel-892/resize-compare-document-evidence/import-protection.json b/docs/hel-892/resize-compare-document-evidence/import-protection.json new file mode 100644 index 00000000..1c1beda0 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/import-protection.json @@ -0,0 +1,69 @@ +{ + "base": "ce9502af89dcc2b0047785e4425a95c010da2fec", + "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": 35, + "new_notes": 0, + "old_saved": 1034, + "old_notes": 25, + "overviews": 34, + "all_disabled": true, + "doc_done": 0, + "executed": 0 +} diff --git a/docs/hel-892/resize-compare-document-evidence/package-check.json b/docs/hel-892/resize-compare-document-evidence/package-check.json new file mode 100644 index 00000000..294a7553 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/package-check.json @@ -0,0 +1,23 @@ +[ + { + "file": "fixed_document.py", + "sha256": "ca60842cd88dc4adecb2cba91ffd27d309e94de42174af90aa475cb9b526a9f1", + "wheel": true, + "sdist": true, + "definitions": 34 + }, + { + "file": "source_reviews.json", + "sha256": "64bc414da56186825db52dbaf240a97e9d2b81c2b0e6502ad6a17c878b8bda19", + "wheel": true, + "sdist": true, + "definitions": 34 + }, + { + "file": "library.py", + "sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c", + "wheel": true, + "sdist": true, + "definitions": 34 + } +] diff --git a/docs/hel-892/resize-compare-document-evidence/pins.json b/docs/hel-892/resize-compare-document-evidence/pins.json new file mode 100644 index 00000000..ef661534 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/pins.json @@ -0,0 +1,3 @@ +{ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json": "b57b68e11c6a7347947d3547c85c0e26fa174a07174d39835710bf22a953fe78" +} diff --git a/docs/hel-892/resize-compare-document-evidence/pr-baseline.json b/docs/hel-892/resize-compare-document-evidence/pr-baseline.json new file mode 100644 index 00000000..a8f82601 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/pr-baseline.json @@ -0,0 +1,9 @@ +{ + "html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25", + "number": 25, + "state": "open", + "merged": false, + "head": "ce9502af89dcc2b0047785e4425a95c010da2fec", + "head_ref": "agent/agent/a64a969a6a44", + "base_ref": "main" +} diff --git a/docs/hel-892/resize-compare-document-evidence/pytest-final.txt b/docs/hel-892/resize-compare-document-evidence/pytest-final.txt new file mode 100644 index 00000000..ea52a016 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/pytest-final.txt @@ -0,0 +1,11 @@ +........................................................................ [ 31%] +........................................................................ [ 63%] +........................................................................ [ 95%] +.......... [100%] +=============================== warnings summary =============================== +calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53 + /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-ce46f2ab3728/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead. + _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]] + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +226 passed, 1 warning in 4.76s diff --git a/docs/hel-892/resize-compare-document-evidence/pytest-initial.txt b/docs/hel-892/resize-compare-document-evidence/pytest-initial.txt new file mode 100644 index 00000000..9b3cd96f --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/pytest-initial.txt @@ -0,0 +1,242 @@ +....................FFFFFFFFF........................................... [ 31%] +........................................................................ [ 63%] +....................................................................F... [ 95%] +.......... [100%] +=================================== FAILURES =================================== +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.aspect_ratio] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'aspect_ratio', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_width] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'proportional_width', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_height] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'proportional_height', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +___ test_position_type_scope_citations_and_no_fabricated_named_values[7.fit] ___ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'fit', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.method] __ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'method', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.round_to_multiple] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'round_to_multiple', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_side] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'scale_to_side', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_length] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'scale_to_length', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_ test_position_type_scope_citations_and_no_fabricated_named_values[7.background_color] _ + +f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'background_color', ...} + + @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field']) + def test_position_type_scope_citations_and_no_fabricated_named_values(f): + assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value']) + assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] + assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f + for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + for i in f['evidence']: + e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + assert hashlib.sha256(raw).hexdigest()==e['sha256'] +> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +E assert 195 <= 186 +E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...]) +E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = () +E + where = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines +E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = () +E + where = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode + +calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError +_______________ test_old_33_blocks_and_all_other_reviews_frozen ________________ + + def test_old_33_blocks_and_all_other_reviews_frozen(): + p='calliope-backend/src/calliope/comfyui/source_reviews.json' + old=json.loads(subprocess.check_output(['git','show','ce9502a:'+p],cwd=REPO)) + now=json.loads((REPO/p).read_bytes());now[PATH].pop('fixed_version_document') + assert now==old and len(DEFINITIONS)==34 + blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] +> assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25 + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +calliope-backend/tests/test_resize_compare_fixed_document.py:144: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +.0 = + +> assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25 + ^^^^^^^^^^^^^ +E KeyError: 'comments' + +calliope-backend/tests/test_resize_compare_fixed_document.py:144: KeyError +=============================== warnings summary =============================== +calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53 + /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-ce46f2ab3728/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead. + _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]] + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +=========================== short test summary info ============================ +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.aspect_ratio] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_width] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_height] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.fit] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.method] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.round_to_multiple] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_side] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_length] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.background_color] +FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_old_33_blocks_and_all_other_reviews_frozen +10 failed, 216 passed, 1 warning in 4.72s diff --git a/docs/hel-892/resize-compare-document-evidence/python-check-files.json b/docs/hel-892/resize-compare-document-evidence/python-check-files.json new file mode 100644 index 00000000..2fab753a --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/python-check-files.json @@ -0,0 +1,16 @@ +[ + "calliope-backend/src/calliope/comfyui/fixed_document.py", + "calliope-backend/tests/test_resize_compare_fixed_document.py", + "e2e/run-resize-compare-document.py", + "docs/hel-892/resize-compare-document-evidence/build_definition.py", + "docs/hel-892/resize-compare-document-evidence/check_code.py", + "docs/hel-892/resize-compare-document-evidence/fetch_frontend.py", + "docs/hel-892/resize-compare-document-evidence/fetch_packages.py", + "docs/hel-892/resize-compare-document-evidence/fetch_sources.py", + "docs/hel-892/resize-compare-document-evidence/rebuild.py", + "docs/hel-892/resize-compare-document-evidence/recompute.py", + "docs/hel-892/resize-compare-document-evidence/render_report.py", + "docs/hel-892/resize-compare-document-evidence/repeat.py", + "docs/hel-892/resize-compare-document-evidence/request_counts.py", + "docs/hel-892/resize-compare-document-evidence/verify_sources.py" +] diff --git a/docs/hel-892/resize-compare-document-evidence/rebuild.py b/docs/hel-892/resize-compare-document-evidence/rebuild.py new file mode 100644 index 00000000..dbfb2783 --- /dev/null +++ b/docs/hel-892/resize-compare-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 = "ce9502af89dcc2b0047785e4425a95c010da2fec" +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 33 blocks unchanged")) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/recompute-final.txt b/docs/hel-892/resize-compare-document-evidence/recompute-final.txt new file mode 100644 index 00000000..922c87a7 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/recompute-final.txt @@ -0,0 +1,2 @@ +PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory +PASS actual ce9502a upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 34 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/resize-compare-document-evidence/recompute-initial.txt b/docs/hel-892/resize-compare-document-evidence/recompute-initial.txt new file mode 100644 index 00000000..922c87a7 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/recompute-initial.txt @@ -0,0 +1,2 @@ +PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory +PASS actual ce9502a upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 34 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/resize-compare-document-evidence/recompute.py b/docs/hel-892/resize-compare-document-evidence/recompute.py new file mode 100644 index 00000000..3018b9a3 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/recompute.py @@ -0,0 +1,330 @@ +"Actual ce9502a upgrade, one-row protection/rollback, frozen boundaries and packages." + +from __future__ import annotations + +import hashlib +import io +import json +import os +import sqlite3 +import subprocess +import sys +import tarfile +import tempfile +import zipfile +from pathlib import Path + +from build_definition import OUT, PATHS, REPO, canonical +from rebuild import BASE, RESOURCE, build_all + +sys.path.insert(0, str(REPO / "calliope-backend")) + + +def write(name, value): + (OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n") + + +def require_packages(): + dist = REPO / "calliope-backend/dist" + w = sorted(dist.glob("*.whl")) + s = sorted(dist.glob("*.tar.gz")) + if not w or not s: + raise SystemExit( + ( + "缺少wheel/sdist包产物,请先在仓库根执行:" + "uv build --project calliop" + "e-backend --offline" + ) + ) + return w[-1], s[-1] + + +def main(): + from calliope.comfyui.fixed_document import DEFINITIONS + from calliope.comfyui.library import rollback_batch + from scripts.audit_library_documents import audit + + wheels, sdists = require_packages() + from verify_sources import main as verify_sources + + verify_sources() + rebuilt, previous = build_all() + assert rebuilt == json.loads((REPO / RESOURCE).read_bytes()) + old_blocks = { + p: r["fixed_version_document"] for p, r in previous.items() if "fixed_version_document" in r + } + assert len(old_blocks) == 33 + assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items()) + assert sum(len(b["fields"]) for b in old_blocks.values()) == 1034 + for p, d in DEFINITIONS.items(): + assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d + write( + "review-delta.json", + dict( + base=BASE, + changed_paths=PATHS, + other_reviews_unchanged=155, + old_blocks_unchanged=33, + old_saved=1034, + old_notes=25, + new_saved=35, + new_notes=0, + total_documents=34, + total_saved=1069, + total_notes=25, + ), + ) + 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=35, + new_notes=0, + old_saved=1034, + old_notes=25, + overviews=34, + 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_thirty_three_blocks_unchanged=True, + drawer_css_unchanged=True, + drawer_whole_file_unchanged=True, + drawer_sha256=hashlib.sha256(drawer_bytes).hexdigest(), + conversion_rerun=False, + profiles_28_candidates_9_diffs_6="unchanged", + ), + ) + tracked = ( + subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO) + .decode() + .rstrip("\0") + .split("\0") + ) + frozen = [ + p + for p in tracked + if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/")) + or p.startswith("calliope-backend/src/calliope/comfyui/") + and p not in [RESOURCE, ("calliope-backend/src/calliope/comfyui/fixed_document.py")] + ] + for p in frozen: + assert (REPO / p).read_bytes() == subprocess.check_output( + ["git", "show", f"{BASE}:{p}"], cwd=REPO + ) + write( + "frozen-resource-check.json", + dict( + base=BASE, + files=[ + dict(path=p, sha256=hashlib.sha256((REPO / p).read_bytes()).hexdigest()) + for p in frozen + ], + original_files=sum(p.startswith("example_ComfyUI_workflows/") for p in frozen), + all_unchanged=True, + ), + ) + packages = [] + with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s: + for name in ["fixed_document.py", "source_reviews.json", "library.py"]: + raw = (REPO / "calliope-backend/src/calliope/comfyui" / name).read_bytes() + assert w.read("calliope/comfyui/" + name) == raw + member = next(n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name)) + assert s.extractfile(member).read() == raw + packages.append( + dict( + file=name, + sha256=hashlib.sha256(raw).hexdigest(), + wheel=True, + sdist=True, + definitions=34, + ) + ) + write("package-check.json", packages) + print( + "PASS actual ce9502a upgrade1/skip154, repe" + "at155, rollback1, edits1/29cols, fresh155," + " 1217/3660/294, 34 definitions, frozen bou" + "ndaries, wheel/sdist" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/render_report.py b/docs/hel-892/resize-compare-document-evidence/render_report.py new file mode 100644 index 00000000..cf66368d --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/render_report.py @@ -0,0 +1,121 @@ +"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 = [ + "# 图像放大比较固定参考中文说明", + "", + "新增35保存位置/0注释;旧33图1034位置+25注释逐对象不变,现34图1069+25仅参考。155定稿0/实跑0/新增转换0。", + "", + ( + "来源local_file以docs/hel-892/resize-compare-document" + "-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。" + ), + "", + ] + index = [] + for i in range(1): + b = json.loads((OUT / f"definition-{i}.json").read_bytes()) + lines += [ + "## " + Path(b["source_path"]).stem, + "", + b["user_overview"], + "", + b["notice"], + "", + "源路径:`" + b["source_path"] + "`", + "", + "SHA1:" + b["source_sha1"], + "", + "原字节SHA256:" + b["source_sha256"], + "", + "规范全图SHA256:" + b["canonical_sha256"], + "", + *[v + "\n" for v in b["versions"]], + "### 具体连线与处理条件", + "", + *[v + "\n" for v in b["flow"]], + "### 使用与核对", + "", + *[v + "\n" for v in b["steps"]], + "### 逐保存位置说明", + "", + ] + for j, f in enumerate(b["fields"], 1): + lines += [ + f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})", + "", + f["effect"], + "", + "```json", + json.dumps(f["value"], ensure_ascii=False, indent=2), + "```", + "", + f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。", + "", + "源保存位置:`" + f["pointer"] + "`;源输入口:`" + f["input_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']}" + ] + if "named_value" in f and f["named_value"] != f["value"]: + lines += [ + "具名保存完整形态(与位置列表分开保留):", + "", + "```json", + json.dumps(f["named_value"], ensure_ascii=False, indent=2), + "```", + "", + ] + lines += [""] + lines += ["### 零保存节点与源注释", ""] + for z in b["zero_saved_nodes"]: + lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""] + for n in b["comments"]: + lines += [ + "节点" + n["node_id"] + ",位置`" + n["pointer"] + "`", + "", + n["meaning"], + "", + "```text", + n["text"], + "```", + "", + ] + lines += ["### 固定原件索引", ""] + for k, e in enumerate(b["sources"]): + data = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(data).hexdigest() == e["sha256"] + lines += [ + f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;" + f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}", + "", + ] + index.append(dict(document=b["source_path"], **e)) + (OUT.parent / "图像放大比较固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n") + (OUT / "fixed-source-index.json").write_text( + json.dumps(index, ensure_ascii=False, indent=2) + "\n" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/repeat.py b/docs/hel-892/resize-compare-document-evidence/repeat.py new file mode 100644 index 00000000..74b8c89c --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/repeat.py @@ -0,0 +1,42 @@ +"Compare deterministic definitions and rendered artifacts without repeating unrelated tests." + +import hashlib +import json + +from build_definition import OUT, REPO, canonical +from rebuild import RESOURCE, build_all +from render_report import main as render + + +def main(): + a, old = build_all() + b, previous = build_all() + assert a == b and old == previous + assert a == json.loads((REPO / RESOURCE).read_bytes()) + render() + paths = [ + OUT / "fixed-source-index.json", + OUT.parent / "图像放大比较固定参考中文说明.md", + ] + before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths} + render() + assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths} + (OUT / "repeatability.json").write_text( + json.dumps( + dict( + definitions=34, + repeated_build_equal=True, + repeated_render_equal=True, + resource_sha256=hashlib.sha256(canonical(a)).hexdigest(), + artifacts=before, + ), + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + print(("PASS deterministic definitions and rendered artifacts: zero difference")) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/repeatability.json b/docs/hel-892/resize-compare-document-evidence/repeatability.json new file mode 100644 index 00000000..0f02ff32 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/repeatability.json @@ -0,0 +1,10 @@ +{ + "definitions": 34, + "repeated_build_equal": true, + "repeated_render_equal": true, + "resource_sha256": "f6f5ac49e04438a48f5db97a3f1fd658addb8665502b0111f02d73c18729c924", + "artifacts": { + "fixed-source-index.json": "4baa16c535c694eefaa6e242881602262b163369feb96e1656cb7b246e5e2030", + "图像放大比较固定参考中文说明.md": "12f803a7266ece6fda13fcb999fd363260435d6e45c8602f41d99f9aa4140835" + } +} diff --git a/docs/hel-892/resize-compare-document-evidence/request_counts.py b/docs/hel-892/resize-compare-document-evidence/request_counts.py new file mode 100644 index 00000000..beef1d25 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/request_counts.py @@ -0,0 +1,39 @@ +"Count actual local server GETs separately from browser intercepted requests." + +import collections +import json +import re +from pathlib import Path + +OUT = Path(__file__).resolve().parent + + +def main(): + text = (OUT / "service-0.txt").read_text() + gets = re.findall(r'"GET ([^ ]+) HTTP/', text) + polling = [p for p in gets if p in ["/api/jobs", "/api/events"]] + result = dict( + total=len(gets), + fixed_count=len(gets) - len(polling), + polling_count=len(polling), + paths=dict(collections.Counter(gets)), + readiness_included=1, + reason=( + "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET," + "服务日志只含真正到后端者,不机械等同。" + "轮询可随计时边界±1,禁止请求始终零容忍。" + ), + ) + browser = json.loads((OUT / "browser-results.json").read_bytes()) + assert browser["errors"] == [] + assert all(r["method"] == "GET" for r in browser["requests"]) + assert all(not p.startswith("/api/view") for p in gets) + assert abs(result["polling_count"] - browser["request_accounting"]["polling_count"]) <= 1 + (OUT / "server-request-accounting.json").write_text( + json.dumps(result, ensure_ascii=False, indent=2) + "\n" + ) + print(json.dumps(result, ensure_ascii=False)) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-document-evidence/review-delta.json b/docs/hel-892/resize-compare-document-evidence/review-delta.json new file mode 100644 index 00000000..3b789f58 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/review-delta.json @@ -0,0 +1,15 @@ +{ + "base": "ce9502af89dcc2b0047785e4425a95c010da2fec", + "changed_paths": [ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json" + ], + "other_reviews_unchanged": 155, + "old_blocks_unchanged": 33, + "old_saved": 1034, + "old_notes": 25, + "new_saved": 35, + "new_notes": 0, + "total_documents": 34, + "total_saved": 1069, + "total_notes": 25 +} diff --git a/docs/hel-892/resize-compare-document-evidence/ruff-initial.txt b/docs/hel-892/resize-compare-document-evidence/ruff-initial.txt new file mode 100644 index 00000000..c8f4dfd4 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/ruff-initial.txt @@ -0,0 +1,1156 @@ +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:43:98 + | +41 | assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] +42 | assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f +43 | for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + | ^ +44 | for i in f['evidence']: +45 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + | + +E501 Line too long (112 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:43:101 + | +41 | assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type'] +42 | assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f +43 | for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] + | ^^^^^^^^^^^^ +44 | for i in f['evidence']: +45 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:45:30 + | +43 | for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key] +44 | for i in f['evidence']: +45 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes() + | ^ +46 | assert hashlib.sha256(raw).hexdigest()==e['sha256'] +47 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:54:23 + | +52 | def test_each_position_or_description_forgery_refused(f,variant): +53 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +54 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged' + | ^ +55 | else: +56 | parent,_,key=f['pointer'].rpartition('/');pointer(s,parent)[int(key)]='forged' + | + +E501 Line too long (105 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:54:101 + | +52 | def test_each_position_or_description_forgery_refused(f,variant): +53 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +54 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged' + | ^^^^^ +55 | else: +56 | parent,_,key=f['pointer'].rpartition('/');pointer(s,parent)[int(key)]='forged' + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:56:50 + | +54 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged' +55 | else: +56 | parent,_,key=f['pointer'].rpartition('/');pointer(s,parent)[int(key)]='forged' + | ^ +57 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:64:23 + | +62 | def test_each_node_state_and_identity_is_bound(i,variant): +63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +64 | if variant=='mode':s['nodes'][i]['mode']=2 + | ^ +65 | else:s['nodes'][i]['properties']['ver']='forged' +66 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:65:9 + | +63 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +64 | if variant=='mode':s['nodes'][i]['mode']=2 +65 | else:s['nodes'][i]['properties']['ver']='forged' + | ^ +66 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:73:41 + | +71 | def test_all_physical_endpoints_bound(i,variant): +72 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +73 | eid,src,slot,dst,inp,_=s['links'][i];ns={n['id']:n for n in s['nodes']} + | ^ +74 | if variant=='record':s['links'][i][3]=99999 +75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:74:25 + | +72 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +73 | eid,src,slot,dst,inp,_=s['links'][i];ns={n['id']:n for n in s['nodes']} +74 | if variant=='record':s['links'][i][3]=99999 + | ^ +75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999 +76 | else:ns[src]['outputs'][slot]['links']=[] + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:75:26 + | +73 | eid,src,slot,dst,inp,_=s['links'][i];ns={n['id']:n for n in s['nodes']} +74 | if variant=='record':s['links'][i][3]=99999 +75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999 + | ^ +76 | else:ns[src]['outputs'][slot]['links']=[] +77 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:76:9 + | +74 | if variant=='record':s['links'][i][3]=99999 +75 | elif variant=='input':ns[dst]['inputs'][inp]['link']=99999 +76 | else:ns[src]['outputs'][slot]['links']=[] + | ^ +77 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:82:52 + | +80 | @pytest.mark.parametrize('variant',['named','frontend','mask','ue','empty_preview','missing','empty','path','source_sha','citation','o… +81 | def test_special_boundaries_cannot_be_retrusted(variant): +82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^ +83 | if variant=='named':ns[2]['widgets_values_named']={'width':480} +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:82:87 + | +80 | @pytest.mark.parametrize('variant',['named','frontend','mask','ue','empty_preview','missing','empty','path','source_sha','citation','o… +81 | def test_special_boundaries_cannot_be_retrusted(variant): +82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^ +83 | if variant=='named':ns[2]['widgets_values_named']={'width':480} +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' + | + +E501 Line too long (116 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:82:101 + | +80 | @pytest.mark.parametrize('variant',['named','frontend','mask','ue','empty_preview','missing','empty','path','source_sha','citation','o… +81 | def test_special_boundaries_cannot_be_retrusted(variant): +82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^^^^^^^^^^^^^^^^ +83 | if variant=='named':ns[2]['widgets_values_named']={'width':480} +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:83:24 + | +81 | def test_special_boundaries_cannot_be_retrusted(variant): +82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] +83 | if variant=='named':ns[2]['widgets_values_named']={'width':480} + | ^ +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' +85 | elif variant=='mask':ns[2]['outputs'].pop() + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:84:29 + | +82 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] +83 | if variant=='named':ns[2]['widgets_values_named']={'width':480} +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' + | ^ +85 | elif variant=='mask':ns[2]['outputs'].pop() +86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:85:25 + | +83 | if variant=='named':ns[2]['widgets_values_named']={'width':480} +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' +85 | elif variant=='mask':ns[2]['outputs'].pop() + | ^ +86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8' +87 | elif variant=='empty_preview':ns[3]['widgets_values']=None + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:86:23 + | +84 | elif variant=='frontend':s['extra']['frontendVersion']='1.45.20' +85 | elif variant=='mask':ns[2]['outputs'].pop() +86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8' + | ^ +87 | elif variant=='empty_preview':ns[3]['widgets_values']=None +88 | elif variant in ['missing','empty']: + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:87:34 + | +85 | elif variant=='mask':ns[2]['outputs'].pop() +86 | elif variant=='ue':ns[2]['properties']['ue_properties']['version']='7.8' +87 | elif variant=='empty_preview':ns[3]['widgets_values']=None + | ^ +88 | elif variant in ['missing','empty']: +89 | r['fixed_version_document']={} if variant=='empty' else None + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:90:56 + | +88 | elif variant in ['missing','empty']: +89 | r['fixed_version_document']={} if variant=='empty' else None +90 | assert not doc(s,r)['fixed_version']['matched'];return + | ^ +91 | elif variant=='path':b['source_path']='wrong' +92 | elif variant=='source_sha':r['source_sha']='wrong' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:91:25 + | +89 | r['fixed_version_document']={} if variant=='empty' else None +90 | assert not doc(s,r)['fixed_version']['matched'];return +91 | elif variant=='path':b['source_path']='wrong' + | ^ +92 | elif variant=='source_sha':r['source_sha']='wrong' +93 | elif variant=='citation':b['sources'][0]['sha256']='wrong' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:92:31 + | +90 | assert not doc(s,r)['fixed_version']['matched'];return +91 | elif variant=='path':b['source_path']='wrong' +92 | elif variant=='source_sha':r['source_sha']='wrong' + | ^ +93 | elif variant=='citation':b['sources'][0]['sha256']='wrong' +94 | else:b['user_overview']='wrong' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:93:29 + | +91 | elif variant=='path':b['source_path']='wrong' +92 | elif variant=='source_sha':r['source_sha']='wrong' +93 | elif variant=='citation':b['sources'][0]['sha256']='wrong' + | ^ +94 | else:b['user_overview']='wrong' +95 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:94:9 + | +92 | elif variant=='source_sha':r['source_sha']='wrong' +93 | elif variant=='citation':b['sources'][0]['sha256']='wrong' +94 | else:b['user_overview']='wrong' + | ^ +95 | refuse(s,r) + | + +E501 Line too long (126 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:101:101 + | + 99 | assert doc()['fixed_version']['matched'] +100 | assert len(SOURCE['nodes'])==17 and len(SOURCE['links'])==20 and 'definitions' not in SOURCE +101 | expected=[f'/nodes/{i}/widgets_values/{j}' for i,n in enumerate(SOURCE['nodes']) for j in range(len(n['widgets_values']))] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +102 | assert expected==[f['pointer'] for f in BLOCK['fields']] and len(expected)==35 +103 | ns={n['id']:n for n in SOURCE['nodes']} + | + +E501 Line too long (216 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:108:101 + | +106 | … +107 | … +108 | … [11,12]]==[(11,2,'width'),(12,2,'height'),(12,4,'height'),(12,5,'scale_by_length'),(12,7,'scale_to_length'),(11,4,'width')] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +109 | … +110 | … + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:117:53 + | +115 | def test_precise_static_branch_conditions_and_interface_conflict_without_execution(): +116 | ref=OUT.parent/'resize-compare-reference' +117 | kj=(ref/'kj__nodes__image_nodes.py').read_text();tree=ast.parse(kj) + | ^ +118 | node=next(x for x in tree.body if isinstance(x,ast.ClassDef) and x.name=='ImageResizeKJv2') +119 | return_types=next(x.value for x in node.body if isinstance(x,ast.Assign) and any(isinstance(t,ast.Name) and t.id=='RETURN_TYPES' … + | + +E501 Line too long (153 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:119:101 + | +117 | ….parse(kj) +118 | …ef) and x.name=='ImageResizeKJv2') +119 | …e(x,ast.Assign) and any(isinstance(t,ast.Name) and t.id=='RETURN_TYPES' for t in x.targets)) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +120 | …T') +121 | …tionDef) and x.name=='resize') + | + +E501 Line too long (110 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:126:101 + | +124 | restore=(ref/'layer__py__image_scale_restore_v2.py').read_text() +125 | assert 'if original_size is not None:' in restore and "if scale_by == 'longest':" in restore +126 | assert 'target_width = int(orig_width * scale)' in restore and "if scale_by == 'by_scale':" not in restore + | ^^^^^^^^^^ +127 | aspect=(ref/'layer__py__image_scale_by_aspect_ratio_v2.py').read_text() +128 | assert "elif scale_to_side == 'total_pixel(kilo pixel)':" in aspect + | + +E501 Line too long (106 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:135:100 + | +133 | assert fields['5','scale']['json_type']=='int' and fields['5','scale']['type']=='FLOAT' +134 | assert fields['7','round_to_multiple']['value']=='8' +135 | assert all('不' in fields[n,k]['effect'] for n,k in [('5','scale_by_length'),('7','scale_to_length')]) + | ^^^^^^ + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:141:42 + | +139 | p='calliope-backend/src/calliope/comfyui/source_reviews.json' +140 | old=json.loads(subprocess.check_output(['git','show','ce9502a:'+p],cwd=REPO)) +141 | now=json.loads((REPO/p).read_bytes());now[PATH].pop('fixed_version_document') + | ^ +142 | assert now==old and len(DEFINITIONS)==34 +143 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] + | + +E501 Line too long (122 > 100) + --> calliope-backend/tests/test_resize_compare_fixed_document.py:144:101 + | +142 | assert now==old and len(DEFINITIONS)==34 +143 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] +144 | assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25 + | ^^^^^^^^^^^^^^^^^^^^^^ + +E501 Line too long (120 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:11:72 + | + 9 | OUT = Path(__file__).resolve().parent +10 | REF = OUT.parent / 'resize-compare-reference' +11 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json'] + | ^^^^^^^^^^^^^^^^^^^^ + +E501 Line too long (130 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:26:101 + | +24 | def ref(key, file, first, last, claim): +25 | e = next(e for e in entries if e['id'] == key and e['file'] == file) +26 | refs.append({**e, 'local_file': '../resize-compare-reference/' + e['local_file'], 'lines': [first, last], 'claim': claim}) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +27 | return len(refs)-1 + | + +E501 Line too long (117 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:29:91 + | +27 | return len(refs)-1 +28 | +29 | image = ref('load', 'nodes.py', 1626, 1700, '准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得') + | ^^^^^^^^^^^^^^^^ +30 | scale = ref('core', 'nodes.py', 1778, 1806, '准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用') +31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符') + | + +E501 Line too long (118 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:30:90 + | +29 | image = ref('load', 'nodes.py', 1626, 1700, '准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得') +30 | scale = ref('core', 'nodes.py', 1778, 1806, '准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用') + | ^^^^^^^^^^^^^^^^^^ +31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符') +32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册') + | + +E501 Line too long (118 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:31:89 + | +29 | image = ref('load', 'nodes.py', 1626, 1700, '准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得') +30 | scale = ref('core', 'nodes.py', 1778, 1806, '准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用') +31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符') + | ^^^^^^^^^^^^^^^^^ +32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册') +33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本') + | + +E501 Line too long (104 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:33:86 + | +31 | preview = ref('core', 'nodes.py', 1561, 1628, 'PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符') +32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册') +33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本') + | ^^^^ +34 | util = ref('core','comfy/utils.py',858,900,'lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体') +35 | kj = ref('kj','nodes/image_nodes.py',2376,2502,'KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留') + | + +E501 Line too long (110 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:34:90 + | +32 | ref('core','nodes.py', 1957,1967,'准确核心节点注册') +33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本') +34 | util = ref('core','comfy/utils.py',858,900,'lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体') + | ^^^^^^^^^^ +35 | kj = ref('kj','nodes/image_nodes.py',2376,2502,'KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留') +36 | ref('kj','nodes/image_nodes.py',21,21,'KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知') + | + +E501 Line too long (112 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:35:86 + | +33 | maximum = ref('core','nodes.py',52,52,'MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本') +34 | util = ref('core','comfy/utils.py',858,900,'lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体') +35 | kj = ref('kj','nodes/image_nodes.py',2376,2502,'KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留') + | ^^^^^^^^^^^^ +36 | ref('kj','nodes/image_nodes.py',21,21,'KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知') +37 | ref('kj','__init__.py',75,85,'准确KJ ImageResizeKJv2注册') + | + +E501 Line too long (144 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:38:98 + | +36 | …TION来自运行宿主nodes,宿主版本未知') +37 | …注册') +38 | …,7,127,'准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +39 | …_v2.py',8,186,'准确AspectRatio schema、original/custom、None长度不采用、对齐及返回') +40 | …ox居中填色、crop居中裁剪、fill直接伸缩') + | + +E501 Line too long (140 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:39:98 + | +37 | …v2注册') +38 | …y',7,127,'准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回') +39 | …io_v2.py',8,186,'准确AspectRatio schema、original/custom、None长度不采用、对齐及返回') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +40 | …rbox居中填色、crop居中裁剪、fill直接伸缩') +41 | …,'向上取整到倍数;不同于KJ向下取整') + | + +E501 Line too long (123 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:43:91 + | +41 | rounding = ref('layer','py/imagefunc.py',1967,1973,'向上取整到倍数;不同于KJ向下取整') +42 | ref('layer','__init__.py',29,48,'LayerStyle包逐模块合并注册,未执行') +43 | impact = ref('impact','modules/impact/logics.py',239,255,'准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回') + | ^^^^^^^^^^^^^^^^^^^^^^^ +44 | ref('impact','__init__.py',48,48,'ImpactPack logics导入') +45 | ref('impact','__init__.py',259,259,'ImpactInt注册') + | + +E501 Line too long (125 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:46:90 + | +44 | ref('impact','__init__.py',48,48,'ImpactPack logics导入') +45 | ref('impact','__init__.py',259,259,'ImpactInt注册') +46 | display = ref('rgthree','py/display_any.py',6,50,'准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数') + | ^^^^^^^^^^^^^^^^^^^^^^^^ +47 | displayjs = ref('rgthree','web/comfyui/display_any.js',1,35,'只读output控件;serializeValue返回空字符串/onExecuted更新') +48 | ref('rgthree','py/constants.py',2,5,'Display Any (rgthree)准确命名') + | + +E501 Line too long (124 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:47:94 + | +45 | ref('impact','__init__.py',259,259,'ImpactInt注册') +46 | display = ref('rgthree','py/display_any.py',6,50,'准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数') +47 | displayjs = ref('rgthree','web/comfyui/display_any.js',1,35,'只读output控件;serializeValue返回空字符串/onExecuted更新') + | ^^^^^^^^^^^^^^^^^^^^^^^ +48 | ref('rgthree','py/constants.py',2,5,'Display Any (rgthree)准确命名') +49 | ref('rgthree','__init__.py',47,54,'DisplayAny准确注册') + | + +E501 Line too long (144 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:50:96 + | +48 | …three)准确命名') +49 | … ') +50 | …Node.ts',917,925,'仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +51 | …,972,984,'仅参考假设位置序列化;不证明目标实际恢复') +52 | …mage.ts',10,40,'仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数') + | + +E501 Line too long (137 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:52:93 + | +50 | …raphNode.ts',917,925,'仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本') +51 | ….ts',972,984,'仅参考假设位置序列化;不证明目标实际恢复') +52 | …oadImage.ts',10,40,'仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +53 | …'仅参考假设IMAGEUPLOAD控件构造入口') +54 | …e['file'].endswith('useImageUploadWidget.ts')) + | + +E501 Line too long (186 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:55:101 + | +53 | … 构造入口') +54 | …ageUploadWidget.ts')) +55 | …s if e['file']==uploadfile)).read_text().splitlines()),'仅参考假设上传控件行为;源保存image原样保留,未上传') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +56 | … +57 | …]) + | + +E501 Line too long (200 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:68:77 + | +66 | … +67 | … ','nearest-exact/bilinear/area/bicubic/lanczos','核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。',sc… +68 | … 算;两轴0直接返回','缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。',scale), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +69 | … 推算','缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。',scale), +70 | …ter','当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。',scale), + | + +E501 Line too long (167 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:69:80 + | +67 | …arest-exact','枚举','nearest-exact/bilinear/area/bicubic/lanczos','核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超… +68 | …tep1;0按另一轴推算;两轴0直接返回','缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。',scale), +69 | … step1;0按另一轴推算','缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。',scale), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +70 | … ','disabled/center','当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。',scale), +71 | … + | + +E501 Line too long (195 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:72:78 + | +70 | …enter','当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。',scale), +71 | … +72 | …,step1;资源上限另受下游约束','保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。',impact)], + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +73 | …ze,step1;不是内存或图像尺寸保证','保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当… +74 | … + | + +E501 Line too long (246 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:73:78 + | +71 | … +72 | … 限另受下游约束','保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。',impact)], +73 | … 内存或图像尺寸保证','保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。',impact)], + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +74 | … +75 | …0.3.65参考上限16384','缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。',kj), + | + +E501 Line too long (193 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:75:85 + | +73 | …size,step1;不是内存或图像尺寸保证','保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在… +74 | … +75 | …;宿主未知,core0.3.65参考上限16384','缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。',kj), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +76 | …1','缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。',kj), +77 | …枚举','nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos','保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载… + | + +E501 Line too long (154 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:76:88 + | +74 | … +75 | …X_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384','缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。',kj), +76 | …AX_RESOLUTION,step1','缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。',kj), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +77 | … 项nearest-exact','枚举','nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos','保存lanczos且device=cpu;经common_upscale的… +78 | … 枚举类型不一致);不改写为stretch','枚举','stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开','当前stretch直接按两轴伸缩… + | + +E501 Line too long (144 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:79:85 + | +77 | … 首选项nearest-exact','枚举','nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos','保存lanczos且device=cpu;经common_upsca… +78 | …se(与枚举类型不一致);不改写为stretch','枚举','stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开','当前stretch直接按两… +79 | …,'STRING;仅pad/pad_edge路径调用填边','保存黑色0, 0, 0,当前stretch不采用该颜色。',kj), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +80 | …,'center/top/bottom/left/right;仅crop分支','保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。',kj), +81 | …'INT 0~512,step1;>1向下取整,0/1不对齐','保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。',kj), + | + +E501 Line too long (185 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:81:82 + | +79 | …_edge路径调用填边','保存黑色0, 0, 0,当前stretch不采用该颜色。',kj), +80 | …/left/right;仅crop分支','保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。',kj), +81 | …1向下取整,0/1不对齐','保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。',kj), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +82 | … 枚举','cpu/gpu;gpu+lanczos主动抛错','保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。',kj), +83 | … + | + +E501 Line too long (193 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:85:86 + | +83 | … +84 | … +85 | …N为int1','当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。',restore), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +86 | …/bicubic/hamming/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore), +87 | …_scale/longest/shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使… + | + +E501 Line too long (180 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:86:84 + | +84 | … +85 | … 源JSON为int1','当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。',restore), +86 | …anczos/bicubic/hamming/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +87 | … ','by_scale/longest/shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空… +88 | …l模式为千像素','INT 4~99999999,step1;仅长度/面积分支采用','缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称… + | + +E501 Line too long (248 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:87:83 + | +85 | …y_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。',restore), +86 | …g/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore), +87 | …shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。',restore), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +88 | …~99999999,step1;仅长度/面积分支采用','缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。',restore), +89 | … + | + +E501 Line too long (230 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:88:83 + | +86 | …g/bilinear/box/nearest','保存lanczos,经PIL RGB resize;是否改善观感未知。',restore), +87 | …shortest/width/height/total_pixel(kilo pixel)','当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未… +88 | …~99999999,step1;仅长度/面积分支采用','缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。',restore), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +89 | … +90 | … + | + +E501 Line too long (150 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:92:85 + | +90 | … +91 | … 首项original','枚举','original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16','保存original从输入宽高取比例;不是custom的1:1。',aspect), +92 | … ','INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值计算目标比例。',aspect), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +93 | … ','INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值,不据两项1声称方图。',aspect), +94 | …erbox','枚举','letterbox/crop/fill','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit), + | + +E501 Line too long (158 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:93:85 + | +91 | … original','枚举','original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16','保存original从输入宽高取比例;不是custom的1:1。',aspect), +92 | …INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值计算目标比例。',aspect), +93 | …'INT 1~1e8,step1;仅custom读取','保存1,当前original不使用该值,不据两项1声称方图。',aspect), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +94 | …x','枚举','letterbox/crop/fill','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit), +95 | …','枚举','lanczos/bicubic/hamming/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect), + | + +E501 Line too long (183 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:95:84 + | +93 | … step1;仅custom读取','保存1,当前original不使用该值,不据两项1声称方图。',aspect), +94 | …etterbox/crop/fill','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit), +95 | …nczos/bicubic/hamming/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +96 | …','像素倍数枚举','8/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',r… +97 | …','枚举','None/longest/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随… + | + +E501 Line too long (218 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:96:76 + | +94 | …','letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。',fit), +95 | …ing/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect), +96 | …'8/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',rounding), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +97 | …gest/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及… +98 | … 4~1e8,step1;按scale_to_side分支读取','缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。',aspect), + | + +E501 Line too long (247 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:97:80 + | +95 | …g/bilinear/box/nearest','保存lanczos,供适配图片的PIL resize使用,不保证画质。',aspect), +96 | …/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',rounding), +97 | …st/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。',aspect), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +98 | …~1e8,step1;按scale_to_side分支读取','缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。',aspect), +99 | …颜色创建背景','保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。',fit), + | + +E501 Line too long (217 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:98:83 + | + 96 | …'8/16/32/64/128/256/512/None,全部字符串','源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。',rounding), + 97 | …gest/shortest/width/height/total_pixel(kilo pixel)','当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐… + 98 | … 4~1e8,step1;按scale_to_side分支读取','缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。',aspect), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 99 | …IL颜色创建背景','保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。',fit), +100 | … + | + +E501 Line too long (259 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:108:101 + | +106 | … +107 | … +108 | …gets_values',effect='源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。',evidence=[preview])) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +109 | … +110 | … + | + +E501 Line too long (310 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:113:87 + | +111 | … +112 | … +113 | … 出框;没有后端output输入','显示文本','只读前端STRING,序列化返回空字符串;不是实际宽高','节点'+str(n['id'])+'接'+src+'.'+dim+',当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。',displayjs)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +114 | … +115 | … + | + +E501 Line too long (104 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:117:101 + | +115 | for k,(name,label,default,unit,limits,effect,ev) in enumerate(specs): +116 | ptr=f'/nodes/{i}/widgets_values/{k}' +117 | inp=next((j for j,x in enumerate(n['inputs']) if x.get('widget',{}).get('name')==name),None) + | ^^^^ +118 | v=n['widgets_values'][k] +119 | field_type=n['inputs'][inp]['type'] if inp is not None else '前端STRING' + | + +E501 Line too long (813 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:121:101 + | +119 | … +120 | … +121 | …e,label=label,pointer=ptr,input_pointer=f'/nodes/{i}/inputs/{inp}' if inp is not None else ptr,value=v,json_type=type(v).__name__,type=field_type,role='frontend_control' if name in ['upload','output'] else 'linked_cache' if link is not None else 'scalar',schema_default=default,unit=unit,limits=limits,effect=effect,execution_note=f'节点{n["id"]}保存mode0;物理位置{ptr}。源无widgets_values_named,不制造具名保存值。'+(f'源输入边{link}覆盖该缓存;' if link is not None else '该控件无源输入边覆盖;')+'前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。',evidence=list(dict.fromkeys([ev,front]+([display] if name=='output' else [])+([util,maximum] if n['id'] in [2,4] else [])+([aspect] if n['id']==7 else []))))) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +122 | … +123 | … 节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。' + | + +E501 Line too long (219 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:128:84 + | +126 | …;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。', +127 | …t/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。', +128 | … 率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。', + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +129 | … 度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。', +130 | …rop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。', + | + +E501 Line too long (190 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:134:86 + | +132 | …显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。', +133 | … original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。', +134 | …s文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。', + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +135 | …与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVer… +136 | … 恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。', + | + +E501 Line too long (120 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:143:90 + | +141 | for key in ['impact','rgthree','frontend']: +142 | e=next(e for e in entries if e['id']==key) +143 | versions.append(key+'→'+e['commit']+(';Git绑定未知' if key!='frontend' else ';仅参考假设1.45.20,源前端未知')) + | ^^^^^^^^^^^^^^^^^^^^ +144 | return dict(source_path=PATHS[index],source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),cano… + | + +E501 Line too long (871 > 100) + --> docs/hel-892/resize-compare-document-evidence/build_definition.py:144:101 + | +142 | … +143 | … 设1.45.20,源前端未知')) +144 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice='仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。',user_overview=overview,versions=versions,counts=dict(saved_fields=35,source_nodes=17,physical_edges=20,source_notes=0,history_objects=0,linked_saved_fields=6,frontend_only=7,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=refs,comments=[],flow=flow,flow_evidence=list(range(len(refs))),zero_saved_nodes=zero,boundaries=[],steps=[overview,'操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。','操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。','操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。']) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:11:49 + | +10 | def main(): +11 | j=json.loads((REF/'sources.json').read_bytes());j['sources']=[e for e in j['sources'] if e['id']!='frontend'] + | ^ +12 | old=json.loads((OLD/'sources.json').read_bytes())['sources'] +13 | for e in old: + | + +E501 Line too long (110 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:11:101 + | +10 | def main(): +11 | j=json.loads((REF/'sources.json').read_bytes());j['sources']=[e for e in j['sources'] if e['id']!='frontend'] + | ^^^^^^^^^^ +12 | old=json.loads((OLD/'sources.json').read_bytes())['sources'] +13 | for e in old: + | + +E501 Line too long (154 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:14:101 + | +12 | … +13 | … +14 | …/src/LGraphNode.ts','src/scripts/widgets.ts','src/extensions/core/uploadImage.ts','LICENSE']: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15 | …e/'+e['local_file'],'identity_binding':'reference hypothesis v1.45.20 only; source frontendVersion absent'}) +16 | …mit=tree['sha'] + | + +E501 Line too long (169 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:15:101 + | +13 | … +14 | …raphNode.ts','src/scripts/widgets.ts','src/extensions/core/uploadImage.ts','LICENSE']: +15 | …local_file'],'identity_binding':'reference hypothesis v1.45.20 only; source frontendVersion absent'}) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16 | …e['sha'] +17 | …ImageUploadWidget.ts']: + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:16:58 + | +14 | if e['id']=='frontend' and e['file'] in ['src/lib/litegraph/src/LGraphNode.ts','src/scripts/widgets.ts','src/extensions/core/uploadI… +15 | j['sources'].append({**e,'local_file':'../seedvr2-reference/'+e['local_file'],'identity_binding':'reference hypothesis v1.45.20 onl… +16 | tree=json.loads((OLD/'frontend-tree.json').read_bytes());commit=tree['sha'] + | ^ +17 | for f in ['src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts']: +18 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/{commit}/{f}' + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:19:51 + | +17 | for f in ['src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts']: +18 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/{commit}/{f}' +19 | with urllib.request.urlopen(url,timeout=30) as r: b=r.read() + | ^ +20 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest() +21 | assert blob==next(e['sha'] for e in tree['tree'] if e['path']==f) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:22:40 + | +20 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest() +21 | assert blob==next(e['sha'] for e in tree['tree'] if e['path']==f) +22 | name='frontend__'+f.replace('/','__');(REF/name).write_bytes(b) + | ^ +23 | j['sources'].append(dict(id='frontend',file=f,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sh… +24 | (REF/'sources.json').write_text(json.dumps(j,ensure_ascii=False,indent=2)+'\n') + | + +E501 Line too long (228 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:23:101 + | +21 | … +22 | … +23 | …shlib.sha256(b).hexdigest(),git_blob_sha1=blob,identity_binding='reference hypothesis v1.45.20 only; source frontendVersion absent')) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +24 | … +25 | … + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:25:24 + | +23 | j['sources'].append(dict(id='frontend',file=f,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sh… +24 | (REF/'sources.json').write_text(json.dumps(j,ensure_ascii=False,indent=2)+'\n') +25 | if __name__=='__main__': main() + | ^ + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:16:67 + | +14 | for key in ['impact','rgthree']: +15 | meta=json.loads((REF/f'{key}-registry.json').read_bytes()) +16 | with urllib.request.urlopen(meta['downloadUrl'],timeout=40) as r: raw=r.read(15000001) + | ^ +17 | assert len(raw)<15000000 +18 | (REF/f'{key}-source.zip').write_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:21:22 + | +19 | sha=hashlib.sha256(raw).hexdigest() +20 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +21 | names=z.namelist();(REF/f'{key}-members.json').write_text(json.dumps(names,indent=2)+'\n') + | ^ +22 | wanted=(['__init__.py','modules/impact/logics.py','LICENSE.txt','LICENSE'] if key=='impact' else ['__init__.py','py/display_any.py'… +23 | for f in wanted: + | + +E501 Line too long (207 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:22:101 + | +20 | … +21 | …+'\n') +22 | …impact' else ['__init__.py','py/display_any.py','py/constants.py','web/comfyui/display_any.js','py/utils.py','LICENSE']) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23 | … +24 | … + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:24:22 + | +22 | wanted=(['__init__.py','modules/impact/logics.py','LICENSE.txt','LICENSE'] if key=='impact' else ['__init__.py','py/display_any.py'… +23 | for f in wanted: +24 | if f not in names: continue + | ^ +25 | b=z.read(f);name=key+'__'+f.replace('/','__');(REF/name).write_bytes(b) +26 | entries.append(dict(id=key,file=f,local_file=name,url=meta['downloadUrl'],commit='发布包SHA256:'+sha,git_commit_binding='unknown',… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:25:16 + | +23 | for f in wanted: +24 | if f not in names: continue +25 | b=z.read(f);name=key+'__'+f.replace('/','__');(REF/name).write_bytes(b) + | ^ +26 | entries.append(dict(id=key,file=f,local_file=name,url=meta['downloadUrl'],commit='发布包SHA256:'+sha,git_commit_binding='unknown',… +27 | print(key,'SHA256',sha,'selected',[e['file'] for e in entries if e['id']==key]) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:25:50 + | +23 | for f in wanted: +24 | if f not in names: continue +25 | b=z.read(f);name=key+'__'+f.replace('/','__');(REF/name).write_bytes(b) + | ^ +26 | entries.append(dict(id=key,file=f,local_file=name,url=meta['downloadUrl'],commit='发布包SHA256:'+sha,git_commit_binding='unknown',… +27 | print(key,'SHA256',sha,'selected',[e['file'] for e in entries if e['id']==key]) + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/fetch_packages.py:30:24 + | +28 | (REF/'sources.json').write_text(json.dumps(dict(sources=entries),ensure_ascii=False,indent=2)+'\n') +29 | +30 | if __name__=='__main__': main() + | ^ + +E501 Line too long (101 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:11:101 + | + 9 | SPECS = { +10 | 'load': ('Comfy-Org/ComfyUI', 'v0.3.50', ['nodes.py','folder_paths.py','LICENSE']), +11 | 'core': ('Comfy-Org/ComfyUI', 'v0.3.65', ['nodes.py','comfy/utils.py','folder_paths.py','LICENSE']), + | ^ +12 | 'kj': ('kijai/ComfyUI-KJNodes','f7eb33abc80a2aded1b46dff0dd14d07856a7d50',['__init__.py','nodes/image_nodes.py','LICENSE']), +13 | 'layer': ('chflame163/ComfyUI_LayerStyle','89014d833d2ad0998d724090eff1456692692a1d',['__init__.py','py/image_scale_restore_v2.py','p… + | + +E501 Line too long (125 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:12:101 + | +10 | 'load': ('Comfy-Org/ComfyUI', 'v0.3.50', ['nodes.py','folder_paths.py','LICENSE']), +11 | 'core': ('Comfy-Org/ComfyUI', 'v0.3.65', ['nodes.py','comfy/utils.py','folder_paths.py','LICENSE']), +12 | 'kj': ('kijai/ComfyUI-KJNodes','f7eb33abc80a2aded1b46dff0dd14d07856a7d50',['__init__.py','nodes/image_nodes.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | 'layer': ('chflame163/ComfyUI_LayerStyle','89014d833d2ad0998d724090eff1456692692a1d',['__init__.py','py/image_scale_restore_v2.py','p… +14 | } + | + +E501 Line too long (201 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:13:101 + | +11 | ….py','LICENSE']), +12 | …_.py','nodes/image_nodes.py','LICENSE']), +13 | …',['__init__.py','py/image_scale_restore_v2.py','py/image_scale_by_aspect_ratio_v2.py','py/imagefunc.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +14 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:29:21 + | +27 | obj=json.loads(b)['object'] +28 | if obj['type']=='tag': +29 | b=get(obj['url']);(REF/f'{key}-tag-object.json').write_bytes(b);obj=json.loads(b)['object'] + | ^ +30 | rev=obj['sha'] +31 | b=get(f'https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1') + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:29:67 + | +27 | obj=json.loads(b)['object'] +28 | if obj['type']=='tag': +29 | b=get(obj['url']);(REF/f'{key}-tag-object.json').write_bytes(b);obj=json.loads(b)['object'] + | ^ +30 | rev=obj['sha'] +31 | b=get(f'https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1') + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:33:17 + | +31 | b=get(f'https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1') +32 | (REF/f'{key}-tree.json').write_bytes(b) +33 | t=json.loads(b);assert t['sha']==rev and not t['truncated'] + | ^ +34 | entries=[] +35 | for file in files: + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:38:13 + | +36 | blob=next(x['sha'] for x in t['tree'] if x['path']==file) +37 | url=f'https://raw.githubusercontent.com/{repo}/{rev}/{file}' +38 | b=get(url); assert hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest()==blob + | ^ +39 | name=key+'__'+file.replace('/','__');(REF/name).write_bytes(b) +40 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=rev,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:39:39 + | +37 | url=f'https://raw.githubusercontent.com/{repo}/{rev}/{file}' +38 | b=get(url); assert hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest()==blob +39 | name=key+'__'+file.replace('/','__');(REF/name).write_bytes(b) + | ^ +40 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=rev,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)) +41 | return dict(id=key,repo=repo,commit=rev),entries + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:44:48 + | +43 | if __name__=='__main__': +44 | with ThreadPoolExecutor(max_workers=4) as pool: rows=list(pool.map(one,SPECS.items())) + | ^ +45 | (REF/'identities.json').write_text(json.dumps([r[0] for r in rows],indent=2)+'\n') +46 | (REF/'sources.json').write_text(json.dumps(dict(sources=[e for r in rows for e in r[1]]),indent=2)+'\n') + | + +E501 Line too long (105 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:46:101 + | +44 | with ThreadPoolExecutor(max_workers=4) as pool: rows=list(pool.map(one,SPECS.items())) +45 | (REF/'identities.json').write_text(json.dumps([r[0] for r in rows],indent=2)+'\n') +46 | (REF/'sources.json').write_text(json.dumps(dict(sources=[e for r in rows for e in r[1]]),indent=2)+'\n') + | ^^^^^ +47 | # Accurate registry release metadata; package Git bindings are not inferred. +48 | for key,node,version in [('impact','comfyui-impact-pack','8.25.1'),('rgthree','rgthree-comfy','1.0.2510052058')]: + | + +E501 Line too long (114 > 100) + --> docs/hel-892/resize-compare-document-evidence/fetch_sources.py:48:101 + | +46 | (REF/'sources.json').write_text(json.dumps(dict(sources=[e for r in rows for e in r[1]]),indent=2)+'\n') +47 | # Accurate registry release metadata; package Git bindings are not inferred. +48 | for key,node,version in [('impact','comfyui-impact-pack','8.25.1'),('rgthree','rgthree-comfy','1.0.2510052058')]: + | ^^^^^^^^^^^^^^ +49 | b=get(f'https://api.comfy.org/nodes/{node}/versions/{version}') +50 | (REF/f'{key}-registry.json').write_bytes(b) + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:20:47 + | +18 | assert hashlib.sha256(archive.read_bytes()).hexdigest()==e['package_sha256'] +19 | assert e['git_commit_binding']=='unknown' +20 | with zipfile.ZipFile(archive) as z: assert z.read(e['file'])==raw + | ^ +21 | else: +22 | root=REF.parent/'seedvr2-reference' if e['id']=='frontend' else REF + | + +E501 Line too long (168 > 100) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:25:101 + | +23 | …()) +24 | …] +25 | …'+raw).hexdigest()==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file']) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +26 | … +27 | … + | + +E501 Line too long (121 > 100) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:31:101 + | +29 | assert obj['type']=='commit' and obj['sha']==e['commit'] +30 | g=json.loads((REPO/b['source_path']).read_bytes()) +31 | expected=[f'/nodes/{i}/widgets_values/{j}' for i,n in enumerate(g['nodes']) for j in range(len(n['widgets_values']))] + | ^^^^^^^^^^^^^^^^^^^^^ +32 | assert expected==[f['pointer'] for f in b['fields']] and len(expected)==35 +33 | assert len(g['nodes'])==17 and len(g['links'])==20 and 'definitions' not in g + | + +E501 Line too long (401 > 100) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:36:101 + | +34 | … +35 | … +36 | …ions=len(b['sources']),texts=len({e['local_file'] …ted=False),ensure_ascii=False,indent=2)+'\n') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +37 | …nventory') + | + +E501 Line too long (105 > 100) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:37:101 + | +35 | assert 'frontendVersion' not in g['extra'] and not b['comments'] +36 | (OUT/'source-check.json').write_text(json.dumps(dict(all_pass=True,commits=identities,citations=len(b['sources']),texts=len({e['lo… +37 | print('PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory') + | ^^^^^ +38 | +39 | if __name__=='__main__': main() + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/resize-compare-document-evidence/verify_sources.py:39:24 + | +37 | print('PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory') +38 | +39 | if __name__=='__main__': main() + | ^ + +Found 108 errors. diff --git a/docs/hel-892/resize-compare-document-evidence/server-request-accounting.json b/docs/hel-892/resize-compare-document-evidence/server-request-accounting.json new file mode 100644 index 00000000..f5e0bce7 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/server-request-accounting.json @@ -0,0 +1,48 @@ +{ + "total": 120, + "fixed_count": 110, + "polling_count": 10, + "paths": { + "/api/workflows": 3, + "/api/workflows/33": 4, + "/api/workflows/31": 4, + "/api/workflows/29": 3, + "/api/workflows/28": 3, + "/api/workflows/27": 3, + "/api/workflows/26": 3, + "/api/workflows/17": 3, + "/api/workflows/4": 3, + "/api/workflows/15": 3, + "/api/workflows/11": 3, + "/api/workflows/3": 3, + "/api/workflows/9": 3, + "/api/workflows/16": 3, + "/api/workflows/10": 3, + "/api/workflows/23": 3, + "/api/workflows/8": 3, + "/api/workflows/22": 3, + "/api/workflows/5": 3, + "/api/workflows/6": 3, + "/api/workflows/7": 3, + "/api/workflows/19": 3, + "/api/workflows/13": 3, + "/api/workflows/12": 3, + "/api/workflows/64": 3, + "/api/workflows/62": 3, + "/api/workflows/70": 3, + "/api/workflows/1": 3, + "/api/workflows/36": 3, + "/api/workflows/35": 3, + "/api/workflows/2": 3, + "/api/workflows/25": 3, + "/api/workflows/24": 3, + "/api/workflows/21": 3, + "/api/workflows/14": 3, + "/api/jobs": 10, + "/api/settings": 1, + "/api/workflows/156": 1, + "/api/workflows/157": 1 + }, + "readiness_included": 1, + "reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。" +} diff --git a/docs/hel-892/resize-compare-document-evidence/service-0.txt b/docs/hel-892/resize-compare-document-evidence/service-0.txt new file mode 100644 index 00000000..c76b1ca9 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/service-0.txt @@ -0,0 +1,129 @@ +INFO: Started server process [765521] +INFO: Waiting for application startup. +INFO: Application startup complete. +INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit) +{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}} +INFO: 127.0.0.1:60380 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/33 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/31 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/29 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/28 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/27 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/26 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60404 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:60396 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39916 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:39904 - "GET /api/settings HTTP/1.1" 200 OK +INFO: 127.0.0.1:39922 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:39930 - "GET /api/workflows/33 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39940 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:39956 - "GET /api/workflows/31 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39970 - "GET /api/workflows/29 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39982 - "GET /api/workflows/28 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39984 - "GET /api/workflows/27 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39998 - "GET /api/workflows/26 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40004 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40016 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40018 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40022 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40028 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40036 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40040 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:40056 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37288 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37304 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37308 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:37322 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37332 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37334 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37340 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37350 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37354 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37370 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37382 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37398 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37406 - "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:37422 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37426 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37430 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37434 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37436 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37448 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37458 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37472 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37480 - "GET /api/workflows/33 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37494 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:37502 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:50666 - "GET /api/workflows/31 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50678 - "GET /api/workflows/29 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50682 - "GET /api/workflows/28 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50686 - "GET /api/workflows/27 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50700 - "GET /api/workflows/26 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50704 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50718 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50734 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50738 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50744 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50750 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50760 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50764 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50772 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50788 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50790 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:50800 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50810 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50822 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50830 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:50838 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50846 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:50856 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47480 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47486 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47494 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47504 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47514 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47528 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47530 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47532 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47546 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47558 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47574 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47582 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47598 - "GET /api/workflows/156 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47606 - "GET /api/workflows/157 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47614 - "GET /api/workflows/31 HTTP/1.1" 200 OK +INFO: 127.0.0.1:47618 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:47624 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:47628 - "GET /api/workflows/33 HTTP/1.1" 200 OK +INFO: Shutting down +INFO: Waiting for application shutdown. +INFO: Application shutdown complete. +INFO: Finished server process [765521] diff --git a/docs/hel-892/resize-compare-document-evidence/service-stop.json b/docs/hel-892/resize-compare-document-evidence/service-stop.json new file mode 100644 index 00000000..ddd36fda --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/service-stop.json @@ -0,0 +1 @@ +{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]} diff --git a/docs/hel-892/resize-compare-document-evidence/source-check.json b/docs/hel-892/resize-compare-document-evidence/source-check.json new file mode 100644 index 00000000..a72dd81d --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/source-check.json @@ -0,0 +1,17 @@ +{ + "all_pass": true, + "commits": { + "load": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "core": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "kj": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "layer": "89014d833d2ad0998d724090eff1456692692a1d" + }, + "citations": 34, + "texts": 26, + "saved_positions": 35, + "source_notes": 0, + "local_file_base": "docs/hel-892/resize-compare-document-evidence", + "package_git_binding": "unknown", + "frontend": "1.45.20 reference hypothesis only; source/host unknown", + "upstream_executed": false +} diff --git a/docs/hel-892/resize-compare-document-evidence/validation-commands.txt b/docs/hel-892/resize-compare-document-evidence/validation-commands.txt new file mode 100644 index 00000000..6d51b8f5 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/validation-commands.txt @@ -0,0 +1,20 @@ +# From repo root. Locked existing dependencies only; no upstream code execution. +PYTHONDONTWRITEBYTECODE=1 uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline +npm ci --prefix calliope-web --ignore-scripts --offline +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/verify_sources.py +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/rebuild.py +PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_resize_compare_fixed_document.py calliope-backend/tests/test_workflow_library.py -q +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/check_code.py +PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline +PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/resize-compare-document-evidence/recompute.py +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/repeat.py +PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-resize-compare-document.py +# Foreground browser finally stops both owned services and verifies ports 8247/5173. +# Copy browser-results.json/service-stop.json/service-0.log (as .txt) to this evidence dir. +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/request_counts.py +# Optional exact static source retrieval only, in this order: fetch_sources.py, fetch_packages.py, fetch_frontend.py. +# No package installation or source/plugin/media execution. Frontend1.45.20 only explicit reference hypothesis. +# local_file base docs/hel-892/resize-compare-document-evidence; see fixed-source-index.json. +# Old code baseline ce9502af89dcc2b0047785e4425a95c010da2fec. +# Source review, actual doc, import-protection.json, package-check.json, boundaries.json, repeatability.json are independent evidence. +# Screenshot files are only local and in delivery attachments, never committed. diff --git a/docs/hel-892/resize-compare-document-evidence/verify_sources.py b/docs/hel-892/resize-compare-document-evidence/verify_sources.py new file mode 100644 index 00000000..54624286 --- /dev/null +++ b/docs/hel-892/resize-compare-document-evidence/verify_sources.py @@ -0,0 +1,74 @@ +"""Offline byte, release, Git, citation and independent pointer inventory checks.""" + +import hashlib +import json +import zipfile + +from build_definition import OUT, REF, REPO, build + + +def main(): + b = build() + identities = {e["id"]: e["commit"] for e in json.loads((REF / "identities.json").read_bytes())} + for e in b["sources"]: + raw = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines()), e + if "package_sha256" in e: + archive = REF / (e["id"] + "-source.zip") + assert hashlib.sha256(archive.read_bytes()).hexdigest() == e["package_sha256"] + assert e["git_commit_binding"] == "unknown" + with zipfile.ZipFile(archive) as z: + assert z.read(e["file"]) == raw + else: + root = REF.parent / "seedvr2-reference" if e["id"] == "frontend" else REF + tree = json.loads((root / (e["id"] + "-tree.json")).read_bytes()) + assert tree["sha"] == e["commit"] and not tree["truncated"] + assert ( + hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() + == e["git_blob_sha1"] + == next(x["sha"] for x in tree["tree"] if x["path"] == e["file"]) + ) + tag = root / (e["id"] + "-tag.json") + if tag.exists(): + obj = json.loads(tag.read_bytes())["object"] + assert obj["type"] == "commit" and obj["sha"] == e["commit"] + g = json.loads((REPO / b["source_path"]).read_bytes()) + expected = [ + f"/nodes/{i}/widgets_values/{j}" + for i, n in enumerate(g["nodes"]) + for j in range(len(n["widgets_values"])) + ] + assert expected == [f["pointer"] for f in b["fields"]] and len(expected) == 35 + assert len(g["nodes"]) == 17 and len(g["links"]) == 20 and "definitions" not in g + assert all(n["mode"] == 0 and "widgets_values_named" not in n for n in g["nodes"]) + assert "frontendVersion" not in g["extra"] and not b["comments"] + (OUT / "source-check.json").write_text( + json.dumps( + dict( + all_pass=True, + commits=identities, + citations=len(b["sources"]), + texts=len({e["local_file"] for e in b["sources"]}), + saved_positions=35, + source_notes=0, + local_file_base=str(OUT.relative_to(REPO)), + package_git_binding="unknown", + frontend="1.45.20 reference hypothesis only; source/host unknown", + upstream_executed=False, + ), + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + print( + ( + "PASS exact bytes, source identities, release has" + "hes, Git blobs, citations and 35/0 inventory" + ) + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/resize-compare-reference/core-tag.json b/docs/hel-892/resize-compare-reference/core-tag.json new file mode 100644 index 00000000..2d32a8b8 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/core-tag.json @@ -0,0 +1 @@ +{"ref":"refs/tags/v0.3.65","node_id":"REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMy42NQ","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.3.65","object":{"sha":"51696e3fdcdfad657cb15854345fbcbbe70eef8d","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/51696e3fdcdfad657cb15854345fbcbbe70eef8d"}} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/core-tree.json b/docs/hel-892/resize-compare-reference/core-tree.json new file mode 100644 index 00000000..29188346 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/core-tree.json @@ -0,0 +1 @@ +{"sha":"51696e3fdcdfad657cb15854345fbcbbe70eef8d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/51696e3fdcdfad657cb15854345fbcbbe70eef8d","tree":[{"path":".ci","mode":"040000","type":"tree","sha":"4ff1e920cb010ba3b60918636e544dc5a28d6ce1","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/4ff1e920cb010ba3b60918636e544dc5a28d6ce1"},{"path":".ci/update_windows","mode":"040000","type":"tree","sha":"8daacd337e84c252ce0eafff0b31a5b6dca7f4ab","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8daacd337e84c252ce0eafff0b31a5b6dca7f4ab"},{"path":".ci/update_windows/update.py","mode":"100755","type":"blob","sha":"51a263203d82b78e2dcc04ea83031d050961fc80","size":5392,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/51a263203d82b78e2dcc04ea83031d050961fc80"},{"path":".ci/update_windows/update_comfyui.bat","mode":"100755","type":"blob","sha":"bb08c0de0c7bfcf7cdecfda45edc72805bc3adea","size":276,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb08c0de0c7bfcf7cdecfda45edc72805bc3adea"},{"path":".ci/update_windows/update_comfyui_stable.bat","mode":"100755","type":"blob","sha":"e18010da39d37b063f44ec811340c43d4739e874","size":294,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e18010da39d37b063f44ec811340c43d4739e874"},{"path":".ci/windows_amd_base_files","mode":"040000","type":"tree","sha":"f1d129f4777cc484133f0b94f18f4c7ebeaab806","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f1d129f4777cc484133f0b94f18f4c7ebeaab806"},{"path":".ci/windows_amd_base_files/README_VERY_IMPORTANT.txt","mode":"100755","type":"blob","sha":"96a500be24794ae51f8d75bb457afdf3afa0b28c","size":966,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/96a500be24794ae51f8d75bb457afdf3afa0b28c"},{"path":".ci/windows_amd_base_files/run_amd_gpu.bat","mode":"100755","type":"blob","sha":"274d7c9486e0ee182ef8fbe16d34ca95e05e90ec","size":82,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/274d7c9486e0ee182ef8fbe16d34ca95e05e90ec"},{"path":".ci/windows_amd_base_files/run_amd_gpu_disable_smart_memory.bat","mode":"100755","type":"blob","sha":"cece0aeb20b542e103b4b529944e676059d4c0ac","size":105,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cece0aeb20b542e103b4b529944e676059d4c0ac"},{"path":".ci/windows_nightly_base_files","mode":"040000","type":"tree","sha":"2e16c04c3a204c65c0e70e643a69d3223525ef52","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2e16c04c3a204c65c0e70e643a69d3223525ef52"},{"path":".ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat","mode":"100644","type":"blob","sha":"ca6d6868af4e19fb9ee764241030451d0d15f42d","size":89,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca6d6868af4e19fb9ee764241030451d0d15f42d"},{"path":".ci/windows_nvidia_base_files","mode":"040000","type":"tree","sha":"1d139af8cc62285d408f9c9f9fd48d4ba362c6ca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1d139af8cc62285d408f9c9f9fd48d4ba362c6ca"},{"path":".ci/windows_nvidia_base_files/README_VERY_IMPORTANT.txt","mode":"100755","type":"blob","sha":"8ab70c8905b4a240d51b43c835747b5c0dcf9ef9","size":1030,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8ab70c8905b4a240d51b43c835747b5c0dcf9ef9"},{"path":".ci/windows_nvidia_base_files/run_cpu.bat","mode":"100755","type":"blob","sha":"c3ba4172161a996b0187dd981286c521bcc65846","size":88,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3ba4172161a996b0187dd981286c521bcc65846"},{"path":".ci/windows_nvidia_base_files/run_nvidia_gpu.bat","mode":"100755","type":"blob","sha":"274d7c9486e0ee182ef8fbe16d34ca95e05e90ec","size":82,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/274d7c9486e0ee182ef8fbe16d34ca95e05e90ec"},{"path":".ci/windows_nvidia_base_files/run_nvidia_gpu_fast_fp16_accumulation.bat","mode":"100644","type":"blob","sha":"38f06ecb2418b05c4b0e88de0711801c22bcb31b","size":107,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/38f06ecb2418b05c4b0e88de0711801c22bcb31b"},{"path":".gitattributes","mode":"100644","type":"blob","sha":"5b3c15bb47c2fec4ac06b90249da3993c192090e","size":112,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5b3c15bb47c2fec4ac06b90249da3993c192090e"},{"path":".github","mode":"040000","type":"tree","sha":"c6abddfc60db85c1105655f6c3c6c8f747cc3296","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c6abddfc60db85c1105655f6c3c6c8f747cc3296"},{"path":".github/ISSUE_TEMPLATE","mode":"040000","type":"tree","sha":"df71f04529a21ed40654381d7635c039b2e1411b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/df71f04529a21ed40654381d7635c039b2e1411b"},{"path":".github/ISSUE_TEMPLATE/bug-report.yml","mode":"100644","type":"blob","sha":"3cf2717b75fa8fc98048a5ea5d6e8dd1d8980cd9","size":2747,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3cf2717b75fa8fc98048a5ea5d6e8dd1d8980cd9"},{"path":".github/ISSUE_TEMPLATE/config.yml","mode":"100644","type":"blob","sha":"09fea712edc0df7bada8c850abde6370cbf35719","size":689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/09fea712edc0df7bada8c850abde6370cbf35719"},{"path":".github/ISSUE_TEMPLATE/feature-request.yml","mode":"100644","type":"blob","sha":"419721b63b4c0df62989862ea12cf2274d5788d7","size":1584,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/419721b63b4c0df62989862ea12cf2274d5788d7"},{"path":".github/ISSUE_TEMPLATE/user-support.yml","mode":"100644","type":"blob","sha":"281661f92633fc5e5cc01eac4b3ac6dc2ce99677","size":1988,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/281661f92633fc5e5cc01eac4b3ac6dc2ce99677"},{"path":".github/workflows","mode":"040000","type":"tree","sha":"9f6492e0200ebec8cf60f9d9605becf7f662cd88","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9f6492e0200ebec8cf60f9d9605becf7f662cd88"},{"path":".github/workflows/check-line-endings.yml","mode":"100644","type":"blob","sha":"eeb594d6cd39a60ca6f1808b7e2bb7af3056842c","size":1235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eeb594d6cd39a60ca6f1808b7e2bb7af3056842c"},{"path":".github/workflows/pullrequest-ci-run.yml","mode":"100644","type":"blob","sha":"a2a4b265c9847f7d46f7625f68f86abb5dbda304","size":1937,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2a4b265c9847f7d46f7625f68f86abb5dbda304"},{"path":".github/workflows/release-stable-all.yml","mode":"100644","type":"blob","sha":"5c102459982f7f529a02e233093ae1e16cbcdae2","size":1448,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5c102459982f7f529a02e233093ae1e16cbcdae2"},{"path":".github/workflows/release-webhook.yml","mode":"100644","type":"blob","sha":"6fceb7560ecf11120e91e966a8c1420a37ded379","size":5327,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6fceb7560ecf11120e91e966a8c1420a37ded379"},{"path":".github/workflows/ruff.yml","mode":"100644","type":"blob","sha":"b24d86a6ba55b1f7b90539d6267a72afa5a7b73c","size":973,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b24d86a6ba55b1f7b90539d6267a72afa5a7b73c"},{"path":".github/workflows/stable-release.yml","mode":"100644","type":"blob","sha":"28484a9d1e726727e63ef7744f1b410a4f06e77d","size":5360,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28484a9d1e726727e63ef7744f1b410a4f06e77d"},{"path":".github/workflows/stale-issues.yml","mode":"100644","type":"blob","sha":"0459960706dccca86452bc82804dc79b8bcadeda","size":691,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0459960706dccca86452bc82804dc79b8bcadeda"},{"path":".github/workflows/test-build.yml","mode":"100644","type":"blob","sha":"419873ad88ac8150ffddd4980cd701e672adc523","size":764,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/419873ad88ac8150ffddd4980cd701e672adc523"},{"path":".github/workflows/test-ci.yml","mode":"100644","type":"blob","sha":"418dca0ab75e8ebeee27969fb86919357328dd3d","size":3033,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/418dca0ab75e8ebeee27969fb86919357328dd3d"},{"path":".github/workflows/test-execution.yml","mode":"100644","type":"blob","sha":"00ef07ebf64a4df2b0140f8135f2b22988d12e07","size":815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00ef07ebf64a4df2b0140f8135f2b22988d12e07"},{"path":".github/workflows/test-launch.yml","mode":"100644","type":"blob","sha":"1735fd83b69ec5b60dd28ad30cd5f96e97b65e85","size":1316,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1735fd83b69ec5b60dd28ad30cd5f96e97b65e85"},{"path":".github/workflows/test-unit.yml","mode":"100644","type":"blob","sha":"00caf5b8a1f03db7150cb050310f5202d520c479","size":774,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00caf5b8a1f03db7150cb050310f5202d520c479"},{"path":".github/workflows/update-api-stubs.yml","mode":"100644","type":"blob","sha":"c99ec9fc1acf5ec0c1e922050be4e7930e7d1615","size":1833,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c99ec9fc1acf5ec0c1e922050be4e7930e7d1615"},{"path":".github/workflows/update-version.yml","mode":"100644","type":"blob","sha":"d9d4889749ecb4dacf1742102210cd2d66ee12f9","size":1840,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d9d4889749ecb4dacf1742102210cd2d66ee12f9"},{"path":".github/workflows/windows_release_dependencies.yml","mode":"100644","type":"blob","sha":"f1e2946e66b02bcff4faed707f28ea73338028b7","size":2529,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f1e2946e66b02bcff4faed707f28ea73338028b7"},{"path":".github/workflows/windows_release_dependencies_manual.yml","mode":"100644","type":"blob","sha":"0799feef1ffca71c6f5d718c3f4833207d2c5047","size":2295,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0799feef1ffca71c6f5d718c3f4833207d2c5047"},{"path":".github/workflows/windows_release_nightly_pytorch.yml","mode":"100644","type":"blob","sha":"ca1ef71aee8fe01fe2c6ded5eb49a938bb34b551","size":3737,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca1ef71aee8fe01fe2c6ded5eb49a938bb34b551"},{"path":".github/workflows/windows_release_package.yml","mode":"100644","type":"blob","sha":"7955325fc8242c0a9c8efffdc6d3d70808eaeca0","size":3666,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7955325fc8242c0a9c8efffdc6d3d70808eaeca0"},{"path":".gitignore","mode":"100644","type":"blob","sha":"4e8cea71e55139979744378e9918065955bcd7ea","size":382,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e8cea71e55139979744378e9918065955bcd7ea"},{"path":"CODEOWNERS","mode":"100644","type":"blob","sha":"b7aca9b267cff2e70a06cf5c035efa4f689df54a","size":42,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b7aca9b267cff2e70a06cf5c035efa4f689df54a"},{"path":"CONTRIBUTING.md","mode":"100644","type":"blob","sha":"048f127e72ddc351451a9612d4c715f603393a84","size":1882,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/048f127e72ddc351451a9612d4c715f603393a84"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"f288702d2fa16d3cdf0035b15a9fcbc552cd88e7","size":35149,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"},{"path":"README.md","mode":"100644","type":"blob","sha":"4a5a17cdae01dc9b72b466ac0f58830b6931c6a7","size":26654,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4a5a17cdae01dc9b72b466ac0f58830b6931c6a7"},{"path":"alembic.ini","mode":"100644","type":"blob","sha":"12f18712f4306f1b76e6b291956797b01469cd80","size":3230,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/12f18712f4306f1b76e6b291956797b01469cd80"},{"path":"alembic_db","mode":"040000","type":"tree","sha":"449a7b5bd85bf258fa2dba8cbfa95dfe1090a86d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/449a7b5bd85bf258fa2dba8cbfa95dfe1090a86d"},{"path":"alembic_db/README.md","mode":"100644","type":"blob","sha":"3b808c7cab30eaab91c9ff5c1b2d5cc960904e14","size":133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3b808c7cab30eaab91c9ff5c1b2d5cc960904e14"},{"path":"alembic_db/env.py","mode":"100644","type":"blob","sha":"4d7770679875e2fad065fba0c9222758a40d266b","size":1799,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d7770679875e2fad065fba0c9222758a40d266b"},{"path":"alembic_db/script.py.mako","mode":"100644","type":"blob","sha":"480b130d632ca677c11f23d9fe82cf4014d15e0c","size":689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/480b130d632ca677c11f23d9fe82cf4014d15e0c"},{"path":"api_server","mode":"040000","type":"tree","sha":"2ef00490427353e728c491069ce0cdbb8f906f6b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2ef00490427353e728c491069ce0cdbb8f906f6b"},{"path":"api_server/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes","mode":"040000","type":"tree","sha":"21d5ce3a4f594dd65679cac295d9122176b9096c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/21d5ce3a4f594dd65679cac295d9122176b9096c"},{"path":"api_server/routes/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes/internal","mode":"040000","type":"tree","sha":"face49ad89add932178fb28f76e50955456eab03","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/face49ad89add932178fb28f76e50955456eab03"},{"path":"api_server/routes/internal/README.md","mode":"100644","type":"blob","sha":"35330c36f83962385b4afe4653c5967f2bdb73c1","size":220,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35330c36f83962385b4afe4653c5967f2bdb73c1"},{"path":"api_server/routes/internal/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes/internal/internal_routes.py","mode":"100644","type":"blob","sha":"613b0f7c7cf1cdbb24aae3e880e749839ac1110e","size":2830,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/613b0f7c7cf1cdbb24aae3e880e749839ac1110e"},{"path":"api_server/services","mode":"040000","type":"tree","sha":"fb303e6603032fb076c86938a5a149b9b447960e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fb303e6603032fb076c86938a5a149b9b447960e"},{"path":"api_server/services/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/services/terminal_service.py","mode":"100644","type":"blob","sha":"ab4371f4f855c6d347744f751fd1bc5cc0f5a173","size":1709,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab4371f4f855c6d347744f751fd1bc5cc0f5a173"},{"path":"api_server/utils","mode":"040000","type":"tree","sha":"196b7b6129fd35f559b1e1e17500e8b59631a0de","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/196b7b6129fd35f559b1e1e17500e8b59631a0de"},{"path":"api_server/utils/file_operations.py","mode":"100644","type":"blob","sha":"32d6e047a5da09d0f382bb3fa93ce8d52b699aa7","size":1367,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32d6e047a5da09d0f382bb3fa93ce8d52b699aa7"},{"path":"app","mode":"040000","type":"tree","sha":"1621e554aed63620d272ceed0032506e01a720fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1621e554aed63620d272ceed0032506e01a720fc"},{"path":"app/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"app/app_settings.py","mode":"100644","type":"blob","sha":"c7ac73bf6a59d3e89647aed13b70ca9428e16f2a","size":2255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c7ac73bf6a59d3e89647aed13b70ca9428e16f2a"},{"path":"app/custom_node_manager.py","mode":"100644","type":"blob","sha":"281febca952363659eb3925280fab00f07c986d0","size":5330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/281febca952363659eb3925280fab00f07c986d0"},{"path":"app/database","mode":"040000","type":"tree","sha":"7ed323953fc1c65daa35b418d299f52edd3d860d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7ed323953fc1c65daa35b418d299f52edd3d860d"},{"path":"app/database/db.py","mode":"100644","type":"blob","sha":"1de8b80edd8a5761039c7314c6387d2184a15e14","size":3290,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1de8b80edd8a5761039c7314c6387d2184a15e14"},{"path":"app/database/models.py","mode":"100644","type":"blob","sha":"6facfb8f2b5e7382274021579a453ad3b7853bf7","size":315,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6facfb8f2b5e7382274021579a453ad3b7853bf7"},{"path":"app/frontend_management.py","mode":"100644","type":"blob","sha":"cce0c117dec81dc4d9d816b754be0c389c2adc26","size":13658,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cce0c117dec81dc4d9d816b754be0c389c2adc26"},{"path":"app/logger.py","mode":"100644","type":"blob","sha":"3d26d98fe28005a3ed8b6deb7da34823b98b5696","size":2849,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3d26d98fe28005a3ed8b6deb7da34823b98b5696"},{"path":"app/model_manager.py","mode":"100644","type":"blob","sha":"ab36bca7441468ef3683f39c16fc6cec85d9740a","size":7887,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab36bca7441468ef3683f39c16fc6cec85d9740a"},{"path":"app/user_manager.py","mode":"100644","type":"blob","sha":"a2d376c0c4766b750fe6a1fd1558da4739f364dd","size":18099,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2d376c0c4766b750fe6a1fd1558da4739f364dd"},{"path":"comfy","mode":"040000","type":"tree","sha":"20fb0a7a876b26165de5da00a5680747a5d8cabb","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/20fb0a7a876b26165de5da00a5680747a5d8cabb"},{"path":"comfy/audio_encoders","mode":"040000","type":"tree","sha":"ef474f8a1e4996f842a8c45176281701015f0449","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ef474f8a1e4996f842a8c45176281701015f0449"},{"path":"comfy/audio_encoders/audio_encoders.py","mode":"100644","type":"blob","sha":"46ef21c95cf192e9cb1a4004567b132449f2db47","size":3387,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/46ef21c95cf192e9cb1a4004567b132449f2db47"},{"path":"comfy/audio_encoders/wav2vec2.py","mode":"100644","type":"blob","sha":"4e34a40a7f38b56a31a4512dea4c013a3b1c7843","size":10639,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e34a40a7f38b56a31a4512dea4c013a3b1c7843"},{"path":"comfy/audio_encoders/whisper.py","mode":"100755","type":"blob","sha":"93d3782f14b5256d4d1bdfc443c12c4720a6b224","size":5953,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93d3782f14b5256d4d1bdfc443c12c4720a6b224"},{"path":"comfy/checkpoint_pickle.py","mode":"100644","type":"blob","sha":"206551d3c1cf0d654c907534629a800196ba138b","size":286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/206551d3c1cf0d654c907534629a800196ba138b"},{"path":"comfy/cldm","mode":"040000","type":"tree","sha":"d0fbf52584e7dbc45fe85932d27496fef1996dfd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d0fbf52584e7dbc45fe85932d27496fef1996dfd"},{"path":"comfy/cldm/cldm.py","mode":"100644","type":"blob","sha":"ec01665e2181d4aea1c9cbb5b95bdc7715a3e8a8","size":19751,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ec01665e2181d4aea1c9cbb5b95bdc7715a3e8a8"},{"path":"comfy/cldm/control_types.py","mode":"100644","type":"blob","sha":"4128631a305a13d65c3c37ced17179d23fbbdcff","size":207,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4128631a305a13d65c3c37ced17179d23fbbdcff"},{"path":"comfy/cldm/dit_embedder.py","mode":"100644","type":"blob","sha":"f9bf31012b1319e929cab381c9a3b32be62fc589","size":4204,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f9bf31012b1319e929cab381c9a3b32be62fc589"},{"path":"comfy/cldm/mmdit.py","mode":"100644","type":"blob","sha":"b7764085e9431259d43701654af897effe0799da","size":2555,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b7764085e9431259d43701654af897effe0799da"},{"path":"comfy/cli_args.py","mode":"100644","type":"blob","sha":"cc1f12482e9f667b1db08b62068afa1af1ab60a6","size":15453,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cc1f12482e9f667b1db08b62068afa1af1ab60a6"},{"path":"comfy/clip_config_bigg.json","mode":"100644","type":"blob","sha":"35261deef14a68fcc6c5b1fc32914b5c102781a9","size":524,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35261deef14a68fcc6c5b1fc32914b5c102781a9"},{"path":"comfy/clip_model.py","mode":"100644","type":"blob","sha":"7c0cadab5bc94cba0beef715b1465a0125eba465","size":12032,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7c0cadab5bc94cba0beef715b1465a0125eba465"},{"path":"comfy/clip_vision.py","mode":"100644","type":"blob","sha":"447b1ce4abef28579a56359b2d0d66ef9159acb6","size":7665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/447b1ce4abef28579a56359b2d0d66ef9159acb6"},{"path":"comfy/clip_vision_config_g.json","mode":"100644","type":"blob","sha":"708e7e21ac3513a719d6a49e88e756f5ef7e2c8d","size":419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/708e7e21ac3513a719d6a49e88e756f5ef7e2c8d"},{"path":"comfy/clip_vision_config_h.json","mode":"100644","type":"blob","sha":"bb71be419a4be0ad5c8c157850de032a65593cb9","size":419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb71be419a4be0ad5c8c157850de032a65593cb9"},{"path":"comfy/clip_vision_config_vitl.json","mode":"100644","type":"blob","sha":"c59b8ed5a4c1f41fbcc9e6811d2c7dfe44273de7","size":424,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c59b8ed5a4c1f41fbcc9e6811d2c7dfe44273de7"},{"path":"comfy/clip_vision_config_vitl_336.json","mode":"100644","type":"blob","sha":"f26945273d99e88f207d64dcec78feee63b4b625","size":423,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f26945273d99e88f207d64dcec78feee63b4b625"},{"path":"comfy/clip_vision_config_vitl_336_llava.json","mode":"100644","type":"blob","sha":"f23a50d8b77fa29de2af621fb50c5825cf9b1a86","size":453,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f23a50d8b77fa29de2af621fb50c5825cf9b1a86"},{"path":"comfy/clip_vision_siglip_384.json","mode":"100644","type":"blob","sha":"532e03ac181d8849a7202445d42565f01441177b","size":314,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/532e03ac181d8849a7202445d42565f01441177b"},{"path":"comfy/clip_vision_siglip_512.json","mode":"100644","type":"blob","sha":"7fb93ce15e6da3ce7653a7a91ab278d707a096b4","size":314,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7fb93ce15e6da3ce7653a7a91ab278d707a096b4"},{"path":"comfy/comfy_types","mode":"040000","type":"tree","sha":"3dda958c109118e3e62f39857beb520d9cbbbfb4","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3dda958c109118e3e62f39857beb520d9cbbbfb4"},{"path":"comfy/comfy_types/README.md","mode":"100644","type":"blob","sha":"20a786a5eac805a0b3f41c4fa42be558819b89c8","size":1350,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/20a786a5eac805a0b3f41c4fa42be558819b89c8"},{"path":"comfy/comfy_types/__init__.py","mode":"100644","type":"blob","sha":"7640fbe3f827bdaac2384e0dcc96d243ec257f2f","size":1251,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7640fbe3f827bdaac2384e0dcc96d243ec257f2f"},{"path":"comfy/comfy_types/examples","mode":"040000","type":"tree","sha":"c26fa0b29368af8d530f7bc9dab14a7d71697044","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c26fa0b29368af8d530f7bc9dab14a7d71697044"},{"path":"comfy/comfy_types/examples/example_nodes.py","mode":"100644","type":"blob","sha":"6e19c545153db36b2c2e7481e5c8bc96ccbbe1f1","size":781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6e19c545153db36b2c2e7481e5c8bc96ccbbe1f1"},{"path":"comfy/comfy_types/examples/input_options.png","mode":"100644","type":"blob","sha":"ac859bbc0c15728e6f5464f9388f44d5e38dd650","size":19341,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac859bbc0c15728e6f5464f9388f44d5e38dd650"},{"path":"comfy/comfy_types/examples/input_types.png","mode":"100644","type":"blob","sha":"27e031ccf9c32958da0d41164b567e252c1b0c5c","size":16809,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/27e031ccf9c32958da0d41164b567e252c1b0c5c"},{"path":"comfy/comfy_types/examples/required_hint.png","mode":"100644","type":"blob","sha":"22c0182a0aed3245201f2ffac86a6d3ad5b7e2ea","size":19286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22c0182a0aed3245201f2ffac86a6d3ad5b7e2ea"},{"path":"comfy/comfy_types/node_typing.py","mode":"100644","type":"blob","sha":"071b98332ee2a588448fde472f9c0f104e72d13d","size":14985,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/071b98332ee2a588448fde472f9c0f104e72d13d"},{"path":"comfy/conds.py","mode":"100644","type":"blob","sha":"5af3e93eaeecdef08d9e07901b33a70bda60fb43","size":3874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5af3e93eaeecdef08d9e07901b33a70bda60fb43"},{"path":"comfy/context_windows.py","mode":"100644","type":"blob","sha":"041f380f9140b9e41d94399dd8ce781189699efd","size":25973,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/041f380f9140b9e41d94399dd8ce781189699efd"},{"path":"comfy/controlnet.py","mode":"100644","type":"blob","sha":"f08ff4b36bd8fb9e6d0888b2ed75fb08e05d3211","size":41075,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f08ff4b36bd8fb9e6d0888b2ed75fb08e05d3211"},{"path":"comfy/diffusers_convert.py","mode":"100644","type":"blob","sha":"fb9495348704c4f58b537f524ff6194d572d9fad","size":6796,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fb9495348704c4f58b537f524ff6194d572d9fad"},{"path":"comfy/diffusers_load.py","mode":"100644","type":"blob","sha":"56e63a7565f083eb4e3bc484a3a9f90103306a2f","size":1437,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/56e63a7565f083eb4e3bc484a3a9f90103306a2f"},{"path":"comfy/extra_samplers","mode":"040000","type":"tree","sha":"27bd35de93053231f1fbae018fed273d9da52119","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/27bd35de93053231f1fbae018fed273d9da52119"},{"path":"comfy/extra_samplers/uni_pc.py","mode":"100644","type":"blob","sha":"c57e081e45cfaa694e3e78528798f62a4698c056","size":38202,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c57e081e45cfaa694e3e78528798f62a4698c056"},{"path":"comfy/float.py","mode":"100644","type":"blob","sha":"521316fd2facaab90583da8487029a365aefd9e7","size":2485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/521316fd2facaab90583da8487029a365aefd9e7"},{"path":"comfy/gligen.py","mode":"100644","type":"blob","sha":"1d7b6c2f4cd1009ac3c52bc5f68442a91b417048","size":10800,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1d7b6c2f4cd1009ac3c52bc5f68442a91b417048"},{"path":"comfy/hooks.py","mode":"100644","type":"blob","sha":"9d07310729020a033f705395433c318152432935","size":32728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d07310729020a033f705395433c318152432935"},{"path":"comfy/image_encoders","mode":"040000","type":"tree","sha":"1fce6f631e846b5db4f57c37b08676760f57ae91","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1fce6f631e846b5db4f57c37b08676760f57ae91"},{"path":"comfy/image_encoders/dino2.py","mode":"100644","type":"blob","sha":"9b6dace9dc992a4b3fb5c3557756312bb8282cdf","size":7120,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9b6dace9dc992a4b3fb5c3557756312bb8282cdf"},{"path":"comfy/image_encoders/dino2_giant.json","mode":"100644","type":"blob","sha":"f6076a4dc98dfee6c200294397bfdfe3d2c688e1","size":512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f6076a4dc98dfee6c200294397bfdfe3d2c688e1"},{"path":"comfy/image_encoders/dino2_large.json","mode":"100644","type":"blob","sha":"43fbb58ffb4f2120f5259b6bf12c9257a047d360","size":538,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/43fbb58ffb4f2120f5259b6bf12c9257a047d360"},{"path":"comfy/k_diffusion","mode":"040000","type":"tree","sha":"a29b905e04a7813a3dee78304827805ea694686c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a29b905e04a7813a3dee78304827805ea694686c"},{"path":"comfy/k_diffusion/deis.py","mode":"100644","type":"blob","sha":"a1167a4a36c42b22168ea8b3d80b1d83b2505db5","size":5799,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1167a4a36c42b22168ea8b3d80b1d83b2505db5"},{"path":"comfy/k_diffusion/sa_solver.py","mode":"100644","type":"blob","sha":"0c6821b605d4b44ac81414f2c635e28ce5d9feb5","size":5622,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c6821b605d4b44ac81414f2c635e28ce5d9feb5"},{"path":"comfy/k_diffusion/sampling.py","mode":"100644","type":"blob","sha":"0e2cda2916ecd0c1b688fb1a8a6f7d58a46a7af3","size":81172,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0e2cda2916ecd0c1b688fb1a8a6f7d58a46a7af3"},{"path":"comfy/k_diffusion/utils.py","mode":"100644","type":"blob","sha":"a644df2f3cf82b32ac6e9bf2cb7bfc70c95e05f9","size":12718,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a644df2f3cf82b32ac6e9bf2cb7bfc70c95e05f9"},{"path":"comfy/latent_formats.py","mode":"100644","type":"blob","sha":"77e642a9447662614a90521b638df4fea2941bd2","size":25836,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/77e642a9447662614a90521b638df4fea2941bd2"},{"path":"comfy/ldm","mode":"040000","type":"tree","sha":"22f4a746055c9402068c9d267dd6f0c3a54cc8b8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/22f4a746055c9402068c9d267dd6f0c3a54cc8b8"},{"path":"comfy/ldm/ace","mode":"040000","type":"tree","sha":"22933ec576aa70826dcdf99265ac2b2444a61cf6","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/22933ec576aa70826dcdf99265ac2b2444a61cf6"},{"path":"comfy/ldm/ace/attention.py","mode":"100644","type":"blob","sha":"670eb9783385b818a5ea3e435df222a6767c8515","size":30473,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/670eb9783385b818a5ea3e435df222a6767c8515"},{"path":"comfy/ldm/ace/lyric_encoder.py","mode":"100644","type":"blob","sha":"ff4359b26e8d27591d6fa59d6d931ab13596efe1","size":43155,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ff4359b26e8d27591d6fa59d6d931ab13596efe1"},{"path":"comfy/ldm/ace/model.py","mode":"100644","type":"blob","sha":"3993298539becb28f980263b7dd9a57691dd65a0","size":17216,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3993298539becb28f980263b7dd9a57691dd65a0"},{"path":"comfy/ldm/ace/vae","mode":"040000","type":"tree","sha":"fcd3ac3b6a1b1aef2fcf0c53f87a9409a9e5b263","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fcd3ac3b6a1b1aef2fcf0c53f87a9409a9e5b263"},{"path":"comfy/ldm/ace/vae/autoencoder_dc.py","mode":"100644","type":"blob","sha":"e7b1d4801e7b3f47f29cb90f41adff4d415868cd","size":22909,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e7b1d4801e7b3f47f29cb90f41adff4d415868cd"},{"path":"comfy/ldm/ace/vae/music_dcae_pipeline.py","mode":"100644","type":"blob","sha":"3c8830c176f7543a661bb25913424ea2c8f52f74","size":3622,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3c8830c176f7543a661bb25913424ea2c8f52f74"},{"path":"comfy/ldm/ace/vae/music_log_mel.py","mode":"100755","type":"blob","sha":"9c584eb7fa75ffaab1c3a42184ea75171b2a1d8f","size":3090,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9c584eb7fa75ffaab1c3a42184ea75171b2a1d8f"},{"path":"comfy/ldm/ace/vae/music_vocoder.py","mode":"100755","type":"blob","sha":"2f989fa86e8c964994886c6a22ed53e742279ec4","size":18149,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2f989fa86e8c964994886c6a22ed53e742279ec4"},{"path":"comfy/ldm/audio","mode":"040000","type":"tree","sha":"5bc19dfa6f67f2d480477f6dd0631e689d1a8d25","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5bc19dfa6f67f2d480477f6dd0631e689d1a8d25"},{"path":"comfy/ldm/audio/autoencoder.py","mode":"100644","type":"blob","sha":"78ed6ffa63ab9fca66ba009709bb262a18830dcd","size":9969,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/78ed6ffa63ab9fca66ba009709bb262a18830dcd"},{"path":"comfy/ldm/audio/dit.py","mode":"100644","type":"blob","sha":"ca865189e351948e574877dcd9a94312ff7cb86a","size":31491,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca865189e351948e574877dcd9a94312ff7cb86a"},{"path":"comfy/ldm/audio/embedders.py","mode":"100644","type":"blob","sha":"20edb365aaafe7f344a2616a53470c837d0a8a6e","size":3406,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/20edb365aaafe7f344a2616a53470c837d0a8a6e"},{"path":"comfy/ldm/aura","mode":"040000","type":"tree","sha":"0d3b541fd0cf2642db1a59b5138619d51635f2b0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0d3b541fd0cf2642db1a59b5138619d51635f2b0"},{"path":"comfy/ldm/aura/mmdit.py","mode":"100644","type":"blob","sha":"66d9613b61de36e324a2a08b05b07f58c25e35ad","size":20461,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/66d9613b61de36e324a2a08b05b07f58c25e35ad"},{"path":"comfy/ldm/cascade","mode":"040000","type":"tree","sha":"a7295a59375497e82587079c43ec5bb8bdff865b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a7295a59375497e82587079c43ec5bb8bdff865b"},{"path":"comfy/ldm/cascade/common.py","mode":"100644","type":"blob","sha":"42ef98c7a78cb1b652433ae7c92b189353e2fad6","size":6786,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/42ef98c7a78cb1b652433ae7c92b189353e2fad6"},{"path":"comfy/ldm/cascade/controlnet.py","mode":"100644","type":"blob","sha":"90473481a078323be11e2c5530de378b1ac6425c","size":4304,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/90473481a078323be11e2c5530de378b1ac6425c"},{"path":"comfy/ldm/cascade/stage_a.py","mode":"100644","type":"blob","sha":"145e6e69a7c56c0b983cd79d43f1c6d7d26fd349","size":10032,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/145e6e69a7c56c0b983cd79d43f1c6d7d26fd349"},{"path":"comfy/ldm/cascade/stage_b.py","mode":"100644","type":"blob","sha":"428c67fdf621d0af3c1bc52769c915e2ff0129c3","size":14263,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/428c67fdf621d0af3c1bc52769c915e2ff0129c3"},{"path":"comfy/ldm/cascade/stage_c.py","mode":"100644","type":"blob","sha":"ebc4434e2bf1b5d7839f0003f5c6036429e7f9dd","size":15204,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ebc4434e2bf1b5d7839f0003f5c6036429e7f9dd"},{"path":"comfy/ldm/cascade/stage_c_coder.py","mode":"100644","type":"blob","sha":"b467a70a848edeef57d7911ac844868b251f8e45","size":3501,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b467a70a848edeef57d7911ac844868b251f8e45"},{"path":"comfy/ldm/chroma","mode":"040000","type":"tree","sha":"333841ef6aed1bfaf6cbe853f27088a2427f8a7d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/333841ef6aed1bfaf6cbe853f27088a2427f8a7d"},{"path":"comfy/ldm/chroma/layers.py","mode":"100644","type":"blob","sha":"fc7110cce50e5ba0de42dc1a4f586d2c87186fc8","size":8069,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fc7110cce50e5ba0de42dc1a4f586d2c87186fc8"},{"path":"comfy/ldm/chroma/model.py","mode":"100644","type":"blob","sha":"ad1c523fe1d36a479e52c7551d1dcfbdd7fdb230","size":12707,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ad1c523fe1d36a479e52c7551d1dcfbdd7fdb230"},{"path":"comfy/ldm/chroma_radiance","mode":"040000","type":"tree","sha":"8a5f34623ba88796b17219693c506294165e508a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8a5f34623ba88796b17219693c506294165e508a"},{"path":"comfy/ldm/chroma_radiance/layers.py","mode":"100644","type":"blob","sha":"3c7bc9b6b9850a47e86649396e29fef06a678ecb","size":8676,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3c7bc9b6b9850a47e86649396e29fef06a678ecb"},{"path":"comfy/ldm/chroma_radiance/model.py","mode":"100644","type":"blob","sha":"47aa11b0454541eaaf0e425a06cf75dd9ba0422c","size":12788,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/47aa11b0454541eaaf0e425a06cf75dd9ba0422c"},{"path":"comfy/ldm/common_dit.py","mode":"100644","type":"blob","sha":"f7f56b72ca6fcd3ba2831b8881a7124d84490bee","size":474,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7f56b72ca6fcd3ba2831b8881a7124d84490bee"},{"path":"comfy/ldm/cosmos","mode":"040000","type":"tree","sha":"160b5718780889123041b52d1fa477a0d3de715f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/160b5718780889123041b52d1fa477a0d3de715f"},{"path":"comfy/ldm/cosmos/blocks.py","mode":"100644","type":"blob","sha":"afb43d469daed3fcd224fca8f163fa830d9441d3","size":31086,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/afb43d469daed3fcd224fca8f163fa830d9441d3"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer","mode":"040000","type":"tree","sha":"9854c93a3374050452c33082b0a666697adcb303","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9854c93a3374050452c33082b0a666697adcb303"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/layers3d.py","mode":"100644","type":"blob","sha":"9a3ebed6aa5362c79aff91c088cce8ba7b6f3141","size":33866,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9a3ebed6aa5362c79aff91c088cce8ba7b6f3141"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/patching.py","mode":"100644","type":"blob","sha":"87a53a1d9f9ac4fa6bdbb1f8f682c298fdd4376c","size":13796,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/87a53a1d9f9ac4fa6bdbb1f8f682c298fdd4376c"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/utils.py","mode":"100644","type":"blob","sha":"ca993006fc800db4cd016fe43e67ae7473ab1634","size":3168,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca993006fc800db4cd016fe43e67ae7473ab1634"},{"path":"comfy/ldm/cosmos/model.py","mode":"100644","type":"blob","sha":"52ef7ef4340ad0e0b8f06477981f08331399fa96","size":24058,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/52ef7ef4340ad0e0b8f06477981f08331399fa96"},{"path":"comfy/ldm/cosmos/position_embedding.py","mode":"100644","type":"blob","sha":"c925811d4c2275699a030ef8bbcb299a65918754","size":8929,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c925811d4c2275699a030ef8bbcb299a65918754"},{"path":"comfy/ldm/cosmos/predict2.py","mode":"100644","type":"blob","sha":"07a4fc79ff964c44854d196a96aeea2ef3b3ad5b","size":38759,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/07a4fc79ff964c44854d196a96aeea2ef3b3ad5b"},{"path":"comfy/ldm/cosmos/vae.py","mode":"100644","type":"blob","sha":"d64f292de735258f43c07099bee03e3c871e9a26","size":4985,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d64f292de735258f43c07099bee03e3c871e9a26"},{"path":"comfy/ldm/flux","mode":"040000","type":"tree","sha":"88fd03e54d8f531e8286477654e81138af75f897","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/88fd03e54d8f531e8286477654e81138af75f897"},{"path":"comfy/ldm/flux/controlnet.py","mode":"100644","type":"blob","sha":"7dcf82bbf3e8e9a369dda0df39f37f0653514747","size":9227,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7dcf82bbf3e8e9a369dda0df39f37f0653514747"},{"path":"comfy/ldm/flux/layers.py","mode":"100644","type":"blob","sha":"ef21b416b2508e9fb1b1e06d75e5778f49650634","size":12440,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ef21b416b2508e9fb1b1e06d75e5778f49650634"},{"path":"comfy/ldm/flux/math.py","mode":"100644","type":"blob","sha":"8deda0d4acbf20485c96c58a6538cb0bd8cf4938","size":1926,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8deda0d4acbf20485c96c58a6538cb0bd8cf4938"},{"path":"comfy/ldm/flux/model.py","mode":"100644","type":"blob","sha":"14f90cea55e65013595fa96551ff903ac7f18bbb","size":12298,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14f90cea55e65013595fa96551ff903ac7f18bbb"},{"path":"comfy/ldm/flux/redux.py","mode":"100644","type":"blob","sha":"527e83164ea2fd1bdf7431f3791ebede00895051","size":724,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/527e83164ea2fd1bdf7431f3791ebede00895051"},{"path":"comfy/ldm/genmo","mode":"040000","type":"tree","sha":"688b483a8559ee23fa97e3701f72db2d812e3b22","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/688b483a8559ee23fa97e3701f72db2d812e3b22"},{"path":"comfy/ldm/genmo/joint_model","mode":"040000","type":"tree","sha":"f2e03c74ebafdaa4d9b02cbd395417852d051f7c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f2e03c74ebafdaa4d9b02cbd395417852d051f7c"},{"path":"comfy/ldm/genmo/joint_model/asymm_models_joint.py","mode":"100644","type":"blob","sha":"5c1bb4d42330bdc76a6fc415f2283871fd4f730c","size":19553,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5c1bb4d42330bdc76a6fc415f2283871fd4f730c"},{"path":"comfy/ldm/genmo/joint_model/layers.py","mode":"100644","type":"blob","sha":"e310bd717833b29e3730894370a55cd49802de93","size":5053,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e310bd717833b29e3730894370a55cd49802de93"},{"path":"comfy/ldm/genmo/joint_model/rope_mixed.py","mode":"100644","type":"blob","sha":"dee3fa21f5318a610321fc9372553d618462f773","size":2649,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dee3fa21f5318a610321fc9372553d618462f773"},{"path":"comfy/ldm/genmo/joint_model/temporal_rope.py","mode":"100644","type":"blob","sha":"88f5d6d26151db0c8ad0a89fcf748c45d4b89bc0","size":1255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/88f5d6d26151db0c8ad0a89fcf748c45d4b89bc0"},{"path":"comfy/ldm/genmo/joint_model/utils.py","mode":"100644","type":"blob","sha":"1b399d5d2128b7f5c7be141c3d8e7047df93b273","size":3671,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1b399d5d2128b7f5c7be141c3d8e7047df93b273"},{"path":"comfy/ldm/genmo/vae","mode":"040000","type":"tree","sha":"3d9c703714421c77bd21d86c7426ab172e4217fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3d9c703714421c77bd21d86c7426ab172e4217fc"},{"path":"comfy/ldm/genmo/vae/model.py","mode":"100644","type":"blob","sha":"1bde0c1ed7372be184e634777b9e27b67692b1f4","size":22276,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bde0c1ed7372be184e634777b9e27b67692b1f4"},{"path":"comfy/ldm/hidream","mode":"040000","type":"tree","sha":"7c9d43e82f40eb1564765f0d013ab5d26e4ef589","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7c9d43e82f40eb1564765f0d013ab5d26e4ef589"},{"path":"comfy/ldm/hidream/model.py","mode":"100644","type":"blob","sha":"28d81c79e55b2a57d670633733654b64d5700c07","size":34966,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28d81c79e55b2a57d670633733654b64d5700c07"},{"path":"comfy/ldm/hunyuan3d","mode":"040000","type":"tree","sha":"476fafde1e44d8352d223be9160a8b5e3c69aa62","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/476fafde1e44d8352d223be9160a8b5e3c69aa62"},{"path":"comfy/ldm/hunyuan3d/model.py","mode":"100644","type":"blob","sha":"4991b164531e1b095f748f2aa5cdb06a59542fc2","size":6453,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4991b164531e1b095f748f2aa5cdb06a59542fc2"},{"path":"comfy/ldm/hunyuan3d/vae.py","mode":"100644","type":"blob","sha":"76094482700f8b2fbd8379323640b4ed7fe0a01a","size":36006,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/76094482700f8b2fbd8379323640b4ed7fe0a01a"},{"path":"comfy/ldm/hunyuan3dv2_1","mode":"040000","type":"tree","sha":"dfff27a7ba366dce4ebc5c72f532752e7f8b8c0c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/dfff27a7ba366dce4ebc5c72f532752e7f8b8c0c"},{"path":"comfy/ldm/hunyuan3dv2_1/hunyuandit.py","mode":"100644","type":"blob","sha":"d48d9d64209c0046aeb0e9ced28ae0fb96ecb857","size":23255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d48d9d64209c0046aeb0e9ced28ae0fb96ecb857"},{"path":"comfy/ldm/hunyuan_video","mode":"040000","type":"tree","sha":"54da775d2d34e2f83709e35225e4f87f4d14a899","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/54da775d2d34e2f83709e35225e4f87f4d14a899"},{"path":"comfy/ldm/hunyuan_video/model.py","mode":"100644","type":"blob","sha":"5132e6c07b75905baebead66bdb614e3d01edacf","size":19600,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5132e6c07b75905baebead66bdb614e3d01edacf"},{"path":"comfy/ldm/hunyuan_video/vae.py","mode":"100644","type":"blob","sha":"40c12b18334dcc003a59c882b63c7044fe5e679e","size":5728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/40c12b18334dcc003a59c882b63c7044fe5e679e"},{"path":"comfy/ldm/hunyuan_video/vae_refiner.py","mode":"100644","type":"blob","sha":"c2a0b507d4bf5d538bebcf02654cfe4166ae89b8","size":11903,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c2a0b507d4bf5d538bebcf02654cfe4166ae89b8"},{"path":"comfy/ldm/hydit","mode":"040000","type":"tree","sha":"1a218a5b420df99819992fe9fde464fb050cb4d9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1a218a5b420df99819992fe9fde464fb050cb4d9"},{"path":"comfy/ldm/hydit/attn_layers.py","mode":"100644","type":"blob","sha":"3ca25a5df175bcadd8e50ad34ee0bfcddcb37aa0","size":9869,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ca25a5df175bcadd8e50ad34ee0bfcddcb37aa0"},{"path":"comfy/ldm/hydit/controlnet.py","mode":"100644","type":"blob","sha":"31a6bff9409bb5264e552f91197915a136c3964d","size":10282,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31a6bff9409bb5264e552f91197915a136c3964d"},{"path":"comfy/ldm/hydit/models.py","mode":"100644","type":"blob","sha":"5ba2b76e0cad3c611fce1e74b024a66a2255b814","size":17193,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5ba2b76e0cad3c611fce1e74b024a66a2255b814"},{"path":"comfy/ldm/hydit/poolers.py","mode":"100644","type":"blob","sha":"c1b878ed6b0541116794635c5c1b53a7ca13af47","size":1919,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1b878ed6b0541116794635c5c1b53a7ca13af47"},{"path":"comfy/ldm/hydit/posemb_layers.py","mode":"100644","type":"blob","sha":"dcb41a713cd94ea8472ff26e8865066887b1e486","size":8689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dcb41a713cd94ea8472ff26e8865066887b1e486"},{"path":"comfy/ldm/lightricks","mode":"040000","type":"tree","sha":"17b766ebbd43fb15c1784aef91ec057407970024","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/17b766ebbd43fb15c1784aef91ec057407970024"},{"path":"comfy/ldm/lightricks/model.py","mode":"100644","type":"blob","sha":"def365ba70b87906b189a6d3d7ac42182a4aeb37","size":20597,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/def365ba70b87906b189a6d3d7ac42182a4aeb37"},{"path":"comfy/ldm/lightricks/symmetric_patchifier.py","mode":"100644","type":"blob","sha":"4b9972b9fb589bb5516c64dd557c0914dda45116","size":3950,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4b9972b9fb589bb5516c64dd557c0914dda45116"},{"path":"comfy/ldm/lightricks/vae","mode":"040000","type":"tree","sha":"55baa8a280eb205fce4f580b7d587e30e0334710","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/55baa8a280eb205fce4f580b7d587e30e0334710"},{"path":"comfy/ldm/lightricks/vae/causal_conv3d.py","mode":"100644","type":"blob","sha":"70d612e86376c86bd73a95df620a5434871ee2c7","size":1813,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/70d612e86376c86bd73a95df620a5434871ee2c7"},{"path":"comfy/ldm/lightricks/vae/causal_video_autoencoder.py","mode":"100644","type":"blob","sha":"75ed069ad45dc2f915f0c749f1afc3536d292e33","size":41448,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/75ed069ad45dc2f915f0c749f1afc3536d292e33"},{"path":"comfy/ldm/lightricks/vae/conv_nd_factory.py","mode":"100644","type":"blob","sha":"b4026b14fae386850459b18fb06e8b5d7f79ab94","size":2570,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b4026b14fae386850459b18fb06e8b5d7f79ab94"},{"path":"comfy/ldm/lightricks/vae/dual_conv3d.py","mode":"100644","type":"blob","sha":"dcf889296750d3d7e553af37ecf77d1b10245af3","size":6885,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dcf889296750d3d7e553af37ecf77d1b10245af3"},{"path":"comfy/ldm/lightricks/vae/pixel_norm.py","mode":"100644","type":"blob","sha":"9bc3ea60e8a6453e7e12a7fb5aca4de3958a2567","size":307,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9bc3ea60e8a6453e7e12a7fb5aca4de3958a2567"},{"path":"comfy/ldm/lumina","mode":"040000","type":"tree","sha":"0e5f06b6f80e248ca0e6c851a64c5524fb339612","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0e5f06b6f80e248ca0e6c851a64c5524fb339612"},{"path":"comfy/ldm/lumina/model.py","mode":"100644","type":"blob","sha":"f87d98ac0e359f7b40a5b2050b2931fadf039676","size":23726,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f87d98ac0e359f7b40a5b2050b2931fadf039676"},{"path":"comfy/ldm/mmaudio","mode":"040000","type":"tree","sha":"138e8d4422948cec7ed2cb2ab37894398b9d9536","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/138e8d4422948cec7ed2cb2ab37894398b9d9536"},{"path":"comfy/ldm/mmaudio/vae","mode":"040000","type":"tree","sha":"b251266041a86b7e4e7815744acf6851d7a3bd9f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b251266041a86b7e4e7815744acf6851d7a3bd9f"},{"path":"comfy/ldm/mmaudio/vae/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/mmaudio/vae/activations.py","mode":"100644","type":"blob","sha":"db9192e3e4c4d2ca318178bb93a959beb9bbff42","size":4517,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/db9192e3e4c4d2ca318178bb93a959beb9bbff42"},{"path":"comfy/ldm/mmaudio/vae/alias_free_torch.py","mode":"100644","type":"blob","sha":"35c70b89712017a616add51fc22537093378657d","size":5719,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35c70b89712017a616add51fc22537093378657d"},{"path":"comfy/ldm/mmaudio/vae/autoencoder.py","mode":"100644","type":"blob","sha":"cbb9de302092957902e1b32fff3c687cc89d1058","size":4717,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cbb9de302092957902e1b32fff3c687cc89d1058"},{"path":"comfy/ldm/mmaudio/vae/bigvgan.py","mode":"100644","type":"blob","sha":"3a24337f62342220685662fa7bb3a9ffcc702ff1","size":8366,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3a24337f62342220685662fa7bb3a9ffcc702ff1"},{"path":"comfy/ldm/mmaudio/vae/distributions.py","mode":"100644","type":"blob","sha":"df987c5ec3faaba7da2b02029ad413134bfa08ad","size":2964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/df987c5ec3faaba7da2b02029ad413134bfa08ad"},{"path":"comfy/ldm/mmaudio/vae/vae.py","mode":"100644","type":"blob","sha":"62f24606c111e8fcd99b2adbf93761541c02e032","size":14532,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/62f24606c111e8fcd99b2adbf93761541c02e032"},{"path":"comfy/ldm/mmaudio/vae/vae_modules.py","mode":"100644","type":"blob","sha":"3ad05134bc44e05c54fd7acb8e2fa960d86bb1fb","size":3875,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ad05134bc44e05c54fd7acb8e2fa960d86bb1fb"},{"path":"comfy/ldm/models","mode":"040000","type":"tree","sha":"5189d9e1d46564399b5210281b4299d26ae71d09","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5189d9e1d46564399b5210281b4299d26ae71d09"},{"path":"comfy/ldm/models/autoencoder.py","mode":"100644","type":"blob","sha":"611d36a1bf9441ad5a7627332e09f738273b0a41","size":7838,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/611d36a1bf9441ad5a7627332e09f738273b0a41"},{"path":"comfy/ldm/modules","mode":"040000","type":"tree","sha":"f6e10f4b3b9c84467e49ae2795e8b647e3b35a09","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f6e10f4b3b9c84467e49ae2795e8b647e3b35a09"},{"path":"comfy/ldm/modules/attention.py","mode":"100644","type":"blob","sha":"7437e05675b5b9554ea5917dd1e7181645c39fc9","size":40702,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7437e05675b5b9554ea5917dd1e7181645c39fc9"},{"path":"comfy/ldm/modules/diffusionmodules","mode":"040000","type":"tree","sha":"d6e4bba3384852b8889acbe6de4ef1651813ae64","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d6e4bba3384852b8889acbe6de4ef1651813ae64"},{"path":"comfy/ldm/modules/diffusionmodules/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/diffusionmodules/mmdit.py","mode":"100644","type":"blob","sha":"42f406f1aaa3612b86597e4bfc05b0572964e4e5","size":37855,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/42f406f1aaa3612b86597e4bfc05b0572964e4e5"},{"path":"comfy/ldm/modules/diffusionmodules/model.py","mode":"100644","type":"blob","sha":"4245eedca723c6d1bf31ccc91ff92f8be6b55ff7","size":27895,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4245eedca723c6d1bf31ccc91ff92f8be6b55ff7"},{"path":"comfy/ldm/modules/diffusionmodules/openaimodel.py","mode":"100644","type":"blob","sha":"4c8d53cac9c2631f6985a3c670128bb4316b11ca","size":37382,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c8d53cac9c2631f6985a3c670128bb4316b11ca"},{"path":"comfy/ldm/modules/diffusionmodules/upscaling.py","mode":"100644","type":"blob","sha":"9dbf1fe7b93b0c7f1a9e8cbf8e89d0b33c282a08","size":3645,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9dbf1fe7b93b0c7f1a9e8cbf8e89d0b33c282a08"},{"path":"comfy/ldm/modules/diffusionmodules/util.py","mode":"100644","type":"blob","sha":"233011dc9524c3d5258c69c673385aaf45329c81","size":11889,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/233011dc9524c3d5258c69c673385aaf45329c81"},{"path":"comfy/ldm/modules/distributions","mode":"040000","type":"tree","sha":"af6f82c1b67fa9377a66b43ccad0df25b97f44a6","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/af6f82c1b67fa9377a66b43ccad0df25b97f44a6"},{"path":"comfy/ldm/modules/distributions/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/distributions/distributions.py","mode":"100644","type":"blob","sha":"df987c5ec3faaba7da2b02029ad413134bfa08ad","size":2964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/df987c5ec3faaba7da2b02029ad413134bfa08ad"},{"path":"comfy/ldm/modules/ema.py","mode":"100644","type":"blob","sha":"bded25019b9bcbcd0260f0b8185f8c7859ca58c4","size":3110,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bded25019b9bcbcd0260f0b8185f8c7859ca58c4"},{"path":"comfy/ldm/modules/encoders","mode":"040000","type":"tree","sha":"2528be94f31d1dc6160c572dbe8885538645e054","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2528be94f31d1dc6160c572dbe8885538645e054"},{"path":"comfy/ldm/modules/encoders/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/encoders/noise_aug_modules.py","mode":"100644","type":"blob","sha":"a5d8660301636fde75808cba50afa539cf1162e0","size":1548,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a5d8660301636fde75808cba50afa539cf1162e0"},{"path":"comfy/ldm/modules/sub_quadratic_attention.py","mode":"100644","type":"blob","sha":"fab145f1c208930f1d5bd385325e4e844b959aca","size":9560,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fab145f1c208930f1d5bd385325e4e844b959aca"},{"path":"comfy/ldm/modules/temporal_ae.py","mode":"100644","type":"blob","sha":"e0f78bf66b7b06b3f49f5add7a8a502384a9f445","size":7945,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e0f78bf66b7b06b3f49f5add7a8a502384a9f445"},{"path":"comfy/ldm/omnigen","mode":"040000","type":"tree","sha":"c2452b51afbd9b3fff2e944cae81108e4cf0277d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c2452b51afbd9b3fff2e944cae81108e4cf0277d"},{"path":"comfy/ldm/omnigen/omnigen2.py","mode":"100644","type":"blob","sha":"82edc92da71e66a6c4b3777d90c781060dd046e9","size":23255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/82edc92da71e66a6c4b3777d90c781060dd046e9"},{"path":"comfy/ldm/pixart","mode":"040000","type":"tree","sha":"2b12b1910a5d1d77d14ad31ddd97055b203f953d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2b12b1910a5d1d77d14ad31ddd97055b203f953d"},{"path":"comfy/ldm/pixart/blocks.py","mode":"100644","type":"blob","sha":"2225076e5754d08cd618014469c2464bad055334","size":16840,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2225076e5754d08cd618014469c2464bad055334"},{"path":"comfy/ldm/pixart/pixartms.py","mode":"100644","type":"blob","sha":"d1ac49d84c554f1531427dea251dd6d2ea3e0dc7","size":10402,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d1ac49d84c554f1531427dea251dd6d2ea3e0dc7"},{"path":"comfy/ldm/qwen_image","mode":"040000","type":"tree","sha":"74062ab05ed7eb4b7247fe69d6e50c3004f6a4af","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/74062ab05ed7eb4b7247fe69d6e50c3004f6a4af"},{"path":"comfy/ldm/qwen_image/controlnet.py","mode":"100644","type":"blob","sha":"92ac3cf0afd6518df1106b1acb9b80a935412ef5","size":2977,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/92ac3cf0afd6518df1106b1acb9b80a935412ef5"},{"path":"comfy/ldm/qwen_image/model.py","mode":"100644","type":"blob","sha":"b9f60c2b7a485281695d524ac0e0d720aac8de2d","size":20856,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b9f60c2b7a485281695d524ac0e0d720aac8de2d"},{"path":"comfy/ldm/util.py","mode":"100644","type":"blob","sha":"30b4b4721056216ee817e7d54d0bca9e09b79098","size":7232,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/30b4b4721056216ee817e7d54d0bca9e09b79098"},{"path":"comfy/ldm/wan","mode":"040000","type":"tree","sha":"bab5218504852b7ca2ab6951f490326991d037bc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bab5218504852b7ca2ab6951f490326991d037bc"},{"path":"comfy/ldm/wan/model.py","mode":"100644","type":"blob","sha":"90c347d3d0b218793d6610f9fcd77bf146bc7d03","size":66481,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/90c347d3d0b218793d6610f9fcd77bf146bc7d03"},{"path":"comfy/ldm/wan/model_animate.py","mode":"100644","type":"blob","sha":"7c87835d467f32c5f19c53b9250ad83cd63f7e13","size":22953,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7c87835d467f32c5f19c53b9250ad83cd63f7e13"},{"path":"comfy/ldm/wan/vae.py","mode":"100644","type":"blob","sha":"ccbb258226bae00e7b40d29a3ec0cb98eb56221e","size":18404,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ccbb258226bae00e7b40d29a3ec0cb98eb56221e"},{"path":"comfy/ldm/wan/vae2_2.py","mode":"100644","type":"blob","sha":"8e1593a54c9464aa685f8cafc05e3e155d9f02d0","size":22621,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8e1593a54c9464aa685f8cafc05e3e155d9f02d0"},{"path":"comfy/lora.py","mode":"100644","type":"blob","sha":"36d26293a42047c023b78d7ac6fd1f65acf36a74","size":19393,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/36d26293a42047c023b78d7ac6fd1f65acf36a74"},{"path":"comfy/lora_convert.py","mode":"100644","type":"blob","sha":"9d8d21efeab26718fdd7f7f14de82f60c4a4ebdc","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d8d21efeab26718fdd7f7f14de82f60c4a4ebdc"},{"path":"comfy/model_base.py","mode":"100644","type":"blob","sha":"8274c7dea192d11e2c346df2087dd6b6e77bd3dc","size":69932,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8274c7dea192d11e2c346df2087dd6b6e77bd3dc"},{"path":"comfy/model_detection.py","mode":"100644","type":"blob","sha":"7677617c0efbff84504bf3520f6067b0099eecfd","size":53190,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7677617c0efbff84504bf3520f6067b0099eecfd"},{"path":"comfy/model_management.py","mode":"100644","type":"blob","sha":"709ebc40b25613decfcee0b32947debb60437e02","size":45541,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/709ebc40b25613decfcee0b32947debb60437e02"},{"path":"comfy/model_patcher.py","mode":"100644","type":"blob","sha":"c0b68fb8cff70eeaae39097b651578d31561b830","size":54419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c0b68fb8cff70eeaae39097b651578d31561b830"},{"path":"comfy/model_sampling.py","mode":"100644","type":"blob","sha":"2a00ed8192f4243de12c44131e77e5b9849af038","size":13485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a00ed8192f4243de12c44131e77e5b9849af038"},{"path":"comfy/ops.py","mode":"100644","type":"blob","sha":"2415c96bf4863d6080c1d0645014000e44d9f0a2","size":18924,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2415c96bf4863d6080c1d0645014000e44d9f0a2"},{"path":"comfy/options.py","mode":"100644","type":"blob","sha":"f7f8af41ebd8b9669ef0ef21827ea6195bcb4752","size":111,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7f8af41ebd8b9669ef0ef21827ea6195bcb4752"},{"path":"comfy/patcher_extension.py","mode":"100644","type":"blob","sha":"46cc7b2a8858f3842c3fcf8711b0346f76e75e06","size":6811,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/46cc7b2a8858f3842c3fcf8711b0346f76e75e06"},{"path":"comfy/pixel_space_convert.py","mode":"100644","type":"blob","sha":"049bbcfb42d273108c12cd7856ca46273ceca1cd","size":528,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/049bbcfb42d273108c12cd7856ca46273ceca1cd"},{"path":"comfy/rmsnorm.py","mode":"100644","type":"blob","sha":"555542a46b54b9821b394374147d7fc4f9bc74c1","size":1987,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/555542a46b54b9821b394374147d7fc4f9bc74c1"},{"path":"comfy/sample.py","mode":"100644","type":"blob","sha":"be5a7e246fdf6168cd74d1bb1b550c6852a83212","size":3221,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be5a7e246fdf6168cd74d1bb1b550c6852a83212"},{"path":"comfy/sampler_helpers.py","mode":"100644","type":"blob","sha":"e46971afb7785e40d02ed64ff6647c329f97cf5e","size":7685,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e46971afb7785e40d02ed64ff6647c329f97cf5e"},{"path":"comfy/samplers.py","mode":"100755","type":"blob","sha":"c59e296a1ad382292f58f27a46aa452376ecc2a7","size":48824,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c59e296a1ad382292f58f27a46aa452376ecc2a7"},{"path":"comfy/sd.py","mode":"100644","type":"blob","sha":"28bee248dae180bb9c5f6eb9b048e9d4a595ae99","size":75136,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28bee248dae180bb9c5f6eb9b048e9d4a595ae99"},{"path":"comfy/sd1_clip.py","mode":"100644","type":"blob","sha":"f8a7c2a1b43c8e90645bfcef513b862b32076054","size":27620,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f8a7c2a1b43c8e90645bfcef513b862b32076054"},{"path":"comfy/sd1_clip_config.json","mode":"100644","type":"blob","sha":"3ba8c6b5bc3d6389fb6c9e2c8231729ad9d663a4","size":616,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ba8c6b5bc3d6389fb6c9e2c8231729ad9d663a4"},{"path":"comfy/sd1_tokenizer","mode":"040000","type":"tree","sha":"19aba8a796f3f91a6066a6535be7ae7309ef8280","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/19aba8a796f3f91a6066a6535be7ae7309ef8280"},{"path":"comfy/sd1_tokenizer/merges.txt","mode":"100644","type":"blob","sha":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/76e821f1b6f0a9709293c3b6b51ed90980b3166b"},{"path":"comfy/sd1_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"2c2130b544c0c5a72d5d00da071ba130a9800fb2","size":472,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2c2130b544c0c5a72d5d00da071ba130a9800fb2"},{"path":"comfy/sd1_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"8f7b3151d008bdee5739e317b887be0fc3b805c3","size":808,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8f7b3151d008bdee5739e317b887be0fc3b805c3"},{"path":"comfy/sd1_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/469be27c5c010538f845f518c4f5e8574c78f7c8"},{"path":"comfy/sdxl_clip.py","mode":"100644","type":"blob","sha":"c8cef14e4d6f81eb8ec8f4b8825c8afaa1d5caf3","size":5133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c8cef14e4d6f81eb8ec8f4b8825c8afaa1d5caf3"},{"path":"comfy/supported_models.py","mode":"100644","type":"blob","sha":"4064bdae1052b0b59da5c594723cdab376865b96","size":45830,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4064bdae1052b0b59da5c594723cdab376865b96"},{"path":"comfy/supported_models_base.py","mode":"100644","type":"blob","sha":"54573abb110d8cc5e190ecefa0f9aecf95da0b99","size":4304,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/54573abb110d8cc5e190ecefa0f9aecf95da0b99"},{"path":"comfy/t2i_adapter","mode":"040000","type":"tree","sha":"1db117fc44c0a5ea038917accdc639a51f82d446","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1db117fc44c0a5ea038917accdc639a51f82d446"},{"path":"comfy/t2i_adapter/adapter.py","mode":"100644","type":"blob","sha":"10ea18e326693f237b3b219970c86e3808f6d334","size":10054,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/10ea18e326693f237b3b219970c86e3808f6d334"},{"path":"comfy/taesd","mode":"040000","type":"tree","sha":"75b9edddc6d38645e90d41359c822911a2c02b40","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/75b9edddc6d38645e90d41359c822911a2c02b40"},{"path":"comfy/taesd/taesd.py","mode":"100644","type":"blob","sha":"ce36f1a84dae599a35e84a8da3462408c0f0ccc6","size":3143,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce36f1a84dae599a35e84a8da3462408c0f0ccc6"},{"path":"comfy/text_encoders","mode":"040000","type":"tree","sha":"c83a1c245dd078d9cea3870e8abb677348633274","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c83a1c245dd078d9cea3870e8abb677348633274"},{"path":"comfy/text_encoders/ace.py","mode":"100644","type":"blob","sha":"d650bb10d5d5bfdd485f18095e4a99ed7b06b6b7","size":6323,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d650bb10d5d5bfdd485f18095e4a99ed7b06b6b7"},{"path":"comfy/text_encoders/ace_lyrics_tokenizer","mode":"040000","type":"tree","sha":"de2daa82e47187bae78324e154ee90c263896e3e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/de2daa82e47187bae78324e154ee90c263896e3e"},{"path":"comfy/text_encoders/ace_lyrics_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"519ed340c36e19dfe15ccffd7aa5a31a261d70a5","size":364005,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/519ed340c36e19dfe15ccffd7aa5a31a261d70a5"},{"path":"comfy/text_encoders/ace_text_cleaners.py","mode":"100644","type":"blob","sha":"cd31d8d8cdffcda51cc26405c3f6f2bcee410d48","size":13349,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd31d8d8cdffcda51cc26405c3f6f2bcee410d48"},{"path":"comfy/text_encoders/aura_t5.py","mode":"100644","type":"blob","sha":"cf4252eea3ad6ed02e0a8ee4c13385c78909cbd8","size":1694,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cf4252eea3ad6ed02e0a8ee4c13385c78909cbd8"},{"path":"comfy/text_encoders/bert.py","mode":"100644","type":"blob","sha":"ed4638a9ab4882ac9f72033e3a6f07537682d807","size":6821,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ed4638a9ab4882ac9f72033e3a6f07537682d807"},{"path":"comfy/text_encoders/byt5_config_small_glyph.json","mode":"100644","type":"blob","sha":"0239c7164ef3eaa72e0114e85c1f37847f3602ae","size":505,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0239c7164ef3eaa72e0114e85c1f37847f3602ae"},{"path":"comfy/text_encoders/byt5_tokenizer","mode":"040000","type":"tree","sha":"ca252907b1bae80675a3d06954e5b4a4b5a508e9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ca252907b1bae80675a3d06954e5b4a4b5a508e9"},{"path":"comfy/text_encoders/byt5_tokenizer/added_tokens.json","mode":"100644","type":"blob","sha":"93c190b5690dd55aac16723222a9909e2be0faec","size":3018,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93c190b5690dd55aac16723222a9909e2be0faec"},{"path":"comfy/text_encoders/byt5_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"04fd58b5fbf6a36fda564a656b14c137ef045689","size":3090,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/04fd58b5fbf6a36fda564a656b14c137ef045689"},{"path":"comfy/text_encoders/byt5_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"5b1fe24c1b1962f69a7754a26e6770ae7bcb7764","size":25602,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5b1fe24c1b1962f69a7754a26e6770ae7bcb7764"},{"path":"comfy/text_encoders/cosmos.py","mode":"100644","type":"blob","sha":"a1adb5242bc9d625bbb32b9d55ca426a0f61e419","size":2498,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1adb5242bc9d625bbb32b9d55ca426a0f61e419"},{"path":"comfy/text_encoders/flux.py","mode":"100644","type":"blob","sha":"d61ef66689b32e52d15e962d41793a489aa44eab","size":3299,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d61ef66689b32e52d15e962d41793a489aa44eab"},{"path":"comfy/text_encoders/genmo.py","mode":"100644","type":"blob","sha":"9dcf190a232550c9e678e819c88092a5bc518058","size":1831,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9dcf190a232550c9e678e819c88092a5bc518058"},{"path":"comfy/text_encoders/hidream.py","mode":"100644","type":"blob","sha":"dbcf52784d63b6fc07c289d1e4e27a9fd7376b4c","size":7076,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dbcf52784d63b6fc07c289d1e4e27a9fd7376b4c"},{"path":"comfy/text_encoders/hunyuan_image.py","mode":"100644","type":"blob","sha":"ff04726e11ba1deff81be861470fb93c9f1397f0","size":5750,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ff04726e11ba1deff81be861470fb93c9f1397f0"},{"path":"comfy/text_encoders/hunyuan_video.py","mode":"100644","type":"blob","sha":"b02148b3346db8463b471d83542a59071f7d15e4","size":8274,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b02148b3346db8463b471d83542a59071f7d15e4"},{"path":"comfy/text_encoders/hydit.py","mode":"100644","type":"blob","sha":"ac6994529acd8493e6ec65a975f8984fd06749e8","size":4696,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac6994529acd8493e6ec65a975f8984fd06749e8"},{"path":"comfy/text_encoders/hydit_clip.json","mode":"100644","type":"blob","sha":"c41c7c1ff376407f42e3ff20ab26faaa98bb5e65","size":897,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c41c7c1ff376407f42e3ff20ab26faaa98bb5e65"},{"path":"comfy/text_encoders/hydit_clip_tokenizer","mode":"040000","type":"tree","sha":"5ac3bf99c88cf11e8dc3828c1dbdd20274d6fc75","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5ac3bf99c88cf11e8dc3828c1dbdd20274d6fc75"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"a8b3208c2884c4efb86e49300fdd3dc877220cdf","size":125,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a8b3208c2884c4efb86e49300fdd3dc877220cdf"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"a14356073e11a885074a7cdbddc749463cefd911","size":559,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a14356073e11a885074a7cdbddc749463cefd911"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/vocab.txt","mode":"100644","type":"blob","sha":"6246906805d02aca01714c71e4c8d77b69a7a131","size":316627,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6246906805d02aca01714c71e4c8d77b69a7a131"},{"path":"comfy/text_encoders/llama.py","mode":"100644","type":"blob","sha":"c050759feeeb78127283aee3ac28f731f2736664","size":20385,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c050759feeeb78127283aee3ac28f731f2736664"},{"path":"comfy/text_encoders/llama_tokenizer","mode":"040000","type":"tree","sha":"596b408d4b6bd3760a9e0435a821fdbbc967110a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/596b408d4b6bd3760a9e0435a821fdbbc967110a"},{"path":"comfy/text_encoders/llama_tokenizer/tokenizer.json","mode":"100644","type":"blob","sha":"99f23954b4bade407d4f3a18892f21f80b412d68","size":9085835,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/99f23954b4bade407d4f3a18892f21f80b412d68"},{"path":"comfy/text_encoders/llama_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"0b336f5a5199c43e7305481f4e9e26e292b2f0fc","size":51699,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0b336f5a5199c43e7305481f4e9e26e292b2f0fc"},{"path":"comfy/text_encoders/long_clipl.py","mode":"100644","type":"blob","sha":"8d4c7619d4b2007462cf14721bcdae093a5b4a7b","size":1085,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8d4c7619d4b2007462cf14721bcdae093a5b4a7b"},{"path":"comfy/text_encoders/lt.py","mode":"100644","type":"blob","sha":"48ea67e6782388637dbe55b3e6366cda051ec519","size":986,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/48ea67e6782388637dbe55b3e6366cda051ec519"},{"path":"comfy/text_encoders/lumina2.py","mode":"100644","type":"blob","sha":"fd986e2c1a63b1495f64c237df65760c752f1367","size":3785,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fd986e2c1a63b1495f64c237df65760c752f1367"},{"path":"comfy/text_encoders/mt5_config_xl.json","mode":"100644","type":"blob","sha":"092fefd6e32dac566e443fc03eae53f6a8b57400","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/092fefd6e32dac566e443fc03eae53f6a8b57400"},{"path":"comfy/text_encoders/omnigen2.py","mode":"100644","type":"blob","sha":"1a01b2dd430461a20af92b75e9a1930b8d153fea","size":2726,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1a01b2dd430461a20af92b75e9a1930b8d153fea"},{"path":"comfy/text_encoders/pixart_t5.py","mode":"100644","type":"blob","sha":"5f383de076fad52fb934c9747b3f95ff453d8e6a","size":2148,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5f383de076fad52fb934c9747b3f95ff453d8e6a"},{"path":"comfy/text_encoders/qwen25_tokenizer","mode":"040000","type":"tree","sha":"a5539422e5625c46fd7bf81d1a4391057d8343d1","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a5539422e5625c46fd7bf81d1a4391057d8343d1"},{"path":"comfy/text_encoders/qwen25_tokenizer/merges.txt","mode":"100644","type":"blob","sha":"31349551d90c7606f325fe0f11bbb8bd5fa0d7c7","size":1671853,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31349551d90c7606f325fe0f11bbb8bd5fa0d7c7"},{"path":"comfy/text_encoders/qwen25_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"67688e82ccf6bf5b0fa2d95130fb8564acce6398","size":8008,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/67688e82ccf6bf5b0fa2d95130fb8564acce6398"},{"path":"comfy/text_encoders/qwen25_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"4783fe10ac3adce15ac8f358ef5462739852c569","size":2776833,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4783fe10ac3adce15ac8f358ef5462739852c569"},{"path":"comfy/text_encoders/qwen_image.py","mode":"100644","type":"blob","sha":"40fa6793739c1b9e0df3fce05035bbcd6e078d72","size":5341,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/40fa6793739c1b9e0df3fce05035bbcd6e078d72"},{"path":"comfy/text_encoders/qwen_vl.py","mode":"100644","type":"blob","sha":"3b18ce730f62b7975da7b49b61533e4c2b8791c1","size":15942,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3b18ce730f62b7975da7b49b61533e4c2b8791c1"},{"path":"comfy/text_encoders/sa_t5.py","mode":"100644","type":"blob","sha":"2803926ac01867edc686c4ca6625a5c5aba32e0b","size":1625,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2803926ac01867edc686c4ca6625a5c5aba32e0b"},{"path":"comfy/text_encoders/sd2_clip.py","mode":"100644","type":"blob","sha":"700a23bf09f03f09290f677092bd25f29d6f065a","size":1521,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/700a23bf09f03f09290f677092bd25f29d6f065a"},{"path":"comfy/text_encoders/sd2_clip_config.json","mode":"100644","type":"blob","sha":"00893cfdc9b00f8eb7cf5aaa9c343e7fcd298d82","size":524,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00893cfdc9b00f8eb7cf5aaa9c343e7fcd298d82"},{"path":"comfy/text_encoders/sd3_clip.py","mode":"100644","type":"blob","sha":"ff5d412db1481fee09cf7742b9e32e90f6ed74d9","size":7822,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ff5d412db1481fee09cf7742b9e32e90f6ed74d9"},{"path":"comfy/text_encoders/spiece_tokenizer.py","mode":"100644","type":"blob","sha":"caccb3ca283b3f129f942ebfc9e5c274a71d9f3d","size":1253,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/caccb3ca283b3f129f942ebfc9e5c274a71d9f3d"},{"path":"comfy/text_encoders/t5.py","mode":"100644","type":"blob","sha":"e8588992a4b54713de4018975b8d58170a4d0d7e","size":12665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e8588992a4b54713de4018975b8d58170a4d0d7e"},{"path":"comfy/text_encoders/t5_config_base.json","mode":"100644","type":"blob","sha":"71f68327c27280ce150d0c8e92fd61eca0b52a63","size":495,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/71f68327c27280ce150d0c8e92fd61eca0b52a63"},{"path":"comfy/text_encoders/t5_config_xxl.json","mode":"100644","type":"blob","sha":"28283b51a11bed6a874499f82d411c16cc646eb1","size":509,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28283b51a11bed6a874499f82d411c16cc646eb1"},{"path":"comfy/text_encoders/t5_old_config_xxl.json","mode":"100644","type":"blob","sha":"c9fdd7782197ca0523ee82133e9b417fa947a5c5","size":499,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c9fdd7782197ca0523ee82133e9b417fa947a5c5"},{"path":"comfy/text_encoders/t5_pile_config_xl.json","mode":"100644","type":"blob","sha":"ee4e03f97a5b3a9927fc676816f210a364ee234b","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ee4e03f97a5b3a9927fc676816f210a364ee234b"},{"path":"comfy/text_encoders/t5_pile_tokenizer","mode":"040000","type":"tree","sha":"61d0722255e8ddcd4d58ab8c74d50a93e231d3fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/61d0722255e8ddcd4d58ab8c74d50a93e231d3fc"},{"path":"comfy/text_encoders/t5_pile_tokenizer/tokenizer.model","mode":"100644","type":"blob","sha":"22bccbcb41ec929cf0c9dbe8f41036db82e5e773","size":499723,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22bccbcb41ec929cf0c9dbe8f41036db82e5e773"},{"path":"comfy/text_encoders/t5_tokenizer","mode":"040000","type":"tree","sha":"7c69c468f1168f85f33f22ae21f7bc6eb990eeae","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7c69c468f1168f85f33f22ae21f7bc6eb990eeae"},{"path":"comfy/text_encoders/t5_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"17ade346a1042cbe0c1436f5bedcbd85c099d582","size":2543,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/17ade346a1042cbe0c1436f5bedcbd85c099d582"},{"path":"comfy/text_encoders/t5_tokenizer/tokenizer.json","mode":"100644","type":"blob","sha":"b11c92d7184d265f0dc857ec5d676aa81aa16262","size":2424256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b11c92d7184d265f0dc857ec5d676aa81aa16262"},{"path":"comfy/text_encoders/t5_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"02020eb6d20746871e1ea93f14c4475cf9368f98","size":20790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/02020eb6d20746871e1ea93f14c4475cf9368f98"},{"path":"comfy/text_encoders/umt5_config_base.json","mode":"100644","type":"blob","sha":"6b3618f075eb4503d0666bd50f2259cc34b653c4","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6b3618f075eb4503d0666bd50f2259cc34b653c4"},{"path":"comfy/text_encoders/umt5_config_xxl.json","mode":"100644","type":"blob","sha":"dfcb4b54bc95469e7b519aed847bb1efb034bdc1","size":512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dfcb4b54bc95469e7b519aed847bb1efb034bdc1"},{"path":"comfy/text_encoders/wan.py","mode":"100644","type":"blob","sha":"d50fa4b28df39ab358ae19bd9745b702985ba74d","size":2235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d50fa4b28df39ab358ae19bd9745b702985ba74d"},{"path":"comfy/utils.py","mode":"100644","type":"blob","sha":"0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d","size":47815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d"},{"path":"comfy/weight_adapter","mode":"040000","type":"tree","sha":"e8d6ebe1a91e29a7047a9fb4c6c3eba89c377549","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e8d6ebe1a91e29a7047a9fb4c6c3eba89c377549"},{"path":"comfy/weight_adapter/__init__.py","mode":"100644","type":"blob","sha":"b40f920e400fc895443d4016076d1ded406ae258","size":786,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b40f920e400fc895443d4016076d1ded406ae258"},{"path":"comfy/weight_adapter/base.py","mode":"100644","type":"blob","sha":"43644b106b0f647b4534af45f0273c38c7ed319b","size":5727,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/43644b106b0f647b4534af45f0273c38c7ed319b"},{"path":"comfy/weight_adapter/boft.py","mode":"100644","type":"blob","sha":"b2a2f1bd46bed5b177f9c583e8d329dc167af1c3","size":3706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b2a2f1bd46bed5b177f9c583e8d329dc167af1c3"},{"path":"comfy/weight_adapter/glora.py","mode":"100644","type":"blob","sha":"939abbba584549b049da0073b4336efab05e1b65","size":3476,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/939abbba584549b049da0073b4336efab05e1b65"},{"path":"comfy/weight_adapter/loha.py","mode":"100644","type":"blob","sha":"0abb2d4033fddd58d57e4f8f8e8c63e5a751d507","size":8819,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0abb2d4033fddd58d57e4f8f8e8c63e5a751d507"},{"path":"comfy/weight_adapter/lokr.py","mode":"100644","type":"blob","sha":"9b2aff2d7f86ee6eecf54468180f13871bdd1d85","size":7670,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9b2aff2d7f86ee6eecf54468180f13871bdd1d85"},{"path":"comfy/weight_adapter/lora.py","mode":"100644","type":"blob","sha":"4db004e502b1d539a947767f68abc7bcd7f0c3df","size":7208,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4db004e502b1d539a947767f68abc7bcd7f0c3df"},{"path":"comfy/weight_adapter/oft.py","mode":"100644","type":"blob","sha":"c0aab96353ca7e9b27eef690d320c2a0224b9d27","size":5431,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c0aab96353ca7e9b27eef690d320c2a0224b9d27"},{"path":"comfy_api","mode":"040000","type":"tree","sha":"3c67c6724d500af9ecd88a0ed0045bdb2d307098","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3c67c6724d500af9ecd88a0ed0045bdb2d307098"},{"path":"comfy_api/feature_flags.py","mode":"100644","type":"blob","sha":"0d4389a6e9e731a8b9e0f994584ab494981eacbc","size":1820,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d4389a6e9e731a8b9e0f994584ab494981eacbc"},{"path":"comfy_api/generate_api_stubs.py","mode":"100644","type":"blob","sha":"604a7eced8a5a408e77c75a7889f9c25fe3771d4","size":2869,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/604a7eced8a5a408e77c75a7889f9c25fe3771d4"},{"path":"comfy_api/input","mode":"040000","type":"tree","sha":"2b458ee4c4d934681ccfe5a8b54749ab6d390e06","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2b458ee4c4d934681ccfe5a8b54749ab6d390e06"},{"path":"comfy_api/input/__init__.py","mode":"100644","type":"blob","sha":"68ff782706e8ab4f8d40917f8ff5b8aea54c7f51","size":278,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68ff782706e8ab4f8d40917f8ff5b8aea54c7f51"},{"path":"comfy_api/input/basic_types.py","mode":"100644","type":"blob","sha":"5eadce86ac4462c7fd825e1171afa6b315a6be38","size":256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5eadce86ac4462c7fd825e1171afa6b315a6be38"},{"path":"comfy_api/input/video_types.py","mode":"100644","type":"blob","sha":"9ace78cbc039eb0de063ea1ec080134a2b44cac6","size":145,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9ace78cbc039eb0de063ea1ec080134a2b44cac6"},{"path":"comfy_api/input_impl","mode":"040000","type":"tree","sha":"9afa512bfd92c7ea607c717106cd6af72967e30d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9afa512bfd92c7ea607c717106cd6af72967e30d"},{"path":"comfy_api/input_impl/__init__.py","mode":"100644","type":"blob","sha":"b78ff0c08fbe31f073a38c580f4648eebcc47db3","size":192,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b78ff0c08fbe31f073a38c580f4648eebcc47db3"},{"path":"comfy_api/input_impl/video_types.py","mode":"100644","type":"blob","sha":"bd2e56ad51a2fa2340e63409b9038de463af3b2d","size":122,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bd2e56ad51a2fa2340e63409b9038de463af3b2d"},{"path":"comfy_api/internal","mode":"040000","type":"tree","sha":"a48cf623c0d9a64dedf49c75eebfc62811d9f04e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a48cf623c0d9a64dedf49c75eebfc62811d9f04e"},{"path":"comfy_api/internal/__init__.py","mode":"100644","type":"blob","sha":"4ca02e320bcb06ad7f6a8a7c8bd63f6efc18ea98","size":4913,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ca02e320bcb06ad7f6a8a7c8bd63f6efc18ea98"},{"path":"comfy_api/internal/api_registry.py","mode":"100644","type":"blob","sha":"7e3375cf60f8c27aed2774fcd58da4597516f1b7","size":1073,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e3375cf60f8c27aed2774fcd58da4597516f1b7"},{"path":"comfy_api/internal/async_to_sync.py","mode":"100644","type":"blob","sha":"f5f805a6215697a499f2bf48656e8cc10b4a2560","size":39747,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f5f805a6215697a499f2bf48656e8cc10b4a2560"},{"path":"comfy_api/internal/singleton.py","mode":"100644","type":"blob","sha":"75f16f98ed7aab3378f55e749b69e806392d5bd7","size":1122,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/75f16f98ed7aab3378f55e749b69e806392d5bd7"},{"path":"comfy_api/latest","mode":"040000","type":"tree","sha":"9341c85118d44c3c3fa6680ce7daf8f7616e8d59","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9341c85118d44c3c3fa6680ce7daf8f7616e8d59"},{"path":"comfy_api/latest/__init__.py","mode":"100644","type":"blob","sha":"b19a97f1deff52e004429308076b914d0c17a848","size":4582,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b19a97f1deff52e004429308076b914d0c17a848"},{"path":"comfy_api/latest/_input","mode":"040000","type":"tree","sha":"9d92fafda1b096162129c75cfa8ccaca8996fb28","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9d92fafda1b096162129c75cfa8ccaca8996fb28"},{"path":"comfy_api/latest/_input/__init__.py","mode":"100644","type":"blob","sha":"14f0e72f46bfb079e85a1c0e56993b5a99425ffe","size":213,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14f0e72f46bfb079e85a1c0e56993b5a99425ffe"},{"path":"comfy_api/latest/_input/basic_types.py","mode":"100644","type":"blob","sha":"245c6cbb1e775cf3b0d5369ca2f954ab6ca504b3","size":930,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/245c6cbb1e775cf3b0d5369ca2f954ab6ca504b3"},{"path":"comfy_api/latest/_input/video_types.py","mode":"100644","type":"blob","sha":"a335df4d0cd34823ba8c3cc0004e0154669a1af7","size":2592,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a335df4d0cd34823ba8c3cc0004e0154669a1af7"},{"path":"comfy_api/latest/_input_impl","mode":"040000","type":"tree","sha":"46498b89c88addfcb016a3598830981188b6d267","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/46498b89c88addfcb016a3598830981188b6d267"},{"path":"comfy_api/latest/_input_impl/__init__.py","mode":"100644","type":"blob","sha":"02901b8b933caa569cd9dd45eb8e39e7c66e43a1","size":145,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/02901b8b933caa569cd9dd45eb8e39e7c66e43a1"},{"path":"comfy_api/latest/_input_impl/video_types.py","mode":"100644","type":"blob","sha":"f646504c80b09cc39044b231afe1aedea8a88446","size":12837,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f646504c80b09cc39044b231afe1aedea8a88446"},{"path":"comfy_api/latest/_io.py","mode":"100644","type":"blob","sha":"0b701260f883fa17004966196ec33844d6705b11","size":61120,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0b701260f883fa17004966196ec33844d6705b11"},{"path":"comfy_api/latest/_resources.py","mode":"100644","type":"blob","sha":"a6bdda97204ef1079a679bc6fe5ed49f05b683f6","size":2385,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a6bdda97204ef1079a679bc6fe5ed49f05b683f6"},{"path":"comfy_api/latest/_ui.py","mode":"100644","type":"blob","sha":"b0bbabe2ab246380518794ac0d364c9201727dc5","size":17270,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b0bbabe2ab246380518794ac0d364c9201727dc5"},{"path":"comfy_api/latest/_util","mode":"040000","type":"tree","sha":"bcbd12463fff2b3ff9f5fc0bff25051d6cfdc49d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bcbd12463fff2b3ff9f5fc0bff25051d6cfdc49d"},{"path":"comfy_api/latest/_util/__init__.py","mode":"100644","type":"blob","sha":"9019c46dbbcd58a7024301d3bc1bd53570a83bc0","size":167,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9019c46dbbcd58a7024301d3bc1bd53570a83bc0"},{"path":"comfy_api/latest/_util/video_types.py","mode":"100644","type":"blob","sha":"c3e3d8e3a5bb25cdfe51309f0b9fdb9a55d97eb6","size":1289,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3e3d8e3a5bb25cdfe51309f0b9fdb9a55d97eb6"},{"path":"comfy_api/latest/generated","mode":"040000","type":"tree","sha":"e0c3dd2e08fbe10ac79d5415676d6249f166dbc2","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e0c3dd2e08fbe10ac79d5415676d6249f166dbc2"},{"path":"comfy_api/latest/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"525c074dda49d12f5f9eca7bd3b82abe8799c862","size":867,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/525c074dda49d12f5f9eca7bd3b82abe8799c862"},{"path":"comfy_api/torch_helpers","mode":"040000","type":"tree","sha":"efdfdd85f3d561ddbdce9143e08e2b5385759933","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/efdfdd85f3d561ddbdce9143e08e2b5385759933"},{"path":"comfy_api/torch_helpers/__init__.py","mode":"100644","type":"blob","sha":"be7ae7a6165bdeed5013806a7adde1a02c0ac93f","size":101,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be7ae7a6165bdeed5013806a7adde1a02c0ac93f"},{"path":"comfy_api/torch_helpers/torch_compile.py","mode":"100644","type":"blob","sha":"9223f58db22415897cbf3d6239511d289f5e1091","size":2800,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9223f58db22415897cbf3d6239511d289f5e1091"},{"path":"comfy_api/util.py","mode":"100644","type":"blob","sha":"1aa9606d2e4691657ed3580fc7a1e4a55aaf886c","size":210,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1aa9606d2e4691657ed3580fc7a1e4a55aaf886c"},{"path":"comfy_api/util","mode":"040000","type":"tree","sha":"bc8f4068f0ee1b9d9ec7b697bb0df68a4d7986d7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bc8f4068f0ee1b9d9ec7b697bb0df68a4d7986d7"},{"path":"comfy_api/util/__init__.py","mode":"100644","type":"blob","sha":"4c8a89d1e077d0b331de5506ba69b50a99de2bd2","size":210,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c8a89d1e077d0b331de5506ba69b50a99de2bd2"},{"path":"comfy_api/util/video_types.py","mode":"100644","type":"blob","sha":"68c780d64daffa6fb621821e111330cb388c07e0","size":239,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68c780d64daffa6fb621821e111330cb388c07e0"},{"path":"comfy_api/v0_0_1","mode":"040000","type":"tree","sha":"5670d4c785befc4c48ba8df9d40d6af25968e302","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5670d4c785befc4c48ba8df9d40d6af25968e302"},{"path":"comfy_api/v0_0_1/__init__.py","mode":"100644","type":"blob","sha":"93608771d156017233cadc5af3ba2d52c82f1529","size":977,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93608771d156017233cadc5af3ba2d52c82f1529"},{"path":"comfy_api/v0_0_1/generated","mode":"040000","type":"tree","sha":"74cc9e5b8d9a8e16cc13dddc2d0345a00eba49df","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/74cc9e5b8d9a8e16cc13dddc2d0345a00eba49df"},{"path":"comfy_api/v0_0_1/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"270030324cd155fdadc0f0d5009bca4be948fc0a","size":874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/270030324cd155fdadc0f0d5009bca4be948fc0a"},{"path":"comfy_api/v0_0_2","mode":"040000","type":"tree","sha":"4f12357afbfb2fe1408c409a1d981c39f6101a13","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/4f12357afbfb2fe1408c409a1d981c39f6101a13"},{"path":"comfy_api/v0_0_2/__init__.py","mode":"100644","type":"blob","sha":"de0f95001ba79361ce9f85dff20874351be4e725","size":927,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/de0f95001ba79361ce9f85dff20874351be4e725"},{"path":"comfy_api/v0_0_2/generated","mode":"040000","type":"tree","sha":"c646a6b91593cd4602baba9c77162d179e2445a9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c646a6b91593cd4602baba9c77162d179e2445a9"},{"path":"comfy_api/v0_0_2/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"7fcec685e880e68106a35f6fd8ebf84ea07769e3","size":874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7fcec685e880e68106a35f6fd8ebf84ea07769e3"},{"path":"comfy_api/version_list.py","mode":"100644","type":"blob","sha":"7cb1871d5a1fbce221d100dd63327361343faafe","size":353,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7cb1871d5a1fbce221d100dd63327361343faafe"},{"path":"comfy_api_nodes","mode":"040000","type":"tree","sha":"98310259ab1f8a480db5a33a7e0140a212fcd35e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/98310259ab1f8a480db5a33a7e0140a212fcd35e"},{"path":"comfy_api_nodes/README.md","mode":"100644","type":"blob","sha":"f56d6c8606346dc4d6c8d688cc8ca4f52cb5c9cd","size":2836,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f56d6c8606346dc4d6c8d688cc8ca4f52cb5c9cd"},{"path":"comfy_api_nodes/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy_api_nodes/apinode_utils.py","mode":"100644","type":"blob","sha":"4bab539f7253aff2eadc11c252a6e27d008bba5c","size":24925,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4bab539f7253aff2eadc11c252a6e27d008bba5c"},{"path":"comfy_api_nodes/apis","mode":"040000","type":"tree","sha":"d0385aaef520f73974cb48ebd8d73e6054c0e3c5","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d0385aaef520f73974cb48ebd8d73e6054c0e3c5"},{"path":"comfy_api_nodes/apis/PixverseController.py","mode":"100644","type":"blob","sha":"310c0f54655d72a76eb2abe2d843cc47e28bc37a","size":392,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/310c0f54655d72a76eb2abe2d843cc47e28bc37a"},{"path":"comfy_api_nodes/apis/PixverseDto.py","mode":"100644","type":"blob","sha":"323c38e963903e523431fac19f067b88d051e396","size":2000,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/323c38e963903e523431fac19f067b88d051e396"},{"path":"comfy_api_nodes/apis/__init__.py","mode":"100644","type":"blob","sha":"ee2aa1ce643e3682ff935f11fba141eeae734a9a","size":214068,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ee2aa1ce643e3682ff935f11fba141eeae734a9a"},{"path":"comfy_api_nodes/apis/bfl_api.py","mode":"100644","type":"blob","sha":"0e90aef7c6811e2df28a0675563750d35669bf39","size":11208,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0e90aef7c6811e2df28a0675563750d35669bf39"},{"path":"comfy_api_nodes/apis/client.py","mode":"100644","type":"blob","sha":"d05e1c16a9bb17e7e4f5bbd88e0ef945556dbfba","size":39199,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d05e1c16a9bb17e7e4f5bbd88e0ef945556dbfba"},{"path":"comfy_api_nodes/apis/gemini_api.py","mode":"100644","type":"blob","sha":"2bf28bf931b3562c1068ee38d00a22eeee133780","size":847,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2bf28bf931b3562c1068ee38d00a22eeee133780"},{"path":"comfy_api_nodes/apis/luma_api.py","mode":"100644","type":"blob","sha":"632c4ab9697a8ab2659dc0171890e739788b286d","size":8205,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/632c4ab9697a8ab2659dc0171890e739788b286d"},{"path":"comfy_api_nodes/apis/pika_defs.py","mode":"100644","type":"blob","sha":"232558cd7526890723fda449e34e6c3b9c9177af","size":2903,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/232558cd7526890723fda449e34e6c3b9c9177af"},{"path":"comfy_api_nodes/apis/pixverse_api.py","mode":"100644","type":"blob","sha":"9bb29c3835104784087d99821c85f9ddf6ba218c","size":4206,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9bb29c3835104784087d99821c85f9ddf6ba218c"},{"path":"comfy_api_nodes/apis/recraft_api.py","mode":"100644","type":"blob","sha":"c36d95f24e6ab53f5790b0ac97f71a26087a410f","size":8805,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c36d95f24e6ab53f5790b0ac97f71a26087a410f"},{"path":"comfy_api_nodes/apis/request_logger.py","mode":"100644","type":"blob","sha":"c6974d35cce49bcbf09f20185e4a53de4efb4955","size":6444,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c6974d35cce49bcbf09f20185e4a53de4efb4955"},{"path":"comfy_api_nodes/apis/rodin_api.py","mode":"100644","type":"blob","sha":"fc26a6e73a0f09ac9177942a52a0c0e6e69ab656","size":2080,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fc26a6e73a0f09ac9177942a52a0c0e6e69ab656"},{"path":"comfy_api_nodes/apis/stability_api.py","mode":"100644","type":"blob","sha":"7183601873b730b8e08e0ce0afefb93604656fb6","size":4394,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7183601873b730b8e08e0ce0afefb93604656fb6"},{"path":"comfy_api_nodes/apis/tripo_api.py","mode":"100644","type":"blob","sha":"9f43d4d0901bb24170f9b628b6aea4d157e21deb","size":13569,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9f43d4d0901bb24170f9b628b6aea4d157e21deb"},{"path":"comfy_api_nodes/canary.py","mode":"100644","type":"blob","sha":"4df7590b64fea8f6f3f77fde912cb2f64fdad357","size":271,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4df7590b64fea8f6f3f77fde912cb2f64fdad357"},{"path":"comfy_api_nodes/mapper_utils.py","mode":"100644","type":"blob","sha":"6fab8f4bbc6ce4495ce41588f2fba8103abeffeb","size":3828,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6fab8f4bbc6ce4495ce41588f2fba8103abeffeb"},{"path":"comfy_api_nodes/nodes_bfl.py","mode":"100644","type":"blob","sha":"77914021d39a9991bdebb2416797174c262f69b2","size":36448,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/77914021d39a9991bdebb2416797174c262f69b2"},{"path":"comfy_api_nodes/nodes_bytedance.py","mode":"100644","type":"blob","sha":"fcb01820c09328a1e9b63097f7b4fe1195dfdb10","size":45084,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fcb01820c09328a1e9b63097f7b4fe1195dfdb10"},{"path":"comfy_api_nodes/nodes_gemini.py","mode":"100644","type":"blob","sha":"c1941cbe929fa2973ed9472e41ec1a1c4f2b1751","size":24215,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1941cbe929fa2973ed9472e41ec1a1c4f2b1751"},{"path":"comfy_api_nodes/nodes_ideogram.py","mode":"100644","type":"blob","sha":"2d1c32e4f30a47e056ffd5212fd5486fce56e9f8","size":28911,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d1c32e4f30a47e056ffd5212fd5486fce56e9f8"},{"path":"comfy_api_nodes/nodes_kling.py","mode":"100644","type":"blob","sha":"2117cfa913ba78d4461944106721312c87c0a416","size":66815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2117cfa913ba78d4461944106721312c87c0a416"},{"path":"comfy_api_nodes/nodes_luma.py","mode":"100644","type":"blob","sha":"9cab2ca82b40f99e1562a09475a92e63e6f02249","size":27844,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9cab2ca82b40f99e1562a09475a92e63e6f02249"},{"path":"comfy_api_nodes/nodes_minimax.py","mode":"100644","type":"blob","sha":"caa3d4260c89dafb71fece8abb293fbe5cef0d2d","size":18854,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/caa3d4260c89dafb71fece8abb293fbe5cef0d2d"},{"path":"comfy_api_nodes/nodes_moonvalley.py","mode":"100644","type":"blob","sha":"77e4b536c96570da147856b3f15ba8432e379ee8","size":28218,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/77e4b536c96570da147856b3f15ba8432e379ee8"},{"path":"comfy_api_nodes/nodes_openai.py","mode":"100644","type":"blob","sha":"e3b81de7599e96bfb1c8828b2cff149bb699d116","size":34197,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e3b81de7599e96bfb1c8828b2cff149bb699d116"},{"path":"comfy_api_nodes/nodes_pika.py","mode":"100644","type":"blob","sha":"822cfee642c6dac0a5de5159181cba9144af2bb4","size":24424,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/822cfee642c6dac0a5de5159181cba9144af2bb4"},{"path":"comfy_api_nodes/nodes_pixverse.py","mode":"100644","type":"blob","sha":"a97610f06d0f073fe8c6f2bfb926a9038a83ac8b","size":19200,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a97610f06d0f073fe8c6f2bfb926a9038a83ac8b"},{"path":"comfy_api_nodes/nodes_recraft.py","mode":"100644","type":"blob","sha":"8beed5675c17cf8fe6a99d0411228ec633b7a55e","size":38413,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8beed5675c17cf8fe6a99d0411228ec633b7a55e"},{"path":"comfy_api_nodes/nodes_rodin.py","mode":"100644","type":"blob","sha":"0eb762a1c35dfa7f4c8c827de126a47019e836b7","size":19237,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0eb762a1c35dfa7f4c8c827de126a47019e836b7"},{"path":"comfy_api_nodes/nodes_runway.py","mode":"100644","type":"blob","sha":"ea22692cb6c9c773a3317895eebb999c4d6b10f4","size":21614,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ea22692cb6c9c773a3317895eebb999c4d6b10f4"},{"path":"comfy_api_nodes/nodes_sora.py","mode":"100644","type":"blob","sha":"2d532d637b5bdf5c3bb06c05eb1f86f24974195d","size":5852,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d532d637b5bdf5c3bb06c05eb1f86f24974195d"},{"path":"comfy_api_nodes/nodes_stability.py","mode":"100644","type":"blob","sha":"bfb67fc9d566c916517b854fdd5a63afaf2fee50","size":35505,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bfb67fc9d566c916517b854fdd5a63afaf2fee50"},{"path":"comfy_api_nodes/nodes_tripo.py","mode":"100644","type":"blob","sha":"d08cf9007655f1c6a133d3960f3a139a3e62a1a1","size":22737,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d08cf9007655f1c6a133d3960f3a139a3e62a1a1"},{"path":"comfy_api_nodes/nodes_veo2.py","mode":"100644","type":"blob","sha":"9d5eced1e7b0024d9ea74854115c6f1b39ddb76f","size":15383,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d5eced1e7b0024d9ea74854115c6f1b39ddb76f"},{"path":"comfy_api_nodes/nodes_vidu.py","mode":"100644","type":"blob","sha":"ac28b683c8d60c220d383fd9d459f28447fdafc5","size":21838,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac28b683c8d60c220d383fd9d459f28447fdafc5"},{"path":"comfy_api_nodes/nodes_wan.py","mode":"100644","type":"blob","sha":"0be5daadbf5ffc546ffce5ae8fe508cbd956d1be","size":26570,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0be5daadbf5ffc546ffce5ae8fe508cbd956d1be"},{"path":"comfy_api_nodes/redocly-dev.yaml","mode":"100644","type":"blob","sha":"d9e3cab70ff18a924faf3f793a71710846beeae5","size":330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d9e3cab70ff18a924faf3f793a71710846beeae5"},{"path":"comfy_api_nodes/redocly.yaml","mode":"100644","type":"blob","sha":"d102345b1ec932577e310f2e07c4e32017c189d5","size":255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d102345b1ec932577e310f2e07c4e32017c189d5"},{"path":"comfy_api_nodes/util","mode":"040000","type":"tree","sha":"a3dd53ccb68345fa7546dd2d3189e42e922c6608","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a3dd53ccb68345fa7546dd2d3189e42e922c6608"},{"path":"comfy_api_nodes/util/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy_api_nodes/util/validation_utils.py","mode":"100644","type":"blob","sha":"ca913e9b3eedc147bb969dab4a27bd7cf25c9edc","size":5994,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca913e9b3eedc147bb969dab4a27bd7cf25c9edc"},{"path":"comfy_config","mode":"040000","type":"tree","sha":"0ef856f430484cfd2fb39a472d067426fc607341","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0ef856f430484cfd2fb39a472d067426fc607341"},{"path":"comfy_config/config_parser.py","mode":"100644","type":"blob","sha":"8da7bd901f421f3aaa5b620c9595313c30585ae1","size":5781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8da7bd901f421f3aaa5b620c9595313c30585ae1"},{"path":"comfy_config/types.py","mode":"100644","type":"blob","sha":"59448466b2cb6725c622fea1151f51e521d850fc","size":3016,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/59448466b2cb6725c622fea1151f51e521d850fc"},{"path":"comfy_execution","mode":"040000","type":"tree","sha":"5e8aa8d109de17133330f14d6ad00d978e876798","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5e8aa8d109de17133330f14d6ad00d978e876798"},{"path":"comfy_execution/caching.py","mode":"100644","type":"blob","sha":"41224ce3b82e0432ed89523101c2b3c8ef5f8f1a","size":17360,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/41224ce3b82e0432ed89523101c2b3c8ef5f8f1a"},{"path":"comfy_execution/graph.py","mode":"100644","type":"blob","sha":"f4b427265da7c50684dc66bb6f15682b4685bd0d","size":12566,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f4b427265da7c50684dc66bb6f15682b4685bd0d"},{"path":"comfy_execution/graph_utils.py","mode":"100644","type":"blob","sha":"496d2c634982aa5afc8d58b9db758f97b3b5c2d8","size":5626,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/496d2c634982aa5afc8d58b9db758f97b3b5c2d8"},{"path":"comfy_execution/progress.py","mode":"100644","type":"blob","sha":"f951a33507f5da68785b7317eb6cb6210102f0f5","size":11823,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f951a33507f5da68785b7317eb6cb6210102f0f5"},{"path":"comfy_execution/utils.py","mode":"100644","type":"blob","sha":"62d32f1013df633889b59d2207154d1cbbbfe347","size":1529,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/62d32f1013df633889b59d2207154d1cbbbfe347"},{"path":"comfy_execution/validation.py","mode":"100644","type":"blob","sha":"cec105fc9f1bfbecdc17c37cfec9ecf60f188814","size":1558,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cec105fc9f1bfbecdc17c37cfec9ecf60f188814"},{"path":"comfy_extras","mode":"040000","type":"tree","sha":"a106ceb6fb79bf096fe46e8d5595d29c0a569adf","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a106ceb6fb79bf096fe46e8d5595d29c0a569adf"},{"path":"comfy_extras/chainner_models","mode":"040000","type":"tree","sha":"abf26dd920477463c2e68c7f63839151df973a7c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/abf26dd920477463c2e68c7f63839151df973a7c"},{"path":"comfy_extras/chainner_models/model_loading.py","mode":"100644","type":"blob","sha":"1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c","size":260,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c"},{"path":"comfy_extras/nodes_ace.py","mode":"100644","type":"blob","sha":"1409233c924f6828c4d8467a57605318b810b5d0","size":2238,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1409233c924f6828c4d8467a57605318b810b5d0"},{"path":"comfy_extras/nodes_advanced_samplers.py","mode":"100644","type":"blob","sha":"5532ffe6a241344abd6d3c3b62cc0104c67316d3","size":4416,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5532ffe6a241344abd6d3c3b62cc0104c67316d3"},{"path":"comfy_extras/nodes_align_your_steps.py","mode":"100644","type":"blob","sha":"edd5dadd4e18068aa2e42c51a8cb941933c2924e","size":2640,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/edd5dadd4e18068aa2e42c51a8cb941933c2924e"},{"path":"comfy_extras/nodes_apg.py","mode":"100644","type":"blob","sha":"f27ae7da8ce795d1148e12e43016edaefabcb151","size":3542,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f27ae7da8ce795d1148e12e43016edaefabcb151"},{"path":"comfy_extras/nodes_attention_multiply.py","mode":"100644","type":"blob","sha":"c0e494c2ad191f63f6e3e9ccf58eced0a203aed5","size":6196,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c0e494c2ad191f63f6e3e9ccf58eced0a203aed5"},{"path":"comfy_extras/nodes_audio.py","mode":"100644","type":"blob","sha":"2ed7e0b228fcd693274c19482d84d0249a4eae6c","size":22434,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2ed7e0b228fcd693274c19482d84d0249a4eae6c"},{"path":"comfy_extras/nodes_audio_encoder.py","mode":"100644","type":"blob","sha":"13aacd41a47e75e07cff83c7b2ff87e2c7343b30","size":2050,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/13aacd41a47e75e07cff83c7b2ff87e2c7343b30"},{"path":"comfy_extras/nodes_camera_trajectory.py","mode":"100644","type":"blob","sha":"eb7ef363cb3e3e3c6d4dbf09176b6678215b2b44","size":9691,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eb7ef363cb3e3e3c6d4dbf09176b6678215b2b44"},{"path":"comfy_extras/nodes_canny.py","mode":"100644","type":"blob","sha":"576f3640ae9461007ba723580fcf2d8842b63a3f","size":1446,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/576f3640ae9461007ba723580fcf2d8842b63a3f"},{"path":"comfy_extras/nodes_cfg.py","mode":"100644","type":"blob","sha":"4ebb4b51eef108fc11d2050e3ee652f2591a45b3","size":2943,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ebb4b51eef108fc11d2050e3ee652f2591a45b3"},{"path":"comfy_extras/nodes_chroma_radiance.py","mode":"100644","type":"blob","sha":"381989818b53a3db5b3969a8a2c48975538d144c","size":4222,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/381989818b53a3db5b3969a8a2c48975538d144c"},{"path":"comfy_extras/nodes_clip_sdxl.py","mode":"100644","type":"blob","sha":"520ff0e3c22c2b7df6bb89751ee23c293ab2bd24","size":3109,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/520ff0e3c22c2b7df6bb89751ee23c293ab2bd24"},{"path":"comfy_extras/nodes_compositing.py","mode":"100644","type":"blob","sha":"e4e4e1cbc09e9777b45bdc39b0ba1ec2f9adf9ea","size":8841,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e4e4e1cbc09e9777b45bdc39b0ba1ec2f9adf9ea"},{"path":"comfy_extras/nodes_cond.py","mode":"100644","type":"blob","sha":"8b06e3de9fad7d1b17d152a191942fcaea59cae7","size":2280,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8b06e3de9fad7d1b17d152a191942fcaea59cae7"},{"path":"comfy_extras/nodes_context_windows.py","mode":"100644","type":"blob","sha":"1c3d9e697d6b3a0352e72403bd657d154b8421b4","size":5497,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1c3d9e697d6b3a0352e72403bd657d154b8421b4"},{"path":"comfy_extras/nodes_controlnet.py","mode":"100644","type":"blob","sha":"2d20e1fed7c26c8115f4b9878b0b54911e7a2e7f","size":2534,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d20e1fed7c26c8115f4b9878b0b54911e7a2e7f"},{"path":"comfy_extras/nodes_cosmos.py","mode":"100644","type":"blob","sha":"7dd129d199d2ebdcbbf7a0034d9c1a0889f5f1e2","size":6591,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7dd129d199d2ebdcbbf7a0034d9c1a0889f5f1e2"},{"path":"comfy_extras/nodes_custom_sampler.py","mode":"100644","type":"blob","sha":"d011f433b5db84d665dc20349b9b9aa75a703df9","size":35790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d011f433b5db84d665dc20349b9b9aa75a703df9"},{"path":"comfy_extras/nodes_differential_diffusion.py","mode":"100644","type":"blob","sha":"6dfdf466c3811052f5fee8f94eb299a9c965b3cd","size":2456,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6dfdf466c3811052f5fee8f94eb299a9c965b3cd"},{"path":"comfy_extras/nodes_easycache.py","mode":"100644","type":"blob","sha":"c170e9fd9be8c0d36d2f81fc4c83ecf567303bf3","size":24926,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c170e9fd9be8c0d36d2f81fc4c83ecf567303bf3"},{"path":"comfy_extras/nodes_edit_model.py","mode":"100644","type":"blob","sha":"36da66f34e1d19e54ed2ffc8338a232bf8879945","size":1263,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/36da66f34e1d19e54ed2ffc8338a232bf8879945"},{"path":"comfy_extras/nodes_eps.py","mode":"100644","type":"blob","sha":"7852d85e5aca1a79bc8faa20df7fd28cc0c0bec2","size":2365,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7852d85e5aca1a79bc8faa20df7fd28cc0c0bec2"},{"path":"comfy_extras/nodes_flux.py","mode":"100644","type":"blob","sha":"ce1b2e89fa127732f86c64e4b78da86e9c15781b","size":5174,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce1b2e89fa127732f86c64e4b78da86e9c15781b"},{"path":"comfy_extras/nodes_freelunch.py","mode":"100644","type":"blob","sha":"e3ac58447b29f604debb5bfc0aed3a5f100a4ae9","size":4891,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e3ac58447b29f604debb5bfc0aed3a5f100a4ae9"},{"path":"comfy_extras/nodes_fresca.py","mode":"100644","type":"blob","sha":"f308eb0c17601143600def666a03a52717df11b1","size":3880,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f308eb0c17601143600def666a03a52717df11b1"},{"path":"comfy_extras/nodes_gits.py","mode":"100644","type":"blob","sha":"25367560a605dc451ee1c819fcf03666f6dc26f9","size":46458,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/25367560a605dc451ee1c819fcf03666f6dc26f9"},{"path":"comfy_extras/nodes_hidream.py","mode":"100644","type":"blob","sha":"eee683ee148a75e7a9601a7fccb0054bd40e6341","size":2946,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eee683ee148a75e7a9601a7fccb0054bd40e6341"},{"path":"comfy_extras/nodes_hooks.py","mode":"100644","type":"blob","sha":"1edc06f3d7ae6b0682b03afe666ef936b16f2f28","size":28661,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1edc06f3d7ae6b0682b03afe666ef936b16f2f28"},{"path":"comfy_extras/nodes_hunyuan.py","mode":"100644","type":"blob","sha":"f7c34d0590e9fc4e4605f2f2a5206d8c6ab0d248","size":9135,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7c34d0590e9fc4e4605f2f2a5206d8c6ab0d248"},{"path":"comfy_extras/nodes_hunyuan3d.py","mode":"100644","type":"blob","sha":"f6e71e0a898a388b368c59bdde79336e5c2f3ba0","size":20147,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f6e71e0a898a388b368c59bdde79336e5c2f3ba0"},{"path":"comfy_extras/nodes_hypernetwork.py","mode":"100644","type":"blob","sha":"665632292782e00fff4d73fa085e9c397a9bec4f","size":4593,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/665632292782e00fff4d73fa085e9c397a9bec4f"},{"path":"comfy_extras/nodes_hypertile.py","mode":"100644","type":"blob","sha":"0ad5e677301b9762bf60158db6d07a2456302db6","size":3381,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0ad5e677301b9762bf60158db6d07a2456302db6"},{"path":"comfy_extras/nodes_images.py","mode":"100644","type":"blob","sha":"392aea32c268a4d1abb38b9b8825323467f1cb75","size":24428,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/392aea32c268a4d1abb38b9b8825323467f1cb75"},{"path":"comfy_extras/nodes_ip2p.py","mode":"100644","type":"blob","sha":"78f29915db2e5038da2f62fc82fc30a3e1a0800d","size":1964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/78f29915db2e5038da2f62fc82fc30a3e1a0800d"},{"path":"comfy_extras/nodes_latent.py","mode":"100644","type":"blob","sha":"d2df07ff965465be1f7fc29d194490fb3cd1a572","size":13196,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d2df07ff965465be1f7fc29d194490fb3cd1a572"},{"path":"comfy_extras/nodes_load_3d.py","mode":"100644","type":"blob","sha":"899608149aba1861b9627f22d517dc0feb41d9cc","size":5827,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/899608149aba1861b9627f22d517dc0feb41d9cc"},{"path":"comfy_extras/nodes_lora_extract.py","mode":"100644","type":"blob","sha":"a2375cba712baaf60ba2ff2a5a82f67f1d6c77c5","size":5118,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2375cba712baaf60ba2ff2a5a82f67f1d6c77c5"},{"path":"comfy_extras/nodes_lotus.py","mode":"100644","type":"blob","sha":"9f62ba2bf3b54a1d42e693b0db4696640ec0d354","size":34027,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9f62ba2bf3b54a1d42e693b0db4696640ec0d354"},{"path":"comfy_extras/nodes_lt.py","mode":"100644","type":"blob","sha":"50da5f4eb60628518f81fc716cd592b6ee581100","size":20097,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/50da5f4eb60628518f81fc716cd592b6ee581100"},{"path":"comfy_extras/nodes_lumina2.py","mode":"100644","type":"blob","sha":"89ff2397accc5c391842d947cc94838f1344db8a","size":5459,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/89ff2397accc5c391842d947cc94838f1344db8a"},{"path":"comfy_extras/nodes_mahiro.py","mode":"100644","type":"blob","sha":"07b3353f42f9bd31cbf0acb8ba669619e9bc8e32","size":1899,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/07b3353f42f9bd31cbf0acb8ba669619e9bc8e32"},{"path":"comfy_extras/nodes_mask.py","mode":"100644","type":"blob","sha":"a5e4050083dec23da29f4ad9005f39143762ccb7","size":14070,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a5e4050083dec23da29f4ad9005f39143762ccb7"},{"path":"comfy_extras/nodes_mochi.py","mode":"100644","type":"blob","sha":"d750194fcc1932384a2a9d636ee50369b79604cb","size":1367,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d750194fcc1932384a2a9d636ee50369b79604cb"},{"path":"comfy_extras/nodes_model_advanced.py","mode":"100644","type":"blob","sha":"ae5d2c563183262456fd6a9668445b6b798108ac","size":12235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae5d2c563183262456fd6a9668445b6b798108ac"},{"path":"comfy_extras/nodes_model_downscale.py","mode":"100644","type":"blob","sha":"f7ca9699d5984442dc9c0ec660755d07dcb5b6cc","size":2946,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7ca9699d5984442dc9c0ec660755d07dcb5b6cc"},{"path":"comfy_extras/nodes_model_merging.py","mode":"100644","type":"blob","sha":"f20beab7d480391cbd4deb2f855a43c18d19ae33","size":13768,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f20beab7d480391cbd4deb2f855a43c18d19ae33"},{"path":"comfy_extras/nodes_model_merging_model_specific.py","mode":"100644","type":"blob","sha":"55eb3ccfeadd4dd824932503ce244ecedc815f26","size":11580,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/55eb3ccfeadd4dd824932503ce244ecedc815f26"},{"path":"comfy_extras/nodes_model_patch.py","mode":"100644","type":"blob","sha":"783c59b6b249647ae74c860980fb6c25443ddd03","size":13710,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/783c59b6b249647ae74c860980fb6c25443ddd03"},{"path":"comfy_extras/nodes_morphology.py","mode":"100644","type":"blob","sha":"67377e1bc94d0523f2aa3a95e83ff30124e23d22","size":3826,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/67377e1bc94d0523f2aa3a95e83ff30124e23d22"},{"path":"comfy_extras/nodes_optimalsteps.py","mode":"100644","type":"blob","sha":"73f0104d8bc5fcc503bde7c252fbd7d2c9b1263d","size":2485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/73f0104d8bc5fcc503bde7c252fbd7d2c9b1263d"},{"path":"comfy_extras/nodes_pag.py","mode":"100644","type":"blob","sha":"79fea5f0cee47b953fc4b0026de58b9af6880c2e","size":2181,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/79fea5f0cee47b953fc4b0026de58b9af6880c2e"},{"path":"comfy_extras/nodes_perpneg.py","mode":"100644","type":"blob","sha":"cd068ce9c2c8e08e0ee3db745798f33336f2283c","size":6521,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd068ce9c2c8e08e0ee3db745798f33336f2283c"},{"path":"comfy_extras/nodes_photomaker.py","mode":"100644","type":"blob","sha":"228183c074e2f946b21a5975507b7b17ac6fd257","size":8099,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/228183c074e2f946b21a5975507b7b17ac6fd257"},{"path":"comfy_extras/nodes_pixart.py","mode":"100644","type":"blob","sha":"a23e87b1fd14ae630c6267f7d66360051e8e0563","size":1443,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a23e87b1fd14ae630c6267f7d66360051e8e0563"},{"path":"comfy_extras/nodes_post_processing.py","mode":"100644","type":"blob","sha":"34c388a5ad69cd1f56a65e4877363e7a6d90ec56","size":10189,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/34c388a5ad69cd1f56a65e4877363e7a6d90ec56"},{"path":"comfy_extras/nodes_preview_any.py","mode":"100644","type":"blob","sha":"e749fa6ae093421b9fdfb13848797f59b618bfc9","size":1182,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e749fa6ae093421b9fdfb13848797f59b618bfc9"},{"path":"comfy_extras/nodes_primitive.py","mode":"100644","type":"blob","sha":"5a1aeba800773fb64c58eab2a87c91f2e1d682a8","size":2824,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5a1aeba800773fb64c58eab2a87c91f2e1d682a8"},{"path":"comfy_extras/nodes_qwen.py","mode":"100644","type":"blob","sha":"525239ae577172fd1149b94f5167d6a0a7077694","size":4863,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/525239ae577172fd1149b94f5167d6a0a7077694"},{"path":"comfy_extras/nodes_rebatch.py","mode":"100644","type":"blob","sha":"5f4e82aef2a06ad7c9a717f74d8d2880a85090be","size":5655,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5f4e82aef2a06ad7c9a717f74d8d2880a85090be"},{"path":"comfy_extras/nodes_sag.py","mode":"100644","type":"blob","sha":"0f47db30b72af7916f012ee8a3d3415247ec4490","size":6582,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f47db30b72af7916f012ee8a3d3415247ec4490"},{"path":"comfy_extras/nodes_sd3.py","mode":"100644","type":"blob","sha":"14782cb2bb3e027230ac0480fa4dd0189494854f","size":7978,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14782cb2bb3e027230ac0480fa4dd0189494854f"},{"path":"comfy_extras/nodes_sdupscale.py","mode":"100644","type":"blob","sha":"31b373370ac294e644fc64357d199adb5a3ac8fe","size":2144,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31b373370ac294e644fc64357d199adb5a3ac8fe"},{"path":"comfy_extras/nodes_slg.py","mode":"100644","type":"blob","sha":"f462faa8f9b32360756fc739045982f611d4845b","size":7041,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f462faa8f9b32360756fc739045982f611d4845b"},{"path":"comfy_extras/nodes_stable3d.py","mode":"100644","type":"blob","sha":"c6d8a683d5f9cb3bdf0b5517763833375a8c950c","size":7625,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c6d8a683d5f9cb3bdf0b5517763833375a8c950c"},{"path":"comfy_extras/nodes_stable_cascade.py","mode":"100644","type":"blob","sha":"04c0b366a60f2c8f00acd6421d38d8b4787e9dde","size":5537,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/04c0b366a60f2c8f00acd6421d38d8b4787e9dde"},{"path":"comfy_extras/nodes_string.py","mode":"100644","type":"blob","sha":"571d89f6268f0850212208379808eb2b81fe3df6","size":12076,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/571d89f6268f0850212208379808eb2b81fe3df6"},{"path":"comfy_extras/nodes_tcfg.py","mode":"100644","type":"blob","sha":"1a6767770ee091c1a05eef0af9a8ca667b0c72dd","size":2695,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1a6767770ee091c1a05eef0af9a8ca667b0c72dd"},{"path":"comfy_extras/nodes_tomesd.py","mode":"100644","type":"blob","sha":"87bf29b8fa02be0583619375cb3b1ea97de05bfd","size":7063,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/87bf29b8fa02be0583619375cb3b1ea97de05bfd"},{"path":"comfy_extras/nodes_torch_compile.py","mode":"100644","type":"blob","sha":"adbeece2f38442b570830c3c3a26c375f61946d8","size":1117,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/adbeece2f38442b570830c3c3a26c375f61946d8"},{"path":"comfy_extras/nodes_train.py","mode":"100644","type":"blob","sha":"9e6ec6780d27b44278fdfeaf926685e097c87d89","size":33666,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9e6ec6780d27b44278fdfeaf926685e097c87d89"},{"path":"comfy_extras/nodes_upscale_model.py","mode":"100644","type":"blob","sha":"4d62b87be209abd00b5e8c1b85d31921e6502209","size":3816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d62b87be209abd00b5e8c1b85d31921e6502209"},{"path":"comfy_extras/nodes_video.py","mode":"100644","type":"blob","sha":"69fabb12e4428573e3e3c6fd1d1501a21f93f86a","size":8644,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/69fabb12e4428573e3e3c6fd1d1501a21f93f86a"},{"path":"comfy_extras/nodes_video_model.py","mode":"100644","type":"blob","sha":"0f760aa26627f7dcc9e0d4483e05dae1326a4c66","size":7497,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f760aa26627f7dcc9e0d4483e05dae1326a4c66"},{"path":"comfy_extras/nodes_wan.py","mode":"100644","type":"blob","sha":"b0bd471bfb424b736c20a8ac6a7ae9646a35a3ff","size":66169,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b0bd471bfb424b736c20a8ac6a7ae9646a35a3ff"},{"path":"comfy_extras/nodes_webcam.py","mode":"100644","type":"blob","sha":"5bf80b4c6e055f70ed277ec0a9bbbeb180151a3d","size":987,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5bf80b4c6e055f70ed277ec0a9bbbeb180151a3d"},{"path":"comfyui_version.py","mode":"100644","type":"blob","sha":"d39c1fdc46f53d1836e7043be257e19fb8a7abcb","size":128,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d39c1fdc46f53d1836e7043be257e19fb8a7abcb"},{"path":"cuda_malloc.py","mode":"100644","type":"blob","sha":"c1d9ae3cab5cd664b0bd8797e9e07117bc7962f7","size":3574,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1d9ae3cab5cd664b0bd8797e9e07117bc7962f7"},{"path":"custom_nodes","mode":"040000","type":"tree","sha":"8851aba36b58d2d16f1772c2ee9a357fce4d438f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8851aba36b58d2d16f1772c2ee9a357fce4d438f"},{"path":"custom_nodes/example_node.py.example","mode":"100644","type":"blob","sha":"779c35787ea8a3f3e13f0383702106b85fe3f2f5","size":5151,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/779c35787ea8a3f3e13f0383702106b85fe3f2f5"},{"path":"custom_nodes/websocket_image_save.py","mode":"100644","type":"blob","sha":"15f87f9f56175f33df18c6142f9e13c4503b1186","size":1220,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/15f87f9f56175f33df18c6142f9e13c4503b1186"},{"path":"execution.py","mode":"100644","type":"blob","sha":"1dc35738b823e84bdbee10806798e98dee35dc22","size":51644,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1dc35738b823e84bdbee10806798e98dee35dc22"},{"path":"extra_model_paths.yaml.example","mode":"100644","type":"blob","sha":"34df01681ab151f3e8ad0e7bb9c0b53c12bf6b42","size":1886,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/34df01681ab151f3e8ad0e7bb9c0b53c12bf6b42"},{"path":"folder_paths.py","mode":"100644","type":"blob","sha":"f110d832bb23c84ec27fa3135eb958cb66acb069","size":16137,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f110d832bb23c84ec27fa3135eb958cb66acb069"},{"path":"hook_breaker_ac10a0.py","mode":"100644","type":"blob","sha":"c3e1c063382760535cee82e8bfcbc85d17e2cce4","size":366,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3e1c063382760535cee82e8bfcbc85d17e2cce4"},{"path":"input","mode":"040000","type":"tree","sha":"c5e3994a5e5b4363b882b74594a36fade2ff2515","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c5e3994a5e5b4363b882b74594a36fade2ff2515"},{"path":"input/example.png","mode":"100644","type":"blob","sha":"7b7f3c9cbbe6d8750c4a9eaf65d6ae4d2f108f79","size":8589,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7b7f3c9cbbe6d8750c4a9eaf65d6ae4d2f108f79"},{"path":"latent_preview.py","mode":"100644","type":"blob","sha":"95d3cb7338eafc63ce060b43528c6017d8d55953","size":4349,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/95d3cb7338eafc63ce060b43528c6017d8d55953"},{"path":"main.py","mode":"100644","type":"blob","sha":"35857dba8a6b40faa01efa744a8c4f874302115d","size":14723,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35857dba8a6b40faa01efa744a8c4f874302115d"},{"path":"middleware","mode":"040000","type":"tree","sha":"11b38e5db6068c6aec6605709900f6cff4da4cec","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/11b38e5db6068c6aec6605709900f6cff4da4cec"},{"path":"middleware/__init__.py","mode":"100644","type":"blob","sha":"2d7c7c3a9024de7be424d51aa2b729fd5a715a86","size":32,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d7c7c3a9024de7be424d51aa2b729fd5a715a86"},{"path":"middleware/cache_middleware.py","mode":"100644","type":"blob","sha":"f0213536918f3af1584641f968ea62c41d9700e2","size":1706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f0213536918f3af1584641f968ea62c41d9700e2"},{"path":"models","mode":"040000","type":"tree","sha":"16ba49398a677cec37f11bedf51d471f686519d1","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/16ba49398a677cec37f11bedf51d471f686519d1"},{"path":"models/audio_encoders","mode":"040000","type":"tree","sha":"86843fa99e9989ccb1fdd818a5834abcd1a2599c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/86843fa99e9989ccb1fdd818a5834abcd1a2599c"},{"path":"models/audio_encoders/put_audio_encoder_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/checkpoints","mode":"040000","type":"tree","sha":"25672fbdfed73fb4f237f0b4eee275a20619514c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/25672fbdfed73fb4f237f0b4eee275a20619514c"},{"path":"models/checkpoints/put_checkpoints_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/clip","mode":"040000","type":"tree","sha":"0f737c81be44fdb71bf4dd79cd502df792ae8419","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0f737c81be44fdb71bf4dd79cd502df792ae8419"},{"path":"models/clip/put_clip_or_text_encoder_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/clip_vision","mode":"040000","type":"tree","sha":"7106e9d1171ada573be2f99c3072c03fa37b667f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7106e9d1171ada573be2f99c3072c03fa37b667f"},{"path":"models/clip_vision/put_clip_vision_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/configs","mode":"040000","type":"tree","sha":"7b584405486c2b92996c337e193ad334e47313db","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7b584405486c2b92996c337e193ad334e47313db"},{"path":"models/configs/anything_v3.yaml","mode":"100644","type":"blob","sha":"8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34"},{"path":"models/configs/v1-inference.yaml","mode":"100644","type":"blob","sha":"d4effe569e897369918625f9d8be5603a0e6a0d6","size":1873,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d4effe569e897369918625f9d8be5603a0e6a0d6"},{"path":"models/configs/v1-inference_clip_skip_2.yaml","mode":"100644","type":"blob","sha":"8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34"},{"path":"models/configs/v1-inference_clip_skip_2_fp16.yaml","mode":"100644","type":"blob","sha":"7eca31c7b5e571c2b1348e94ed9d69978ebd2d52","size":1956,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7eca31c7b5e571c2b1348e94ed9d69978ebd2d52"},{"path":"models/configs/v1-inference_fp16.yaml","mode":"100644","type":"blob","sha":"147f42b17b835cc839338156f99e8f971df5c1aa","size":1896,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/147f42b17b835cc839338156f99e8f971df5c1aa"},{"path":"models/configs/v1-inpainting-inference.yaml","mode":"100644","type":"blob","sha":"45f3f82d461cd8c6109f26ec3b1da75366eda0b0","size":1992,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/45f3f82d461cd8c6109f26ec3b1da75366eda0b0"},{"path":"models/configs/v2-inference-v.yaml","mode":"100644","type":"blob","sha":"8ec8dfbfefe94ae8522c93017668fea78d580acf","size":1815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8ec8dfbfefe94ae8522c93017668fea78d580acf"},{"path":"models/configs/v2-inference-v_fp32.yaml","mode":"100644","type":"blob","sha":"d5c9b9cb29ca162ade44a7c922f59e75d7d57813","size":1816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d5c9b9cb29ca162ade44a7c922f59e75d7d57813"},{"path":"models/configs/v2-inference.yaml","mode":"100644","type":"blob","sha":"152c4f3c2b36c3b246a9cb10eb8166134b0d2e1c","size":1789,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/152c4f3c2b36c3b246a9cb10eb8166134b0d2e1c"},{"path":"models/configs/v2-inference_fp32.yaml","mode":"100644","type":"blob","sha":"0d03231f3f2c2e8ef8fbe0d781e5f3d65409ef3a","size":1790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d03231f3f2c2e8ef8fbe0d781e5f3d65409ef3a"},{"path":"models/configs/v2-inpainting-inference.yaml","mode":"100644","type":"blob","sha":"32a9471d71b828c51bcbbabfe34c5f6c8282c803","size":4450,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32a9471d71b828c51bcbbabfe34c5f6c8282c803"},{"path":"models/controlnet","mode":"040000","type":"tree","sha":"5a83ae6a0b91bad7a32204467dd1377cdf1ee907","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5a83ae6a0b91bad7a32204467dd1377cdf1ee907"},{"path":"models/controlnet/put_controlnets_and_t2i_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/diffusers","mode":"040000","type":"tree","sha":"cf5cd1731ce17b8a27403bb7e976b9cf519aa360","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cf5cd1731ce17b8a27403bb7e976b9cf519aa360"},{"path":"models/diffusers/put_diffusers_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/diffusion_models","mode":"040000","type":"tree","sha":"6dd7cfa71915656b72a58078ddb50dcfad2a3ce0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6dd7cfa71915656b72a58078ddb50dcfad2a3ce0"},{"path":"models/diffusion_models/put_diffusion_model_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/embeddings","mode":"040000","type":"tree","sha":"f39719329b51d40717bd0a49b6f4e7e49923ce73","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f39719329b51d40717bd0a49b6f4e7e49923ce73"},{"path":"models/embeddings/put_embeddings_or_textual_inversion_concepts_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/gligen","mode":"040000","type":"tree","sha":"40edb77ccd64ca93b7a8bc393e8f3c53d6e3889d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/40edb77ccd64ca93b7a8bc393e8f3c53d6e3889d"},{"path":"models/gligen/put_gligen_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/hypernetworks","mode":"040000","type":"tree","sha":"bb04dbc8c3d79c0f6fae8b895205c18a2a152e79","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bb04dbc8c3d79c0f6fae8b895205c18a2a152e79"},{"path":"models/hypernetworks/put_hypernetworks_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/loras","mode":"040000","type":"tree","sha":"7e90310f36d25711264493c0045f41d94fe42f75","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7e90310f36d25711264493c0045f41d94fe42f75"},{"path":"models/loras/put_loras_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/model_patches","mode":"040000","type":"tree","sha":"347b67dcd2a84c335249d2182868c3d141575f03","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/347b67dcd2a84c335249d2182868c3d141575f03"},{"path":"models/model_patches/put_model_patches_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/photomaker","mode":"040000","type":"tree","sha":"3c52c379e6795a69967782659b8db4020a7dcd2f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3c52c379e6795a69967782659b8db4020a7dcd2f"},{"path":"models/photomaker/put_photomaker_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/style_models","mode":"040000","type":"tree","sha":"8b8576516f89d3f0fc46c5d1bd28b68742858dc3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8b8576516f89d3f0fc46c5d1bd28b68742858dc3"},{"path":"models/style_models/put_t2i_style_model_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/text_encoders","mode":"040000","type":"tree","sha":"a7f3fe38ed7a8008f8c0c6d4c5f783b350217e49","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a7f3fe38ed7a8008f8c0c6d4c5f783b350217e49"},{"path":"models/text_encoders/put_text_encoder_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/unet","mode":"040000","type":"tree","sha":"a4b35d7a454474d792eac42ca0acd1e3d8bd801e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a4b35d7a454474d792eac42ca0acd1e3d8bd801e"},{"path":"models/unet/put_unet_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/upscale_models","mode":"040000","type":"tree","sha":"091689c25459ae81ee19e974eb53b30609e4ac4f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/091689c25459ae81ee19e974eb53b30609e4ac4f"},{"path":"models/upscale_models/put_esrgan_and_other_upscale_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/vae","mode":"040000","type":"tree","sha":"39bce83e44ba60a1700e60776d0b62b470cb15ca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/39bce83e44ba60a1700e60776d0b62b470cb15ca"},{"path":"models/vae/put_vae_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/vae_approx","mode":"040000","type":"tree","sha":"fecda1ff613fcbd1e84065941ebda49c81624044","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fecda1ff613fcbd1e84065941ebda49c81624044"},{"path":"models/vae_approx/put_taesd_encoder_pth_and_taesd_decoder_pth_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"new_updater.py","mode":"100644","type":"blob","sha":"9a203acdd71f62b3b1122cb879c75344f5859c5d","size":1261,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9a203acdd71f62b3b1122cb879c75344f5859c5d"},{"path":"node_helpers.py","mode":"100644","type":"blob","sha":"4ff960ef8afeadd935b6e48a9a683b7ef6970b2f","size":1684,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ff960ef8afeadd935b6e48a9a683b7ef6970b2f"},{"path":"nodes.py","mode":"100644","type":"blob","sha":"7cfa8ca1411da9f6802d27a424f6dde11da0d83b","size":98752,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7cfa8ca1411da9f6802d27a424f6dde11da0d83b"},{"path":"output","mode":"040000","type":"tree","sha":"a617907644c7aa5be7b2c911b7fe148196639772","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a617907644c7aa5be7b2c911b7fe148196639772"},{"path":"output/_output_images_will_be_put_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"protocol.py","mode":"100644","type":"blob","sha":"038a0a840d4efba202b54eabeeacc01f0eba0ed3","size":129,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/038a0a840d4efba202b54eabeeacc01f0eba0ed3"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"653604e24f0e57e35636e7aab2cebb335882e8d5","size":1883,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/653604e24f0e57e35636e7aab2cebb335882e8d5"},{"path":"pytest.ini","mode":"100644","type":"blob","sha":"a224d8cbb5511cf6be0c0cf75ae92268339e11d6","size":227,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a224d8cbb5511cf6be0c0cf75ae92268339e11d6"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"bbb22364f468fcd95eb62ec68c72ccfe2b5201e2","size":411,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bbb22364f468fcd95eb62ec68c72ccfe2b5201e2"},{"path":"script_examples","mode":"040000","type":"tree","sha":"5eea47f0106bfd865dcd5cf3f05ce5b31c0497de","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5eea47f0106bfd865dcd5cf3f05ce5b31c0497de"},{"path":"script_examples/basic_api_example.py","mode":"100644","type":"blob","sha":"7e20cc2c18795c79559c9d3f52355d4cad93c70e","size":2830,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e20cc2c18795c79559c9d3f52355d4cad93c70e"},{"path":"script_examples/websockets_api_example.py","mode":"100644","type":"blob","sha":"58f26cfb696c5012a36af56e91d339b480359bb5","size":4953,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/58f26cfb696c5012a36af56e91d339b480359bb5"},{"path":"script_examples/websockets_api_example_ws_images.py","mode":"100644","type":"blob","sha":"6508ecc99e732f75c2489e3cddb42229de2d356a","size":4475,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6508ecc99e732f75c2489e3cddb42229de2d356a"},{"path":"server.py","mode":"100644","type":"blob","sha":"80e9d3fa78a042bae2e6f390b32ef80e887c0b97","size":43207,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/80e9d3fa78a042bae2e6f390b32ef80e887c0b97"},{"path":"tests-unit","mode":"040000","type":"tree","sha":"aaca2dc1023e05ee6e69d2d631329d7a5fb61878","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/aaca2dc1023e05ee6e69d2d631329d7a5fb61878"},{"path":"tests-unit/README.md","mode":"100644","type":"blob","sha":"81692b8f1de8c74fd058e627d10dbd0fc2821257","size":131,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/81692b8f1de8c74fd058e627d10dbd0fc2821257"},{"path":"tests-unit/app_test","mode":"040000","type":"tree","sha":"cf093f219a6cb8b683aa39b00e78f3cae4f501ec","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cf093f219a6cb8b683aa39b00e78f3cae4f501ec"},{"path":"tests-unit/app_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/app_test/custom_node_manager_test.py","mode":"100644","type":"blob","sha":"b61e25e54e657609b3970358d6ff3354ff8f5a8e","size":5141,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b61e25e54e657609b3970358d6ff3354ff8f5a8e"},{"path":"tests-unit/app_test/frontend_manager_test.py","mode":"100644","type":"blob","sha":"643f04e722098b6b7dee247544c82cef6447a198","size":7671,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/643f04e722098b6b7dee247544c82cef6447a198"},{"path":"tests-unit/app_test/model_manager_test.py","mode":"100644","type":"blob","sha":"ae59206f65639ca1749b1cf7b6903ebab18fb298","size":1851,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae59206f65639ca1749b1cf7b6903ebab18fb298"},{"path":"tests-unit/comfy_api_nodes_test","mode":"040000","type":"tree","sha":"944e86b7c09099f9ac8c9774d01d592ad3f1831b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/944e86b7c09099f9ac8c9774d01d592ad3f1831b"},{"path":"tests-unit/comfy_api_nodes_test/mapper_utils_test.py","mode":"100644","type":"blob","sha":"69488f69125f91fe886343355116c4e2884e3ad8","size":7916,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/69488f69125f91fe886343355116c4e2884e3ad8"},{"path":"tests-unit/comfy_api_test","mode":"040000","type":"tree","sha":"90aca1b70ee11b924dd8ab4ec7db81cb36ed0033","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/90aca1b70ee11b924dd8ab4ec7db81cb36ed0033"},{"path":"tests-unit/comfy_api_test/input_impl_test.py","mode":"100644","type":"blob","sha":"5fc21a9a74382fef56cd826c65a31210d1313310","size":3566,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5fc21a9a74382fef56cd826c65a31210d1313310"},{"path":"tests-unit/comfy_api_test/video_types_test.py","mode":"100644","type":"blob","sha":"b25fcb1ca866c053452d230d4b734fd5c29b7edd","size":7617,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b25fcb1ca866c053452d230d4b734fd5c29b7edd"},{"path":"tests-unit/comfy_extras_test","mode":"040000","type":"tree","sha":"8488073552f03801784f108098193202c100c615","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8488073552f03801784f108098193202c100c615"},{"path":"tests-unit/comfy_extras_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/comfy_extras_test/image_stitch_test.py","mode":"100644","type":"blob","sha":"b5a0f022cd0ca326fd03f30c5397c0db67547060","size":10241,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b5a0f022cd0ca326fd03f30c5397c0db67547060"},{"path":"tests-unit/comfy_test","mode":"040000","type":"tree","sha":"072bfb3433f670e5e24744d5e8d481413462eadd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/072bfb3433f670e5e24744d5e8d481413462eadd"},{"path":"tests-unit/comfy_test/folder_path_test.py","mode":"100644","type":"blob","sha":"775e15c36ba8a74657161b59ec98ebc62db52512","size":6969,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/775e15c36ba8a74657161b59ec98ebc62db52512"},{"path":"tests-unit/execution_test","mode":"040000","type":"tree","sha":"f00bb08e3b41cbfd1757804ee15910cde5b4c227","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f00bb08e3b41cbfd1757804ee15910cde5b4c227"},{"path":"tests-unit/execution_test/validate_node_input_test.py","mode":"100644","type":"blob","sha":"85a0c9601fd859c9374bfc753bb3382194a709d3","size":4298,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/85a0c9601fd859c9374bfc753bb3382194a709d3"},{"path":"tests-unit/feature_flags_test.py","mode":"100644","type":"blob","sha":"f2702cfc84cdd427f82c3fe0a95148ee83c88f36","size":4000,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f2702cfc84cdd427f82c3fe0a95148ee83c88f36"},{"path":"tests-unit/folder_paths_test","mode":"040000","type":"tree","sha":"fe0a4bd114a54eaae2a493ca29570057b32a6f7b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fe0a4bd114a54eaae2a493ca29570057b32a6f7b"},{"path":"tests-unit/folder_paths_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/folder_paths_test/filter_by_content_types_test.py","mode":"100644","type":"blob","sha":"683f9fc113a842cc3d36ff955aeb61d2ad6ff60b","size":2613,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/683f9fc113a842cc3d36ff955aeb61d2ad6ff60b"},{"path":"tests-unit/folder_paths_test/misc_test.py","mode":"100644","type":"blob","sha":"fcf66745337a09d63e05ed8bbbf38aaccf5d4143","size":1677,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fcf66745337a09d63e05ed8bbbf38aaccf5d4143"},{"path":"tests-unit/prompt_server_test","mode":"040000","type":"tree","sha":"ba0e5dd69c1e812c817636b4ffa859cf1b19017e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ba0e5dd69c1e812c817636b4ffa859cf1b19017e"},{"path":"tests-unit/prompt_server_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/prompt_server_test/user_manager_test.py","mode":"100644","type":"blob","sha":"b939d8e68f821077ca2def1d630f5bd944db8293","size":10103,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b939d8e68f821077ca2def1d630f5bd944db8293"},{"path":"tests-unit/requirements.txt","mode":"100644","type":"blob","sha":"3a6790ee07cdcc37515b9afbd649da0c99d837ca","size":61,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3a6790ee07cdcc37515b9afbd649da0c99d837ca"},{"path":"tests-unit/server","mode":"040000","type":"tree","sha":"54f955116adc323bffd0b492a6616080358c82df","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/54f955116adc323bffd0b492a6616080358c82df"},{"path":"tests-unit/server/utils","mode":"040000","type":"tree","sha":"f2b503c8600691097b5c595847356f53e691d65d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f2b503c8600691097b5c595847356f53e691d65d"},{"path":"tests-unit/server/utils/file_operations_test.py","mode":"100644","type":"blob","sha":"2a45cc47a1447e6c2ace4f40e6543b2b7c5e4fcf","size":1502,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a45cc47a1447e6c2ace4f40e6543b2b7c5e4fcf"},{"path":"tests-unit/server_test","mode":"040000","type":"tree","sha":"6b64758f832606930bc30820089f21bf0e12374c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6b64758f832606930bc30820089f21bf0e12374c"},{"path":"tests-unit/server_test/test_cache_control.py","mode":"100644","type":"blob","sha":"fa68d940875681fb4b6066c40c33498b9560925a","size":9771,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fa68d940875681fb4b6066c40c33498b9560925a"},{"path":"tests-unit/utils","mode":"040000","type":"tree","sha":"0dba0b8cf4d9f41c42d063794aaefea154a557ee","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0dba0b8cf4d9f41c42d063794aaefea154a557ee"},{"path":"tests-unit/utils/extra_config_test.py","mode":"100644","type":"blob","sha":"eae1aa3d3ab8c57d668acf4971b4c886d7dd417f","size":10637,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eae1aa3d3ab8c57d668acf4971b4c886d7dd417f"},{"path":"tests-unit/utils/json_util_test.py","mode":"100644","type":"blob","sha":"d3089d8d184533cf7510ed0db14cfaf0644c52cf","size":2040,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d3089d8d184533cf7510ed0db14cfaf0644c52cf"},{"path":"tests-unit/websocket_feature_flags_test.py","mode":"100644","type":"blob","sha":"e93b2e1dde81d9664ed9505ee14aa2d7d994a95d","size":2834,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e93b2e1dde81d9664ed9505ee14aa2d7d994a95d"},{"path":"tests","mode":"040000","type":"tree","sha":"649794518cdf8c1fa2ee7a98542626e6c3f5a944","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/649794518cdf8c1fa2ee7a98542626e6c3f5a944"},{"path":"tests/README.md","mode":"100644","type":"blob","sha":"2005fd45b2bbd249fb7f1dfff789b2ae236568ba","size":563,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2005fd45b2bbd249fb7f1dfff789b2ae236568ba"},{"path":"tests/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests/compare","mode":"040000","type":"tree","sha":"5ebaecaab8fbfe1c9bd2c2d81c1aacc452ae375f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5ebaecaab8fbfe1c9bd2c2d81c1aacc452ae375f"},{"path":"tests/compare/conftest.py","mode":"100644","type":"blob","sha":"dd5078c9e6e432c7de2462c5641068bfa8e0aaee","size":1814,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dd5078c9e6e432c7de2462c5641068bfa8e0aaee"},{"path":"tests/compare/test_quality.py","mode":"100644","type":"blob","sha":"01c19054956dde3b611dafe97ad244a3579e0e85","size":7912,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/01c19054956dde3b611dafe97ad244a3579e0e85"},{"path":"tests/conftest.py","mode":"100644","type":"blob","sha":"290e3a5c00e04bf44675c098544591a9a79d2e72","size":1816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/290e3a5c00e04bf44675c098544591a9a79d2e72"},{"path":"tests/execution","mode":"040000","type":"tree","sha":"d3ce5482c9dc2612c998f3b09481346294eb8287","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d3ce5482c9dc2612c998f3b09481346294eb8287"},{"path":"tests/execution/extra_model_paths.yaml","mode":"100644","type":"blob","sha":"68e056564d515893a6860010e6b8c554829f6186","size":69,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68e056564d515893a6860010e6b8c554829f6186"},{"path":"tests/execution/test_async_nodes.py","mode":"100644","type":"blob","sha":"c771b4b36d9d678e25a58f061b35f86859f88faa","size":18330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c771b4b36d9d678e25a58f061b35f86859f88faa"},{"path":"tests/execution/test_execution.py","mode":"100644","type":"blob","sha":"ef73ad9fdd83166888a47faa5a8da7a68ab1d415","size":41412,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ef73ad9fdd83166888a47faa5a8da7a68ab1d415"},{"path":"tests/execution/test_progress_isolation.py","mode":"100644","type":"blob","sha":"93dc0d41bba228f0adf1fe23e611f6b49f6dcf2f","size":9432,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93dc0d41bba228f0adf1fe23e611f6b49f6dcf2f"},{"path":"tests/execution/testing_nodes","mode":"040000","type":"tree","sha":"42fa0cface44c2906eefb81cac471f44ce8443d8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/42fa0cface44c2906eefb81cac471f44ce8443d8"},{"path":"tests/execution/testing_nodes/testing-pack","mode":"040000","type":"tree","sha":"01bbd9ea04d388f51f942aafd7296025e6d310e7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/01bbd9ea04d388f51f942aafd7296025e6d310e7"},{"path":"tests/execution/testing_nodes/testing-pack/__init__.py","mode":"100644","type":"blob","sha":"3d5ac8a94febb0481c1cf52b7cd89436f0c5c9ce","size":1804,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3d5ac8a94febb0481c1cf52b7cd89436f0c5c9ce"},{"path":"tests/execution/testing_nodes/testing-pack/api_test_nodes.py","mode":"100644","type":"blob","sha":"b2eaae05ec985caeb313ce47f09ab2858782e043","size":2144,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b2eaae05ec985caeb313ce47f09ab2858782e043"},{"path":"tests/execution/testing_nodes/testing-pack/async_test_nodes.py","mode":"100644","type":"blob","sha":"547eea6f4117bee47539eacbbda2a54593cee538","size":10703,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/547eea6f4117bee47539eacbbda2a54593cee538"},{"path":"tests/execution/testing_nodes/testing-pack/conditions.py","mode":"100644","type":"blob","sha":"0c200ee2892d4747d9ec6965b6d33f2223e3c08a","size":5353,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c200ee2892d4747d9ec6965b6d33f2223e3c08a"},{"path":"tests/execution/testing_nodes/testing-pack/flow_control.py","mode":"100644","type":"blob","sha":"ba943be6072f2003ebe1e6aa996d2dd8370c8c09","size":5938,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ba943be6072f2003ebe1e6aa996d2dd8370c8c09"},{"path":"tests/execution/testing_nodes/testing-pack/specific_tests.py","mode":"100644","type":"blob","sha":"4f8f01ae4a48bc46791f4c20851f12adbc0e8beb","size":16762,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4f8f01ae4a48bc46791f4c20851f12adbc0e8beb"},{"path":"tests/execution/testing_nodes/testing-pack/stubs.py","mode":"100644","type":"blob","sha":"a1df87529c65ffa46db64cc197f54aef376ff8c0","size":3729,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1df87529c65ffa46db64cc197f54aef376ff8c0"},{"path":"tests/execution/testing_nodes/testing-pack/tools.py","mode":"100644","type":"blob","sha":"34b28c0eb4892cdbc4e7575e651719f48ca917e9","size":2373,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/34b28c0eb4892cdbc4e7575e651719f48ca917e9"},{"path":"tests/execution/testing_nodes/testing-pack/util.py","mode":"100644","type":"blob","sha":"17741c5f1dff2eeff86fec5173e675bf9ac6cf3b","size":10109,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/17741c5f1dff2eeff86fec5173e675bf9ac6cf3b"},{"path":"tests/inference","mode":"040000","type":"tree","sha":"7bf5e7435fb0b273d9b5dccefe62961188c1acca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7bf5e7435fb0b273d9b5dccefe62961188c1acca"},{"path":"tests/inference/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests/inference/graphs","mode":"040000","type":"tree","sha":"8c57dae7b7548ac5e30d4265f1424beae9363b5c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8c57dae7b7548ac5e30d4265f1424beae9363b5c"},{"path":"tests/inference/graphs/default_graph_sdxl1_0.json","mode":"100644","type":"blob","sha":"c06c6829c6253cc71982f3714620bd10dd41bd73","size":2665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c06c6829c6253cc71982f3714620bd10dd41bd73"},{"path":"tests/inference/test_inference.py","mode":"100644","type":"blob","sha":"7e4a206c41d95d5740c9c8b6e6c9071ad0ee86ce","size":8161,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e4a206c41d95d5740c9c8b6e6c9071ad0ee86ce"},{"path":"utils","mode":"040000","type":"tree","sha":"b9255671f816fe8bbcf4ed93ecea274e413bf369","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b9255671f816fe8bbcf4ed93ecea274e413bf369"},{"path":"utils/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"utils/extra_config.py","mode":"100644","type":"blob","sha":"a0fcda9e8900ee2c67d79a1e588ff973f9ea7ea6","size":1370,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a0fcda9e8900ee2c67d79a1e588ff973f9ea7ea6"},{"path":"utils/install_util.py","mode":"100644","type":"blob","sha":"0f59bcf9193570a36641bd4e0c70c80d05be1a0f","size":572,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f59bcf9193570a36641bd4e0c70c80d05be1a0f"},{"path":"utils/json_util.py","mode":"100644","type":"blob","sha":"da45af4f74f386973d3f1968d88b083ca5906d81","size":781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/da45af4f74f386973d3f1968d88b083ca5906d81"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/core__LICENSE b/docs/hel-892/resize-compare-reference/core__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/resize-compare-reference/core__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/docs/hel-892/resize-compare-reference/core__comfy__utils.py b/docs/hel-892/resize-compare-reference/core__comfy__utils.py new file mode 100644 index 00000000..0fd03f16 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/core__comfy__utils.py @@ -0,0 +1,1108 @@ +""" + This file is part of ComfyUI. + Copyright (C) 2024 Comfy + + 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 . +""" + + +import torch +import math +import struct +import comfy.checkpoint_pickle +import safetensors.torch +import numpy as np +from PIL import Image +import logging +import itertools +from torch.nn.functional import interpolate +from einops import rearrange +from comfy.cli_args import args + +MMAP_TORCH_FILES = args.mmap_torch_files +DISABLE_MMAP = args.disable_mmap + +ALWAYS_SAFE_LOAD = False +if hasattr(torch.serialization, "add_safe_globals"): # TODO: this was added in pytorch 2.4, the unsafe path should be removed once earlier versions are deprecated + class ModelCheckpoint: + pass + ModelCheckpoint.__module__ = "pytorch_lightning.callbacks.model_checkpoint" + + def scalar(*args, **kwargs): + from numpy.core.multiarray import scalar as sc + return sc(*args, **kwargs) + scalar.__module__ = "numpy.core.multiarray" + + from numpy import dtype + from numpy.dtypes import Float64DType + from _codecs import encode + + torch.serialization.add_safe_globals([ModelCheckpoint, scalar, dtype, Float64DType, encode]) + ALWAYS_SAFE_LOAD = True + logging.info("Checkpoint files will always be loaded safely.") +else: + logging.info("Warning, you are using an old pytorch version and some ckpt/pt files might be loaded unsafely. Upgrading to 2.4 or above is recommended.") + +def load_torch_file(ckpt, safe_load=False, device=None, return_metadata=False): + if device is None: + device = torch.device("cpu") + metadata = None + if ckpt.lower().endswith(".safetensors") or ckpt.lower().endswith(".sft"): + try: + with safetensors.safe_open(ckpt, framework="pt", device=device.type) as f: + sd = {} + for k in f.keys(): + tensor = f.get_tensor(k) + if DISABLE_MMAP: # TODO: Not sure if this is the best way to bypass the mmap issues + tensor = tensor.to(device=device, copy=True) + sd[k] = tensor + if return_metadata: + metadata = f.metadata() + except Exception as e: + if len(e.args) > 0: + message = e.args[0] + if "HeaderTooLarge" in message: + raise ValueError("{}\n\nFile path: {}\n\nThe safetensors file is corrupt or invalid. Make sure this is actually a safetensors file and not a ckpt or pt or other filetype.".format(message, ckpt)) + if "MetadataIncompleteBuffer" in message: + raise ValueError("{}\n\nFile path: {}\n\nThe safetensors file is corrupt/incomplete. Check the file size and make sure you have copied/downloaded it correctly.".format(message, ckpt)) + raise e + else: + torch_args = {} + if MMAP_TORCH_FILES: + torch_args["mmap"] = True + + if safe_load or ALWAYS_SAFE_LOAD: + pl_sd = torch.load(ckpt, map_location=device, weights_only=True, **torch_args) + else: + logging.warning("WARNING: loading {} unsafely, upgrade your pytorch to 2.4 or newer to load this file safely.".format(ckpt)) + pl_sd = torch.load(ckpt, map_location=device, pickle_module=comfy.checkpoint_pickle) + if "state_dict" in pl_sd: + sd = pl_sd["state_dict"] + else: + if len(pl_sd) == 1: + key = list(pl_sd.keys())[0] + sd = pl_sd[key] + if not isinstance(sd, dict): + sd = pl_sd + else: + sd = pl_sd + return (sd, metadata) if return_metadata else sd + +def save_torch_file(sd, ckpt, metadata=None): + if metadata is not None: + safetensors.torch.save_file(sd, ckpt, metadata=metadata) + else: + safetensors.torch.save_file(sd, ckpt) + +def calculate_parameters(sd, prefix=""): + params = 0 + for k in sd.keys(): + if k.startswith(prefix): + w = sd[k] + params += w.nelement() + return params + +def weight_dtype(sd, prefix=""): + dtypes = {} + for k in sd.keys(): + if k.startswith(prefix): + w = sd[k] + dtypes[w.dtype] = dtypes.get(w.dtype, 0) + w.numel() + + if len(dtypes) == 0: + return None + + return max(dtypes, key=dtypes.get) + +def state_dict_key_replace(state_dict, keys_to_replace): + for x in keys_to_replace: + if x in state_dict: + state_dict[keys_to_replace[x]] = state_dict.pop(x) + return state_dict + +def state_dict_prefix_replace(state_dict, replace_prefix, filter_keys=False): + if filter_keys: + out = {} + else: + out = state_dict + for rp in replace_prefix: + replace = list(map(lambda a: (a, "{}{}".format(replace_prefix[rp], a[len(rp):])), filter(lambda a: a.startswith(rp), state_dict.keys()))) + for x in replace: + w = state_dict.pop(x[0]) + out[x[1]] = w + return out + + +def transformers_convert(sd, prefix_from, prefix_to, number): + keys_to_replace = { + "{}positional_embedding": "{}embeddings.position_embedding.weight", + "{}token_embedding.weight": "{}embeddings.token_embedding.weight", + "{}ln_final.weight": "{}final_layer_norm.weight", + "{}ln_final.bias": "{}final_layer_norm.bias", + } + + for k in keys_to_replace: + x = k.format(prefix_from) + if x in sd: + sd[keys_to_replace[k].format(prefix_to)] = sd.pop(x) + + resblock_to_replace = { + "ln_1": "layer_norm1", + "ln_2": "layer_norm2", + "mlp.c_fc": "mlp.fc1", + "mlp.c_proj": "mlp.fc2", + "attn.out_proj": "self_attn.out_proj", + } + + for resblock in range(number): + for x in resblock_to_replace: + for y in ["weight", "bias"]: + k = "{}transformer.resblocks.{}.{}.{}".format(prefix_from, resblock, x, y) + k_to = "{}encoder.layers.{}.{}.{}".format(prefix_to, resblock, resblock_to_replace[x], y) + if k in sd: + sd[k_to] = sd.pop(k) + + for y in ["weight", "bias"]: + k_from = "{}transformer.resblocks.{}.attn.in_proj_{}".format(prefix_from, resblock, y) + if k_from in sd: + weights = sd.pop(k_from) + shape_from = weights.shape[0] // 3 + for x in range(3): + p = ["self_attn.q_proj", "self_attn.k_proj", "self_attn.v_proj"] + k_to = "{}encoder.layers.{}.{}.{}".format(prefix_to, resblock, p[x], y) + sd[k_to] = weights[shape_from*x:shape_from*(x + 1)] + + return sd + +def clip_text_transformers_convert(sd, prefix_from, prefix_to): + sd = transformers_convert(sd, prefix_from, "{}text_model.".format(prefix_to), 32) + + tp = "{}text_projection.weight".format(prefix_from) + if tp in sd: + sd["{}text_projection.weight".format(prefix_to)] = sd.pop(tp) + + tp = "{}text_projection".format(prefix_from) + if tp in sd: + sd["{}text_projection.weight".format(prefix_to)] = sd.pop(tp).transpose(0, 1).contiguous() + return sd + + +UNET_MAP_ATTENTIONS = { + "proj_in.weight", + "proj_in.bias", + "proj_out.weight", + "proj_out.bias", + "norm.weight", + "norm.bias", +} + +TRANSFORMER_BLOCKS = { + "norm1.weight", + "norm1.bias", + "norm2.weight", + "norm2.bias", + "norm3.weight", + "norm3.bias", + "attn1.to_q.weight", + "attn1.to_k.weight", + "attn1.to_v.weight", + "attn1.to_out.0.weight", + "attn1.to_out.0.bias", + "attn2.to_q.weight", + "attn2.to_k.weight", + "attn2.to_v.weight", + "attn2.to_out.0.weight", + "attn2.to_out.0.bias", + "ff.net.0.proj.weight", + "ff.net.0.proj.bias", + "ff.net.2.weight", + "ff.net.2.bias", +} + +UNET_MAP_RESNET = { + "in_layers.2.weight": "conv1.weight", + "in_layers.2.bias": "conv1.bias", + "emb_layers.1.weight": "time_emb_proj.weight", + "emb_layers.1.bias": "time_emb_proj.bias", + "out_layers.3.weight": "conv2.weight", + "out_layers.3.bias": "conv2.bias", + "skip_connection.weight": "conv_shortcut.weight", + "skip_connection.bias": "conv_shortcut.bias", + "in_layers.0.weight": "norm1.weight", + "in_layers.0.bias": "norm1.bias", + "out_layers.0.weight": "norm2.weight", + "out_layers.0.bias": "norm2.bias", +} + +UNET_MAP_BASIC = { + ("label_emb.0.0.weight", "class_embedding.linear_1.weight"), + ("label_emb.0.0.bias", "class_embedding.linear_1.bias"), + ("label_emb.0.2.weight", "class_embedding.linear_2.weight"), + ("label_emb.0.2.bias", "class_embedding.linear_2.bias"), + ("label_emb.0.0.weight", "add_embedding.linear_1.weight"), + ("label_emb.0.0.bias", "add_embedding.linear_1.bias"), + ("label_emb.0.2.weight", "add_embedding.linear_2.weight"), + ("label_emb.0.2.bias", "add_embedding.linear_2.bias"), + ("input_blocks.0.0.weight", "conv_in.weight"), + ("input_blocks.0.0.bias", "conv_in.bias"), + ("out.0.weight", "conv_norm_out.weight"), + ("out.0.bias", "conv_norm_out.bias"), + ("out.2.weight", "conv_out.weight"), + ("out.2.bias", "conv_out.bias"), + ("time_embed.0.weight", "time_embedding.linear_1.weight"), + ("time_embed.0.bias", "time_embedding.linear_1.bias"), + ("time_embed.2.weight", "time_embedding.linear_2.weight"), + ("time_embed.2.bias", "time_embedding.linear_2.bias") +} + +def unet_to_diffusers(unet_config): + if "num_res_blocks" not in unet_config: + return {} + num_res_blocks = unet_config["num_res_blocks"] + channel_mult = unet_config["channel_mult"] + transformer_depth = unet_config["transformer_depth"][:] + transformer_depth_output = unet_config["transformer_depth_output"][:] + num_blocks = len(channel_mult) + + transformers_mid = unet_config.get("transformer_depth_middle", None) + + diffusers_unet_map = {} + for x in range(num_blocks): + n = 1 + (num_res_blocks[x] + 1) * x + for i in range(num_res_blocks[x]): + for b in UNET_MAP_RESNET: + diffusers_unet_map["down_blocks.{}.resnets.{}.{}".format(x, i, UNET_MAP_RESNET[b])] = "input_blocks.{}.0.{}".format(n, b) + num_transformers = transformer_depth.pop(0) + if num_transformers > 0: + for b in UNET_MAP_ATTENTIONS: + diffusers_unet_map["down_blocks.{}.attentions.{}.{}".format(x, i, b)] = "input_blocks.{}.1.{}".format(n, b) + for t in range(num_transformers): + for b in TRANSFORMER_BLOCKS: + diffusers_unet_map["down_blocks.{}.attentions.{}.transformer_blocks.{}.{}".format(x, i, t, b)] = "input_blocks.{}.1.transformer_blocks.{}.{}".format(n, t, b) + n += 1 + for k in ["weight", "bias"]: + diffusers_unet_map["down_blocks.{}.downsamplers.0.conv.{}".format(x, k)] = "input_blocks.{}.0.op.{}".format(n, k) + + i = 0 + for b in UNET_MAP_ATTENTIONS: + diffusers_unet_map["mid_block.attentions.{}.{}".format(i, b)] = "middle_block.1.{}".format(b) + for t in range(transformers_mid): + for b in TRANSFORMER_BLOCKS: + diffusers_unet_map["mid_block.attentions.{}.transformer_blocks.{}.{}".format(i, t, b)] = "middle_block.1.transformer_blocks.{}.{}".format(t, b) + + for i, n in enumerate([0, 2]): + for b in UNET_MAP_RESNET: + diffusers_unet_map["mid_block.resnets.{}.{}".format(i, UNET_MAP_RESNET[b])] = "middle_block.{}.{}".format(n, b) + + num_res_blocks = list(reversed(num_res_blocks)) + for x in range(num_blocks): + n = (num_res_blocks[x] + 1) * x + l = num_res_blocks[x] + 1 + for i in range(l): + c = 0 + for b in UNET_MAP_RESNET: + diffusers_unet_map["up_blocks.{}.resnets.{}.{}".format(x, i, UNET_MAP_RESNET[b])] = "output_blocks.{}.0.{}".format(n, b) + c += 1 + num_transformers = transformer_depth_output.pop() + if num_transformers > 0: + c += 1 + for b in UNET_MAP_ATTENTIONS: + diffusers_unet_map["up_blocks.{}.attentions.{}.{}".format(x, i, b)] = "output_blocks.{}.1.{}".format(n, b) + for t in range(num_transformers): + for b in TRANSFORMER_BLOCKS: + diffusers_unet_map["up_blocks.{}.attentions.{}.transformer_blocks.{}.{}".format(x, i, t, b)] = "output_blocks.{}.1.transformer_blocks.{}.{}".format(n, t, b) + if i == l - 1: + for k in ["weight", "bias"]: + diffusers_unet_map["up_blocks.{}.upsamplers.0.conv.{}".format(x, k)] = "output_blocks.{}.{}.conv.{}".format(n, c, k) + n += 1 + + for k in UNET_MAP_BASIC: + diffusers_unet_map[k[1]] = k[0] + + return diffusers_unet_map + +def swap_scale_shift(weight): + shift, scale = weight.chunk(2, dim=0) + new_weight = torch.cat([scale, shift], dim=0) + return new_weight + +MMDIT_MAP_BASIC = { + ("context_embedder.bias", "context_embedder.bias"), + ("context_embedder.weight", "context_embedder.weight"), + ("t_embedder.mlp.0.bias", "time_text_embed.timestep_embedder.linear_1.bias"), + ("t_embedder.mlp.0.weight", "time_text_embed.timestep_embedder.linear_1.weight"), + ("t_embedder.mlp.2.bias", "time_text_embed.timestep_embedder.linear_2.bias"), + ("t_embedder.mlp.2.weight", "time_text_embed.timestep_embedder.linear_2.weight"), + ("x_embedder.proj.bias", "pos_embed.proj.bias"), + ("x_embedder.proj.weight", "pos_embed.proj.weight"), + ("y_embedder.mlp.0.bias", "time_text_embed.text_embedder.linear_1.bias"), + ("y_embedder.mlp.0.weight", "time_text_embed.text_embedder.linear_1.weight"), + ("y_embedder.mlp.2.bias", "time_text_embed.text_embedder.linear_2.bias"), + ("y_embedder.mlp.2.weight", "time_text_embed.text_embedder.linear_2.weight"), + ("pos_embed", "pos_embed.pos_embed"), + ("final_layer.adaLN_modulation.1.bias", "norm_out.linear.bias", swap_scale_shift), + ("final_layer.adaLN_modulation.1.weight", "norm_out.linear.weight", swap_scale_shift), + ("final_layer.linear.bias", "proj_out.bias"), + ("final_layer.linear.weight", "proj_out.weight"), +} + +MMDIT_MAP_BLOCK = { + ("context_block.adaLN_modulation.1.bias", "norm1_context.linear.bias"), + ("context_block.adaLN_modulation.1.weight", "norm1_context.linear.weight"), + ("context_block.attn.proj.bias", "attn.to_add_out.bias"), + ("context_block.attn.proj.weight", "attn.to_add_out.weight"), + ("context_block.mlp.fc1.bias", "ff_context.net.0.proj.bias"), + ("context_block.mlp.fc1.weight", "ff_context.net.0.proj.weight"), + ("context_block.mlp.fc2.bias", "ff_context.net.2.bias"), + ("context_block.mlp.fc2.weight", "ff_context.net.2.weight"), + ("context_block.attn.ln_q.weight", "attn.norm_added_q.weight"), + ("context_block.attn.ln_k.weight", "attn.norm_added_k.weight"), + ("x_block.adaLN_modulation.1.bias", "norm1.linear.bias"), + ("x_block.adaLN_modulation.1.weight", "norm1.linear.weight"), + ("x_block.attn.proj.bias", "attn.to_out.0.bias"), + ("x_block.attn.proj.weight", "attn.to_out.0.weight"), + ("x_block.attn.ln_q.weight", "attn.norm_q.weight"), + ("x_block.attn.ln_k.weight", "attn.norm_k.weight"), + ("x_block.attn2.proj.bias", "attn2.to_out.0.bias"), + ("x_block.attn2.proj.weight", "attn2.to_out.0.weight"), + ("x_block.attn2.ln_q.weight", "attn2.norm_q.weight"), + ("x_block.attn2.ln_k.weight", "attn2.norm_k.weight"), + ("x_block.mlp.fc1.bias", "ff.net.0.proj.bias"), + ("x_block.mlp.fc1.weight", "ff.net.0.proj.weight"), + ("x_block.mlp.fc2.bias", "ff.net.2.bias"), + ("x_block.mlp.fc2.weight", "ff.net.2.weight"), +} + +def mmdit_to_diffusers(mmdit_config, output_prefix=""): + key_map = {} + + depth = mmdit_config.get("depth", 0) + num_blocks = mmdit_config.get("num_blocks", depth) + for i in range(num_blocks): + block_from = "transformer_blocks.{}".format(i) + block_to = "{}joint_blocks.{}".format(output_prefix, i) + + offset = depth * 64 + + for end in ("weight", "bias"): + k = "{}.attn.".format(block_from) + qkv = "{}.x_block.attn.qkv.{}".format(block_to, end) + key_map["{}to_q.{}".format(k, end)] = (qkv, (0, 0, offset)) + key_map["{}to_k.{}".format(k, end)] = (qkv, (0, offset, offset)) + key_map["{}to_v.{}".format(k, end)] = (qkv, (0, offset * 2, offset)) + + qkv = "{}.context_block.attn.qkv.{}".format(block_to, end) + key_map["{}add_q_proj.{}".format(k, end)] = (qkv, (0, 0, offset)) + key_map["{}add_k_proj.{}".format(k, end)] = (qkv, (0, offset, offset)) + key_map["{}add_v_proj.{}".format(k, end)] = (qkv, (0, offset * 2, offset)) + + k = "{}.attn2.".format(block_from) + qkv = "{}.x_block.attn2.qkv.{}".format(block_to, end) + key_map["{}to_q.{}".format(k, end)] = (qkv, (0, 0, offset)) + key_map["{}to_k.{}".format(k, end)] = (qkv, (0, offset, offset)) + key_map["{}to_v.{}".format(k, end)] = (qkv, (0, offset * 2, offset)) + + for k in MMDIT_MAP_BLOCK: + key_map["{}.{}".format(block_from, k[1])] = "{}.{}".format(block_to, k[0]) + + map_basic = MMDIT_MAP_BASIC.copy() + map_basic.add(("joint_blocks.{}.context_block.adaLN_modulation.1.bias".format(depth - 1), "transformer_blocks.{}.norm1_context.linear.bias".format(depth - 1), swap_scale_shift)) + map_basic.add(("joint_blocks.{}.context_block.adaLN_modulation.1.weight".format(depth - 1), "transformer_blocks.{}.norm1_context.linear.weight".format(depth - 1), swap_scale_shift)) + + for k in map_basic: + if len(k) > 2: + key_map[k[1]] = ("{}{}".format(output_prefix, k[0]), None, k[2]) + else: + key_map[k[1]] = "{}{}".format(output_prefix, k[0]) + + return key_map + +PIXART_MAP_BASIC = { + ("csize_embedder.mlp.0.weight", "adaln_single.emb.resolution_embedder.linear_1.weight"), + ("csize_embedder.mlp.0.bias", "adaln_single.emb.resolution_embedder.linear_1.bias"), + ("csize_embedder.mlp.2.weight", "adaln_single.emb.resolution_embedder.linear_2.weight"), + ("csize_embedder.mlp.2.bias", "adaln_single.emb.resolution_embedder.linear_2.bias"), + ("ar_embedder.mlp.0.weight", "adaln_single.emb.aspect_ratio_embedder.linear_1.weight"), + ("ar_embedder.mlp.0.bias", "adaln_single.emb.aspect_ratio_embedder.linear_1.bias"), + ("ar_embedder.mlp.2.weight", "adaln_single.emb.aspect_ratio_embedder.linear_2.weight"), + ("ar_embedder.mlp.2.bias", "adaln_single.emb.aspect_ratio_embedder.linear_2.bias"), + ("x_embedder.proj.weight", "pos_embed.proj.weight"), + ("x_embedder.proj.bias", "pos_embed.proj.bias"), + ("y_embedder.y_embedding", "caption_projection.y_embedding"), + ("y_embedder.y_proj.fc1.weight", "caption_projection.linear_1.weight"), + ("y_embedder.y_proj.fc1.bias", "caption_projection.linear_1.bias"), + ("y_embedder.y_proj.fc2.weight", "caption_projection.linear_2.weight"), + ("y_embedder.y_proj.fc2.bias", "caption_projection.linear_2.bias"), + ("t_embedder.mlp.0.weight", "adaln_single.emb.timestep_embedder.linear_1.weight"), + ("t_embedder.mlp.0.bias", "adaln_single.emb.timestep_embedder.linear_1.bias"), + ("t_embedder.mlp.2.weight", "adaln_single.emb.timestep_embedder.linear_2.weight"), + ("t_embedder.mlp.2.bias", "adaln_single.emb.timestep_embedder.linear_2.bias"), + ("t_block.1.weight", "adaln_single.linear.weight"), + ("t_block.1.bias", "adaln_single.linear.bias"), + ("final_layer.linear.weight", "proj_out.weight"), + ("final_layer.linear.bias", "proj_out.bias"), + ("final_layer.scale_shift_table", "scale_shift_table"), +} + +PIXART_MAP_BLOCK = { + ("scale_shift_table", "scale_shift_table"), + ("attn.proj.weight", "attn1.to_out.0.weight"), + ("attn.proj.bias", "attn1.to_out.0.bias"), + ("mlp.fc1.weight", "ff.net.0.proj.weight"), + ("mlp.fc1.bias", "ff.net.0.proj.bias"), + ("mlp.fc2.weight", "ff.net.2.weight"), + ("mlp.fc2.bias", "ff.net.2.bias"), + ("cross_attn.proj.weight" ,"attn2.to_out.0.weight"), + ("cross_attn.proj.bias" ,"attn2.to_out.0.bias"), +} + +def pixart_to_diffusers(mmdit_config, output_prefix=""): + key_map = {} + + depth = mmdit_config.get("depth", 0) + offset = mmdit_config.get("hidden_size", 1152) + + for i in range(depth): + block_from = "transformer_blocks.{}".format(i) + block_to = "{}blocks.{}".format(output_prefix, i) + + for end in ("weight", "bias"): + s = "{}.attn1.".format(block_from) + qkv = "{}.attn.qkv.{}".format(block_to, end) + key_map["{}to_q.{}".format(s, end)] = (qkv, (0, 0, offset)) + key_map["{}to_k.{}".format(s, end)] = (qkv, (0, offset, offset)) + key_map["{}to_v.{}".format(s, end)] = (qkv, (0, offset * 2, offset)) + + s = "{}.attn2.".format(block_from) + q = "{}.cross_attn.q_linear.{}".format(block_to, end) + kv = "{}.cross_attn.kv_linear.{}".format(block_to, end) + + key_map["{}to_q.{}".format(s, end)] = q + key_map["{}to_k.{}".format(s, end)] = (kv, (0, 0, offset)) + key_map["{}to_v.{}".format(s, end)] = (kv, (0, offset, offset)) + + for k in PIXART_MAP_BLOCK: + key_map["{}.{}".format(block_from, k[1])] = "{}.{}".format(block_to, k[0]) + + for k in PIXART_MAP_BASIC: + key_map[k[1]] = "{}{}".format(output_prefix, k[0]) + + return key_map + +def auraflow_to_diffusers(mmdit_config, output_prefix=""): + n_double_layers = mmdit_config.get("n_double_layers", 0) + n_layers = mmdit_config.get("n_layers", 0) + + key_map = {} + for i in range(n_layers): + if i < n_double_layers: + index = i + prefix_from = "joint_transformer_blocks" + prefix_to = "{}double_layers".format(output_prefix) + block_map = { + "attn.to_q.weight": "attn.w2q.weight", + "attn.to_k.weight": "attn.w2k.weight", + "attn.to_v.weight": "attn.w2v.weight", + "attn.to_out.0.weight": "attn.w2o.weight", + "attn.add_q_proj.weight": "attn.w1q.weight", + "attn.add_k_proj.weight": "attn.w1k.weight", + "attn.add_v_proj.weight": "attn.w1v.weight", + "attn.to_add_out.weight": "attn.w1o.weight", + "ff.linear_1.weight": "mlpX.c_fc1.weight", + "ff.linear_2.weight": "mlpX.c_fc2.weight", + "ff.out_projection.weight": "mlpX.c_proj.weight", + "ff_context.linear_1.weight": "mlpC.c_fc1.weight", + "ff_context.linear_2.weight": "mlpC.c_fc2.weight", + "ff_context.out_projection.weight": "mlpC.c_proj.weight", + "norm1.linear.weight": "modX.1.weight", + "norm1_context.linear.weight": "modC.1.weight", + } + else: + index = i - n_double_layers + prefix_from = "single_transformer_blocks" + prefix_to = "{}single_layers".format(output_prefix) + + block_map = { + "attn.to_q.weight": "attn.w1q.weight", + "attn.to_k.weight": "attn.w1k.weight", + "attn.to_v.weight": "attn.w1v.weight", + "attn.to_out.0.weight": "attn.w1o.weight", + "norm1.linear.weight": "modCX.1.weight", + "ff.linear_1.weight": "mlp.c_fc1.weight", + "ff.linear_2.weight": "mlp.c_fc2.weight", + "ff.out_projection.weight": "mlp.c_proj.weight" + } + + for k in block_map: + key_map["{}.{}.{}".format(prefix_from, index, k)] = "{}.{}.{}".format(prefix_to, index, block_map[k]) + + MAP_BASIC = { + ("positional_encoding", "pos_embed.pos_embed"), + ("register_tokens", "register_tokens"), + ("t_embedder.mlp.0.weight", "time_step_proj.linear_1.weight"), + ("t_embedder.mlp.0.bias", "time_step_proj.linear_1.bias"), + ("t_embedder.mlp.2.weight", "time_step_proj.linear_2.weight"), + ("t_embedder.mlp.2.bias", "time_step_proj.linear_2.bias"), + ("cond_seq_linear.weight", "context_embedder.weight"), + ("init_x_linear.weight", "pos_embed.proj.weight"), + ("init_x_linear.bias", "pos_embed.proj.bias"), + ("final_linear.weight", "proj_out.weight"), + ("modF.1.weight", "norm_out.linear.weight", swap_scale_shift), + } + + for k in MAP_BASIC: + if len(k) > 2: + key_map[k[1]] = ("{}{}".format(output_prefix, k[0]), None, k[2]) + else: + key_map[k[1]] = "{}{}".format(output_prefix, k[0]) + + return key_map + +def flux_to_diffusers(mmdit_config, output_prefix=""): + n_double_layers = mmdit_config.get("depth", 0) + n_single_layers = mmdit_config.get("depth_single_blocks", 0) + hidden_size = mmdit_config.get("hidden_size", 0) + + key_map = {} + for index in range(n_double_layers): + prefix_from = "transformer_blocks.{}".format(index) + prefix_to = "{}double_blocks.{}".format(output_prefix, index) + + for end in ("weight", "bias"): + k = "{}.attn.".format(prefix_from) + qkv = "{}.img_attn.qkv.{}".format(prefix_to, end) + key_map["{}to_q.{}".format(k, end)] = (qkv, (0, 0, hidden_size)) + key_map["{}to_k.{}".format(k, end)] = (qkv, (0, hidden_size, hidden_size)) + key_map["{}to_v.{}".format(k, end)] = (qkv, (0, hidden_size * 2, hidden_size)) + + k = "{}.attn.".format(prefix_from) + qkv = "{}.txt_attn.qkv.{}".format(prefix_to, end) + key_map["{}add_q_proj.{}".format(k, end)] = (qkv, (0, 0, hidden_size)) + key_map["{}add_k_proj.{}".format(k, end)] = (qkv, (0, hidden_size, hidden_size)) + key_map["{}add_v_proj.{}".format(k, end)] = (qkv, (0, hidden_size * 2, hidden_size)) + + block_map = { + "attn.to_out.0.weight": "img_attn.proj.weight", + "attn.to_out.0.bias": "img_attn.proj.bias", + "norm1.linear.weight": "img_mod.lin.weight", + "norm1.linear.bias": "img_mod.lin.bias", + "norm1_context.linear.weight": "txt_mod.lin.weight", + "norm1_context.linear.bias": "txt_mod.lin.bias", + "attn.to_add_out.weight": "txt_attn.proj.weight", + "attn.to_add_out.bias": "txt_attn.proj.bias", + "ff.net.0.proj.weight": "img_mlp.0.weight", + "ff.net.0.proj.bias": "img_mlp.0.bias", + "ff.net.2.weight": "img_mlp.2.weight", + "ff.net.2.bias": "img_mlp.2.bias", + "ff_context.net.0.proj.weight": "txt_mlp.0.weight", + "ff_context.net.0.proj.bias": "txt_mlp.0.bias", + "ff_context.net.2.weight": "txt_mlp.2.weight", + "ff_context.net.2.bias": "txt_mlp.2.bias", + "attn.norm_q.weight": "img_attn.norm.query_norm.scale", + "attn.norm_k.weight": "img_attn.norm.key_norm.scale", + "attn.norm_added_q.weight": "txt_attn.norm.query_norm.scale", + "attn.norm_added_k.weight": "txt_attn.norm.key_norm.scale", + } + + for k in block_map: + key_map["{}.{}".format(prefix_from, k)] = "{}.{}".format(prefix_to, block_map[k]) + + for index in range(n_single_layers): + prefix_from = "single_transformer_blocks.{}".format(index) + prefix_to = "{}single_blocks.{}".format(output_prefix, index) + + for end in ("weight", "bias"): + k = "{}.attn.".format(prefix_from) + qkv = "{}.linear1.{}".format(prefix_to, end) + key_map["{}to_q.{}".format(k, end)] = (qkv, (0, 0, hidden_size)) + key_map["{}to_k.{}".format(k, end)] = (qkv, (0, hidden_size, hidden_size)) + key_map["{}to_v.{}".format(k, end)] = (qkv, (0, hidden_size * 2, hidden_size)) + key_map["{}.proj_mlp.{}".format(prefix_from, end)] = (qkv, (0, hidden_size * 3, hidden_size * 4)) + + block_map = { + "norm.linear.weight": "modulation.lin.weight", + "norm.linear.bias": "modulation.lin.bias", + "proj_out.weight": "linear2.weight", + "proj_out.bias": "linear2.bias", + "attn.norm_q.weight": "norm.query_norm.scale", + "attn.norm_k.weight": "norm.key_norm.scale", + } + + for k in block_map: + key_map["{}.{}".format(prefix_from, k)] = "{}.{}".format(prefix_to, block_map[k]) + + MAP_BASIC = { + ("final_layer.linear.bias", "proj_out.bias"), + ("final_layer.linear.weight", "proj_out.weight"), + ("img_in.bias", "x_embedder.bias"), + ("img_in.weight", "x_embedder.weight"), + ("time_in.in_layer.bias", "time_text_embed.timestep_embedder.linear_1.bias"), + ("time_in.in_layer.weight", "time_text_embed.timestep_embedder.linear_1.weight"), + ("time_in.out_layer.bias", "time_text_embed.timestep_embedder.linear_2.bias"), + ("time_in.out_layer.weight", "time_text_embed.timestep_embedder.linear_2.weight"), + ("txt_in.bias", "context_embedder.bias"), + ("txt_in.weight", "context_embedder.weight"), + ("vector_in.in_layer.bias", "time_text_embed.text_embedder.linear_1.bias"), + ("vector_in.in_layer.weight", "time_text_embed.text_embedder.linear_1.weight"), + ("vector_in.out_layer.bias", "time_text_embed.text_embedder.linear_2.bias"), + ("vector_in.out_layer.weight", "time_text_embed.text_embedder.linear_2.weight"), + ("guidance_in.in_layer.bias", "time_text_embed.guidance_embedder.linear_1.bias"), + ("guidance_in.in_layer.weight", "time_text_embed.guidance_embedder.linear_1.weight"), + ("guidance_in.out_layer.bias", "time_text_embed.guidance_embedder.linear_2.bias"), + ("guidance_in.out_layer.weight", "time_text_embed.guidance_embedder.linear_2.weight"), + ("final_layer.adaLN_modulation.1.bias", "norm_out.linear.bias", swap_scale_shift), + ("final_layer.adaLN_modulation.1.weight", "norm_out.linear.weight", swap_scale_shift), + ("pos_embed_input.bias", "controlnet_x_embedder.bias"), + ("pos_embed_input.weight", "controlnet_x_embedder.weight"), + } + + for k in MAP_BASIC: + if len(k) > 2: + key_map[k[1]] = ("{}{}".format(output_prefix, k[0]), None, k[2]) + else: + key_map[k[1]] = "{}{}".format(output_prefix, k[0]) + + return key_map + +def repeat_to_batch_size(tensor, batch_size, dim=0): + if tensor.shape[dim] > batch_size: + return tensor.narrow(dim, 0, batch_size) + elif tensor.shape[dim] < batch_size: + return tensor.repeat(dim * [1] + [math.ceil(batch_size / tensor.shape[dim])] + [1] * (len(tensor.shape) - 1 - dim)).narrow(dim, 0, batch_size) + return tensor + +def resize_to_batch_size(tensor, batch_size): + in_batch_size = tensor.shape[0] + if in_batch_size == batch_size: + return tensor + + if batch_size <= 1: + return tensor[:batch_size] + + output = torch.empty([batch_size] + list(tensor.shape)[1:], dtype=tensor.dtype, device=tensor.device) + if batch_size < in_batch_size: + scale = (in_batch_size - 1) / (batch_size - 1) + for i in range(batch_size): + output[i] = tensor[min(round(i * scale), in_batch_size - 1)] + else: + scale = in_batch_size / batch_size + for i in range(batch_size): + output[i] = tensor[min(math.floor((i + 0.5) * scale), in_batch_size - 1)] + + return output + +def resize_list_to_batch_size(l, batch_size): + in_batch_size = len(l) + if in_batch_size == batch_size or in_batch_size == 0: + return l + + if batch_size <= 1: + return l[:batch_size] + + output = [] + if batch_size < in_batch_size: + scale = (in_batch_size - 1) / (batch_size - 1) + for i in range(batch_size): + output.append(l[min(round(i * scale), in_batch_size - 1)]) + else: + scale = in_batch_size / batch_size + for i in range(batch_size): + output.append(l[min(math.floor((i + 0.5) * scale), in_batch_size - 1)]) + + return output + +def convert_sd_to(state_dict, dtype): + keys = list(state_dict.keys()) + for k in keys: + state_dict[k] = state_dict[k].to(dtype) + return state_dict + +def safetensors_header(safetensors_path, max_size=100*1024*1024): + with open(safetensors_path, "rb") as f: + header = f.read(8) + length_of_header = struct.unpack(' max_size: + return None + return f.read(length_of_header) + +def set_attr(obj, attr, value): + attrs = attr.split(".") + for name in attrs[:-1]: + obj = getattr(obj, name) + prev = getattr(obj, attrs[-1]) + setattr(obj, attrs[-1], value) + return prev + +def set_attr_param(obj, attr, value): + return set_attr(obj, attr, torch.nn.Parameter(value, requires_grad=False)) + +def copy_to_param(obj, attr, value): + # inplace update tensor instead of replacing it + attrs = attr.split(".") + for name in attrs[:-1]: + obj = getattr(obj, name) + prev = getattr(obj, attrs[-1]) + prev.data.copy_(value) + +def get_attr(obj, attr: str): + """Retrieves a nested attribute from an object using dot notation. + + Args: + obj: The object to get the attribute from + attr (str): The attribute path using dot notation (e.g. "model.layer.weight") + + Returns: + The value of the requested attribute + + Example: + model = MyModel() + weight = get_attr(model, "layer1.conv.weight") + # Equivalent to: model.layer1.conv.weight + + Important: + Always prefer `comfy.model_patcher.ModelPatcher.get_model_object` when + accessing nested model objects under `ModelPatcher.model`. + """ + attrs = attr.split(".") + for name in attrs: + obj = getattr(obj, name) + return obj + +def bislerp(samples, width, height): + def slerp(b1, b2, r): + '''slerps batches b1, b2 according to ratio r, batches should be flat e.g. NxC''' + + c = b1.shape[-1] + + #norms + b1_norms = torch.norm(b1, dim=-1, keepdim=True) + b2_norms = torch.norm(b2, dim=-1, keepdim=True) + + #normalize + b1_normalized = b1 / b1_norms + b2_normalized = b2 / b2_norms + + #zero when norms are zero + b1_normalized[b1_norms.expand(-1,c) == 0.0] = 0.0 + b2_normalized[b2_norms.expand(-1,c) == 0.0] = 0.0 + + #slerp + dot = (b1_normalized*b2_normalized).sum(1) + omega = torch.acos(dot) + so = torch.sin(omega) + + #technically not mathematically correct, but more pleasing? + res = (torch.sin((1.0-r.squeeze(1))*omega)/so).unsqueeze(1)*b1_normalized + (torch.sin(r.squeeze(1)*omega)/so).unsqueeze(1) * b2_normalized + res *= (b1_norms * (1.0-r) + b2_norms * r).expand(-1,c) + + #edge cases for same or polar opposites + res[dot > 1 - 1e-5] = b1[dot > 1 - 1e-5] + res[dot < 1e-5 - 1] = (b1 * (1.0-r) + b2 * r)[dot < 1e-5 - 1] + return res + + def generate_bilinear_data(length_old, length_new, device): + coords_1 = torch.arange(length_old, dtype=torch.float32, device=device).reshape((1,1,1,-1)) + coords_1 = torch.nn.functional.interpolate(coords_1, size=(1, length_new), mode="bilinear") + ratios = coords_1 - coords_1.floor() + coords_1 = coords_1.to(torch.int64) + + coords_2 = torch.arange(length_old, dtype=torch.float32, device=device).reshape((1,1,1,-1)) + 1 + coords_2[:,:,:,-1] -= 1 + coords_2 = torch.nn.functional.interpolate(coords_2, size=(1, length_new), mode="bilinear") + coords_2 = coords_2.to(torch.int64) + return ratios, coords_1, coords_2 + + orig_dtype = samples.dtype + samples = samples.float() + n,c,h,w = samples.shape + h_new, w_new = (height, width) + + #linear w + ratios, coords_1, coords_2 = generate_bilinear_data(w, w_new, samples.device) + coords_1 = coords_1.expand((n, c, h, -1)) + coords_2 = coords_2.expand((n, c, h, -1)) + ratios = ratios.expand((n, 1, h, -1)) + + pass_1 = samples.gather(-1,coords_1).movedim(1, -1).reshape((-1,c)) + pass_2 = samples.gather(-1,coords_2).movedim(1, -1).reshape((-1,c)) + ratios = ratios.movedim(1, -1).reshape((-1,1)) + + result = slerp(pass_1, pass_2, ratios) + result = result.reshape(n, h, w_new, c).movedim(-1, 1) + + #linear h + ratios, coords_1, coords_2 = generate_bilinear_data(h, h_new, samples.device) + coords_1 = coords_1.reshape((1,1,-1,1)).expand((n, c, -1, w_new)) + coords_2 = coords_2.reshape((1,1,-1,1)).expand((n, c, -1, w_new)) + ratios = ratios.reshape((1,1,-1,1)).expand((n, 1, -1, w_new)) + + pass_1 = result.gather(-2,coords_1).movedim(1, -1).reshape((-1,c)) + pass_2 = result.gather(-2,coords_2).movedim(1, -1).reshape((-1,c)) + ratios = ratios.movedim(1, -1).reshape((-1,1)) + + result = slerp(pass_1, pass_2, ratios) + result = result.reshape(n, h_new, w_new, c).movedim(-1, 1) + return result.to(orig_dtype) + +def lanczos(samples, width, height): + images = [Image.fromarray(np.clip(255. * image.movedim(0, -1).cpu().numpy(), 0, 255).astype(np.uint8)) for image in samples] + images = [image.resize((width, height), resample=Image.Resampling.LANCZOS) for image in images] + images = [torch.from_numpy(np.array(image).astype(np.float32) / 255.0).movedim(-1, 0) for image in images] + result = torch.stack(images) + return result.to(samples.device, samples.dtype) + +def common_upscale(samples, width, height, upscale_method, crop): + orig_shape = tuple(samples.shape) + if len(orig_shape) > 4: + samples = samples.reshape(samples.shape[0], samples.shape[1], -1, samples.shape[-2], samples.shape[-1]) + samples = samples.movedim(2, 1) + samples = samples.reshape(-1, orig_shape[1], orig_shape[-2], orig_shape[-1]) + if crop == "center": + old_width = samples.shape[-1] + old_height = samples.shape[-2] + old_aspect = old_width / old_height + new_aspect = width / height + x = 0 + y = 0 + if old_aspect > new_aspect: + x = round((old_width - old_width * (new_aspect / old_aspect)) / 2) + elif old_aspect < new_aspect: + y = round((old_height - old_height * (old_aspect / new_aspect)) / 2) + s = samples.narrow(-2, y, old_height - y * 2).narrow(-1, x, old_width - x * 2) + else: + s = samples + + if upscale_method == "bislerp": + out = bislerp(s, width, height) + elif upscale_method == "lanczos": + out = lanczos(s, width, height) + else: + out = torch.nn.functional.interpolate(s, size=(height, width), mode=upscale_method) + + if len(orig_shape) == 4: + return out + + out = out.reshape((orig_shape[0], -1, orig_shape[1]) + (height, width)) + return out.movedim(2, 1).reshape(orig_shape[:-2] + (height, width)) + +def get_tiled_scale_steps(width, height, tile_x, tile_y, overlap): + rows = 1 if height <= tile_y else math.ceil((height - overlap) / (tile_y - overlap)) + cols = 1 if width <= tile_x else math.ceil((width - overlap) / (tile_x - overlap)) + return rows * cols + +@torch.inference_mode() +def tiled_scale_multidim(samples, function, tile=(64, 64), overlap=8, upscale_amount=4, out_channels=3, output_device="cpu", downscale=False, index_formulas=None, pbar=None): + dims = len(tile) + + if not (isinstance(upscale_amount, (tuple, list))): + upscale_amount = [upscale_amount] * dims + + if not (isinstance(overlap, (tuple, list))): + overlap = [overlap] * dims + + if index_formulas is None: + index_formulas = upscale_amount + + if not (isinstance(index_formulas, (tuple, list))): + index_formulas = [index_formulas] * dims + + def get_upscale(dim, val): + up = upscale_amount[dim] + if callable(up): + return up(val) + else: + return up * val + + def get_downscale(dim, val): + up = upscale_amount[dim] + if callable(up): + return up(val) + else: + return val / up + + def get_upscale_pos(dim, val): + up = index_formulas[dim] + if callable(up): + return up(val) + else: + return up * val + + def get_downscale_pos(dim, val): + up = index_formulas[dim] + if callable(up): + return up(val) + else: + return val / up + + if downscale: + get_scale = get_downscale + get_pos = get_downscale_pos + else: + get_scale = get_upscale + get_pos = get_upscale_pos + + def mult_list_upscale(a): + out = [] + for i in range(len(a)): + out.append(round(get_scale(i, a[i]))) + return out + + output = torch.empty([samples.shape[0], out_channels] + mult_list_upscale(samples.shape[2:]), device=output_device) + + for b in range(samples.shape[0]): + s = samples[b:b+1] + + # handle entire input fitting in a single tile + if all(s.shape[d+2] <= tile[d] for d in range(dims)): + output[b:b+1] = function(s).to(output_device) + if pbar is not None: + pbar.update(1) + continue + + out = torch.zeros([s.shape[0], out_channels] + mult_list_upscale(s.shape[2:]), device=output_device) + out_div = torch.zeros([s.shape[0], out_channels] + mult_list_upscale(s.shape[2:]), device=output_device) + + positions = [range(0, s.shape[d+2] - overlap[d], tile[d] - overlap[d]) if s.shape[d+2] > tile[d] else [0] for d in range(dims)] + + for it in itertools.product(*positions): + s_in = s + upscaled = [] + + for d in range(dims): + pos = max(0, min(s.shape[d + 2] - overlap[d], it[d])) + l = min(tile[d], s.shape[d + 2] - pos) + s_in = s_in.narrow(d + 2, pos, l) + upscaled.append(round(get_pos(d, pos))) + + ps = function(s_in).to(output_device) + mask = torch.ones_like(ps) + + for d in range(2, dims + 2): + feather = round(get_scale(d - 2, overlap[d - 2])) + if feather >= mask.shape[d]: + continue + for t in range(feather): + a = (t + 1) / feather + mask.narrow(d, t, 1).mul_(a) + mask.narrow(d, mask.shape[d] - 1 - t, 1).mul_(a) + + o = out + o_d = out_div + for d in range(dims): + o = o.narrow(d + 2, upscaled[d], mask.shape[d + 2]) + o_d = o_d.narrow(d + 2, upscaled[d], mask.shape[d + 2]) + + o.add_(ps * mask) + o_d.add_(mask) + + if pbar is not None: + pbar.update(1) + + output[b:b+1] = out/out_div + return output + +def tiled_scale(samples, function, tile_x=64, tile_y=64, overlap = 8, upscale_amount = 4, out_channels = 3, output_device="cpu", pbar = None): + return tiled_scale_multidim(samples, function, (tile_y, tile_x), overlap=overlap, upscale_amount=upscale_amount, out_channels=out_channels, output_device=output_device, pbar=pbar) + +PROGRESS_BAR_ENABLED = True +def set_progress_bar_enabled(enabled): + global PROGRESS_BAR_ENABLED + PROGRESS_BAR_ENABLED = enabled + +PROGRESS_BAR_HOOK = None +def set_progress_bar_global_hook(function): + global PROGRESS_BAR_HOOK + PROGRESS_BAR_HOOK = function + +class ProgressBar: + def __init__(self, total, node_id=None): + global PROGRESS_BAR_HOOK + self.total = total + self.current = 0 + self.hook = PROGRESS_BAR_HOOK + self.node_id = node_id + + def update_absolute(self, value, total=None, preview=None): + if total is not None: + self.total = total + if value > self.total: + value = self.total + self.current = value + if self.hook is not None: + self.hook(self.current, self.total, preview, node_id=self.node_id) + + def update(self, value): + self.update_absolute(self.current + value) + +def reshape_mask(input_mask, output_shape): + dims = len(output_shape) - 2 + + if dims == 1: + scale_mode = "linear" + + if dims == 2: + input_mask = input_mask.reshape((-1, 1, input_mask.shape[-2], input_mask.shape[-1])) + scale_mode = "bilinear" + + if dims == 3: + if len(input_mask.shape) < 5: + input_mask = input_mask.reshape((1, 1, -1, input_mask.shape[-2], input_mask.shape[-1])) + scale_mode = "trilinear" + + mask = torch.nn.functional.interpolate(input_mask, size=output_shape[2:], mode=scale_mode) + if mask.shape[1] < output_shape[1]: + mask = mask.repeat((1, output_shape[1]) + (1,) * dims)[:,:output_shape[1]] + mask = repeat_to_batch_size(mask, output_shape[0]) + return mask + +def upscale_dit_mask(mask: torch.Tensor, img_size_in, img_size_out): + hi, wi = img_size_in + ho, wo = img_size_out + # if it's already the correct size, no need to do anything + if (hi, wi) == (ho, wo): + return mask + if mask.ndim == 2: + mask = mask.unsqueeze(0) + if mask.ndim != 3: + raise ValueError(f"Got a mask of shape {list(mask.shape)}, expected [b, q, k] or [q, k]") + txt_tokens = mask.shape[1] - (hi * wi) + # quadrants of the mask + txt_to_txt = mask[:, :txt_tokens, :txt_tokens] + txt_to_img = mask[:, :txt_tokens, txt_tokens:] + img_to_img = mask[:, txt_tokens:, txt_tokens:] + img_to_txt = mask[:, txt_tokens:, :txt_tokens] + + # convert to 1d x 2d, interpolate, then back to 1d x 1d + txt_to_img = rearrange (txt_to_img, "b t (h w) -> b t h w", h=hi, w=wi) + txt_to_img = interpolate(txt_to_img, size=img_size_out, mode="bilinear") + txt_to_img = rearrange (txt_to_img, "b t h w -> b t (h w)") + # this one is hard because we have to do it twice + # convert to 1d x 2d, interpolate, then to 2d x 1d, interpolate, then 1d x 1d + img_to_img = rearrange (img_to_img, "b hw (h w) -> b hw h w", h=hi, w=wi) + img_to_img = interpolate(img_to_img, size=img_size_out, mode="bilinear") + img_to_img = rearrange (img_to_img, "b (hk wk) hq wq -> b (hq wq) hk wk", hk=hi, wk=wi) + img_to_img = interpolate(img_to_img, size=img_size_out, mode="bilinear") + img_to_img = rearrange (img_to_img, "b (hq wq) hk wk -> b (hk wk) (hq wq)", hq=ho, wq=wo) + # convert to 2d x 1d, interpolate, then back to 1d x 1d + img_to_txt = rearrange (img_to_txt, "b (h w) t -> b t h w", h=hi, w=wi) + img_to_txt = interpolate(img_to_txt, size=img_size_out, mode="bilinear") + img_to_txt = rearrange (img_to_txt, "b t h w -> b (h w) t") + + # reassemble the mask from blocks + out = torch.cat([ + torch.cat([txt_to_txt, txt_to_img], dim=2), + torch.cat([img_to_txt, img_to_img], dim=2)], + dim=1 + ) + return out diff --git a/docs/hel-892/resize-compare-reference/core__folder_paths.py b/docs/hel-892/resize-compare-reference/core__folder_paths.py new file mode 100644 index 00000000..f110d832 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/core__folder_paths.py @@ -0,0 +1,429 @@ +from __future__ import annotations + +import os +import time +import mimetypes +import logging +from typing import Literal, List +from collections.abc import Collection + +from comfy.cli_args import args + +supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'} + +folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {} + +# --base-directory - Resets all default paths configured in folder_paths with a new base path +if args.base_directory: + base_path = os.path.abspath(args.base_directory) +else: + base_path = os.path.dirname(os.path.realpath(__file__)) + +models_dir = os.path.join(base_path, "models") +folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions) +folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"]) + +folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions) +folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions) +folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions) +folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions) +folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions) +folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions) +folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions) +folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"]) +folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions) + +folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions) +folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions) + +folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions) + +folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set()) + +folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions) + +folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions) + +folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""}) + +folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions) + +folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions) + +output_directory = os.path.join(base_path, "output") +temp_directory = os.path.join(base_path, "temp") +input_directory = os.path.join(base_path, "input") +user_directory = os.path.join(base_path, "user") + +filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {} + +class CacheHelper: + """ + Helper class for managing file list cache data. + """ + def __init__(self): + self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {} + self.active = False + + def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]: + if not self.active: + return default + return self.cache.get(key, default) + + def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None: + if self.active: + self.cache[key] = value + + def clear(self): + self.cache.clear() + + def __enter__(self): + self.active = True + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.active = False + self.clear() + +cache_helper = CacheHelper() + +extension_mimetypes_cache = { + "webp" : "image", + "fbx" : "model", +} + +def map_legacy(folder_name: str) -> str: + legacy = {"unet": "diffusion_models", + "clip": "text_encoders"} + return legacy.get(folder_name, folder_name) + +if not os.path.exists(input_directory): + try: + os.makedirs(input_directory) + except: + logging.error("Failed to create input directory") + +def set_output_directory(output_dir: str) -> None: + global output_directory + output_directory = output_dir + +def set_temp_directory(temp_dir: str) -> None: + global temp_directory + temp_directory = temp_dir + +def set_input_directory(input_dir: str) -> None: + global input_directory + input_directory = input_dir + +def get_output_directory() -> str: + global output_directory + return output_directory + +def get_temp_directory() -> str: + global temp_directory + return temp_directory + +def get_input_directory() -> str: + global input_directory + return input_directory + +def get_user_directory() -> str: + return user_directory + +def set_user_directory(user_dir: str) -> None: + global user_directory + user_directory = user_dir + + +#NOTE: used in http server so don't put folders that should not be accessed remotely +def get_directory_by_type(type_name: str) -> str | None: + if type_name == "output": + return get_output_directory() + if type_name == "temp": + return get_temp_directory() + if type_name == "input": + return get_input_directory() + return None + +def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]: + """ + Example: + files = os.listdir(folder_paths.get_input_directory()) + videos = filter_files_content_types(files, ["video"]) + + Note: + - 'model' in MIME context refers to 3D models, not files containing trained weights and parameters + """ + global extension_mimetypes_cache + result = [] + for file in files: + extension = file.split('.')[-1] + if extension not in extension_mimetypes_cache: + mime_type, _ = mimetypes.guess_type(file, strict=False) + if not mime_type: + continue + content_type = mime_type.split('/')[0] + extension_mimetypes_cache[extension] = content_type + else: + content_type = extension_mimetypes_cache[extension] + + if content_type in content_types: + result.append(file) + return result + +# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format +# otherwise use default_path as base_dir +def annotated_filepath(name: str) -> tuple[str, str | None]: + if name.endswith("[output]"): + base_dir = get_output_directory() + name = name[:-9] + elif name.endswith("[input]"): + base_dir = get_input_directory() + name = name[:-8] + elif name.endswith("[temp]"): + base_dir = get_temp_directory() + name = name[:-7] + else: + return name, None + + return name, base_dir + + +def get_annotated_filepath(name: str, default_dir: str | None=None) -> str: + name, base_dir = annotated_filepath(name) + + if base_dir is None: + if default_dir is not None: + base_dir = default_dir + else: + base_dir = get_input_directory() # fallback path + + return os.path.join(base_dir, name) + + +def exists_annotated_filepath(name) -> bool: + name, base_dir = annotated_filepath(name) + + if base_dir is None: + base_dir = get_input_directory() # fallback path + + filepath = os.path.join(base_dir, name) + return os.path.exists(filepath) + + +def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None: + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name in folder_names_and_paths: + paths, _exts = folder_names_and_paths[folder_name] + if full_folder_path in paths: + if is_default and paths[0] != full_folder_path: + # If the path to the folder is not the first in the list, move it to the beginning. + paths.remove(full_folder_path) + paths.insert(0, full_folder_path) + else: + if is_default: + paths.insert(0, full_folder_path) + else: + paths.append(full_folder_path) + else: + folder_names_and_paths[folder_name] = ([full_folder_path], set()) + +def get_folder_paths(folder_name: str) -> list[str]: + folder_name = map_legacy(folder_name) + return folder_names_and_paths[folder_name][0][:] + +def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]: + if not os.path.isdir(directory): + return [], {} + + if excluded_dir_names is None: + excluded_dir_names = [] + + result = [] + dirs = {} + + # Attempt to add the initial directory to dirs with error handling + try: + dirs[directory] = os.path.getmtime(directory) + except FileNotFoundError: + logging.warning(f"Warning: Unable to access {directory}. Skipping this path.") + + logging.debug("recursive file list on directory {}".format(directory)) + dirpath: str + subdirs: list[str] + filenames: list[str] + + for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True): + subdirs[:] = [d for d in subdirs if d not in excluded_dir_names] + for file_name in filenames: + try: + relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory) + result.append(relative_path) + except: + logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.") + continue + + for d in subdirs: + path: str = os.path.join(dirpath, d) + try: + dirs[path] = os.path.getmtime(path) + except FileNotFoundError: + logging.warning(f"Warning: Unable to access {path}. Skipping this path.") + continue + logging.debug("found {} files".format(len(result))) + return result, dirs + +def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]: + return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files))) + + + +def get_full_path(folder_name: str, filename: str) -> str | None: + """ + Get the full path of a file in a folder, has to be a file + """ + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name not in folder_names_and_paths: + return None + folders = folder_names_and_paths[folder_name] + filename = os.path.relpath(os.path.join("/", filename), "/") + for x in folders[0]: + full_path = os.path.join(x, filename) + if os.path.isfile(full_path): + return full_path + elif os.path.islink(full_path): + logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path)) + + return None + + +def get_full_path_or_raise(folder_name: str, filename: str) -> str: + """ + Get the full path of a file in a folder, has to be a file + """ + full_path = get_full_path(folder_name, filename) + if full_path is None: + raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.") + return full_path + + +def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]: + folder_name = map_legacy(folder_name) + global folder_names_and_paths + output_list = set() + folders = folder_names_and_paths[folder_name] + output_folders = {} + for x in folders[0]: + files, folders_all = recursive_search(x, excluded_dir_names=[".git"]) + output_list.update(filter_files_extensions(files, folders[1])) + output_folders = {**output_folders, **folders_all} + + return sorted(list(output_list)), output_folders, time.perf_counter() + +def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None: + strong_cache = cache_helper.get(folder_name) + if strong_cache is not None: + return strong_cache + + global filename_list_cache + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name not in filename_list_cache: + return None + out = filename_list_cache[folder_name] + + for x in out[1]: + time_modified = out[1][x] + folder = x + if os.path.getmtime(folder) != time_modified: + return None + + folders = folder_names_and_paths[folder_name] + for x in folders[0]: + if os.path.isdir(x): + if x not in out[1]: + return None + + return out + +def get_filename_list(folder_name: str) -> list[str]: + folder_name = map_legacy(folder_name) + out = cached_filename_list_(folder_name) + if out is None: + out = get_filename_list_(folder_name) + global filename_list_cache + filename_list_cache[folder_name] = out + cache_helper.set(folder_name, out) + return list(out[0]) + +def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]: + def map_filename(filename: str) -> tuple[int, str]: + prefix_len = len(os.path.basename(filename_prefix)) + prefix = filename[:prefix_len + 1] + try: + digits = int(filename[prefix_len + 1:].split('_')[0]) + except: + digits = 0 + return digits, prefix + + def compute_vars(input: str, image_width: int, image_height: int) -> str: + input = input.replace("%width%", str(image_width)) + input = input.replace("%height%", str(image_height)) + now = time.localtime() + input = input.replace("%year%", str(now.tm_year)) + input = input.replace("%month%", str(now.tm_mon).zfill(2)) + input = input.replace("%day%", str(now.tm_mday).zfill(2)) + input = input.replace("%hour%", str(now.tm_hour).zfill(2)) + input = input.replace("%minute%", str(now.tm_min).zfill(2)) + input = input.replace("%second%", str(now.tm_sec).zfill(2)) + return input + + if "%" in filename_prefix: + filename_prefix = compute_vars(filename_prefix, image_width, image_height) + + subfolder = os.path.dirname(os.path.normpath(filename_prefix)) + filename = os.path.basename(os.path.normpath(filename_prefix)) + + full_output_folder = os.path.join(output_dir, subfolder) + + if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir: + err = "**** ERROR: Saving image outside the output folder is not allowed." + \ + "\n full_output_folder: " + os.path.abspath(full_output_folder) + \ + "\n output_dir: " + output_dir + \ + "\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) + logging.error(err) + raise Exception(err) + + try: + counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1 + except ValueError: + counter = 1 + except FileNotFoundError: + os.makedirs(full_output_folder, exist_ok=True) + counter = 1 + return full_output_folder, filename, counter, subfolder, filename_prefix + +def get_input_subfolders() -> list[str]: + """Returns a list of all subfolder paths in the input directory, recursively. + + Returns: + List of folder paths relative to the input directory, excluding the root directory + """ + input_dir = get_input_directory() + folders = [] + + try: + if not os.path.exists(input_dir): + return [] + + for root, dirs, _ in os.walk(input_dir): + rel_path = os.path.relpath(root, input_dir) + if rel_path != ".": # Only include non-root directories + # Normalize path separators to forward slashes + folders.append(rel_path.replace(os.sep, '/')) + + return sorted(folders) + except FileNotFoundError: + return [] diff --git a/docs/hel-892/resize-compare-reference/core__nodes.py b/docs/hel-892/resize-compare-reference/core__nodes.py new file mode 100644 index 00000000..7cfa8ca1 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/core__nodes.py @@ -0,0 +1,2421 @@ +from __future__ import annotations +import torch + + +import os +import sys +import json +import hashlib +import inspect +import traceback +import math +import time +import random +import logging + +from PIL import Image, ImageOps, ImageSequence +from PIL.PngImagePlugin import PngInfo + +import numpy as np +import safetensors.torch + +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy")) + +import comfy.diffusers_load +import comfy.samplers +import comfy.sample +import comfy.sd +import comfy.utils +import comfy.controlnet +from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict, FileLocator +from comfy_api.internal import register_versions, ComfyAPIWithVersion +from comfy_api.version_list import supported_versions +from comfy_api.latest import io, ComfyExtension + +import comfy.clip_vision + +import comfy.model_management +from comfy.cli_args import args + +import importlib + +import folder_paths +import latent_preview +import node_helpers + +def before_node_execution(): + comfy.model_management.throw_exception_if_processing_interrupted() + +def interrupt_processing(value=True): + comfy.model_management.interrupt_current_processing(value) + +MAX_RESOLUTION=16384 + +class CLIPTextEncode(ComfyNodeABC): + @classmethod + def INPUT_TYPES(s) -> InputTypeDict: + return { + "required": { + "text": (IO.STRING, {"multiline": True, "dynamicPrompts": True, "tooltip": "The text to be encoded."}), + "clip": (IO.CLIP, {"tooltip": "The CLIP model used for encoding the text."}) + } + } + RETURN_TYPES = (IO.CONDITIONING,) + OUTPUT_TOOLTIPS = ("A conditioning containing the embedded text used to guide the diffusion model.",) + FUNCTION = "encode" + + CATEGORY = "conditioning" + DESCRIPTION = "Encodes a text prompt using a CLIP model into an embedding that can be used to guide the diffusion model towards generating specific images." + + def encode(self, clip, text): + if clip is None: + raise RuntimeError("ERROR: clip input is invalid: None\n\nIf the clip is from a checkpoint loader node your checkpoint does not contain a valid clip or text encoder model.") + tokens = clip.tokenize(text) + return (clip.encode_from_tokens_scheduled(tokens), ) + + +class ConditioningCombine: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_1": ("CONDITIONING", ), "conditioning_2": ("CONDITIONING", )}} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "combine" + + CATEGORY = "conditioning" + + def combine(self, conditioning_1, conditioning_2): + return (conditioning_1 + conditioning_2, ) + +class ConditioningAverage : + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_to": ("CONDITIONING", ), "conditioning_from": ("CONDITIONING", ), + "conditioning_to_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "addWeighted" + + CATEGORY = "conditioning" + + def addWeighted(self, conditioning_to, conditioning_from, conditioning_to_strength): + out = [] + + if len(conditioning_from) > 1: + logging.warning("Warning: ConditioningAverage conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.") + + cond_from = conditioning_from[0][0] + pooled_output_from = conditioning_from[0][1].get("pooled_output", None) + + for i in range(len(conditioning_to)): + t1 = conditioning_to[i][0] + pooled_output_to = conditioning_to[i][1].get("pooled_output", pooled_output_from) + t0 = cond_from[:,:t1.shape[1]] + if t0.shape[1] < t1.shape[1]: + t0 = torch.cat([t0] + [torch.zeros((1, (t1.shape[1] - t0.shape[1]), t1.shape[2]))], dim=1) + + tw = torch.mul(t1, conditioning_to_strength) + torch.mul(t0, (1.0 - conditioning_to_strength)) + t_to = conditioning_to[i][1].copy() + if pooled_output_from is not None and pooled_output_to is not None: + t_to["pooled_output"] = torch.mul(pooled_output_to, conditioning_to_strength) + torch.mul(pooled_output_from, (1.0 - conditioning_to_strength)) + elif pooled_output_from is not None: + t_to["pooled_output"] = pooled_output_from + + n = [tw, t_to] + out.append(n) + return (out, ) + +class ConditioningConcat: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "conditioning_to": ("CONDITIONING",), + "conditioning_from": ("CONDITIONING",), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "concat" + + CATEGORY = "conditioning" + + def concat(self, conditioning_to, conditioning_from): + out = [] + + if len(conditioning_from) > 1: + logging.warning("Warning: ConditioningConcat conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.") + + cond_from = conditioning_from[0][0] + + for i in range(len(conditioning_to)): + t1 = conditioning_to[i][0] + tw = torch.cat((t1, cond_from),1) + n = [tw, conditioning_to[i][1].copy()] + out.append(n) + + return (out, ) + +class ConditioningSetArea: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "width": ("INT", {"default": 64, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 64, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, width, height, x, y, strength): + c = node_helpers.conditioning_set_values(conditioning, {"area": (height // 8, width // 8, y // 8, x // 8), + "strength": strength, + "set_area_to_bounds": False}) + return (c, ) + +class ConditioningSetAreaPercentage: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "width": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}), + "height": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}), + "x": ("FLOAT", {"default": 0, "min": 0, "max": 1.0, "step": 0.01}), + "y": ("FLOAT", {"default": 0, "min": 0, "max": 1.0, "step": 0.01}), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, width, height, x, y, strength): + c = node_helpers.conditioning_set_values(conditioning, {"area": ("percentage", height, width, y, x), + "strength": strength, + "set_area_to_bounds": False}) + return (c, ) + +class ConditioningSetAreaStrength: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, strength): + c = node_helpers.conditioning_set_values(conditioning, {"strength": strength}) + return (c, ) + + +class ConditioningSetMask: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "mask": ("MASK", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, mask, set_cond_area, strength): + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask.shape) < 3: + mask = mask.unsqueeze(0) + + c = node_helpers.conditioning_set_values(conditioning, {"mask": mask, + "set_area_to_bounds": set_area_to_bounds, + "mask_strength": strength}) + return (c, ) + +class ConditioningZeroOut: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", )}} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "zero_out" + + CATEGORY = "advanced/conditioning" + + def zero_out(self, conditioning): + c = [] + for t in conditioning: + d = t[1].copy() + pooled_output = d.get("pooled_output", None) + if pooled_output is not None: + d["pooled_output"] = torch.zeros_like(pooled_output) + conditioning_lyrics = d.get("conditioning_lyrics", None) + if conditioning_lyrics is not None: + d["conditioning_lyrics"] = torch.zeros_like(conditioning_lyrics) + n = [torch.zeros_like(t[0]), d] + c.append(n) + return (c, ) + +class ConditioningSetTimestepRange: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "start": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.001}), + "end": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "set_range" + + CATEGORY = "advanced/conditioning" + + def set_range(self, conditioning, start, end): + c = node_helpers.conditioning_set_values(conditioning, {"start_percent": start, + "end_percent": end}) + return (c, ) + +class VAEDecode: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "samples": ("LATENT", {"tooltip": "The latent to be decoded."}), + "vae": ("VAE", {"tooltip": "The VAE model used for decoding the latent."}) + } + } + RETURN_TYPES = ("IMAGE",) + OUTPUT_TOOLTIPS = ("The decoded image.",) + FUNCTION = "decode" + + CATEGORY = "latent" + DESCRIPTION = "Decodes latent images back into pixel space images." + + def decode(self, vae, samples): + images = vae.decode(samples["samples"]) + if len(images.shape) == 5: #Combine batches + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + +class VAEDecodeTiled: + @classmethod + def INPUT_TYPES(s): + return {"required": {"samples": ("LATENT", ), "vae": ("VAE", ), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 32}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to decode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "decode" + + CATEGORY = "_for_testing" + + def decode(self, vae, samples, tile_size, overlap=64, temporal_size=64, temporal_overlap=8): + if tile_size < overlap * 4: + overlap = tile_size // 4 + if temporal_size < temporal_overlap * 2: + temporal_overlap = temporal_overlap // 2 + temporal_compression = vae.temporal_compression_decode() + if temporal_compression is not None: + temporal_size = max(2, temporal_size // temporal_compression) + temporal_overlap = max(1, min(temporal_size // 2, temporal_overlap // temporal_compression)) + else: + temporal_size = None + temporal_overlap = None + + compression = vae.spacial_compression_decode() + images = vae.decode_tiled(samples["samples"], tile_x=tile_size // compression, tile_y=tile_size // compression, overlap=overlap // compression, tile_t=temporal_size, overlap_t=temporal_overlap) + if len(images.shape) == 5: #Combine batches + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + +class VAEEncode: + @classmethod + def INPUT_TYPES(s): + return {"required": { "pixels": ("IMAGE", ), "vae": ("VAE", )}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "latent" + + def encode(self, vae, pixels): + t = vae.encode(pixels[:,:,:,:3]) + return ({"samples":t}, ) + +class VAEEncodeTiled: + @classmethod + def INPUT_TYPES(s): + return {"required": {"pixels": ("IMAGE", ), "vae": ("VAE", ), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 64}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to encode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "_for_testing" + + def encode(self, vae, pixels, tile_size, overlap, temporal_size=64, temporal_overlap=8): + t = vae.encode_tiled(pixels[:,:,:,:3], tile_x=tile_size, tile_y=tile_size, overlap=overlap, tile_t=temporal_size, overlap_t=temporal_overlap) + return ({"samples": t}, ) + +class VAEEncodeForInpaint: + @classmethod + def INPUT_TYPES(s): + return {"required": { "pixels": ("IMAGE", ), "vae": ("VAE", ), "mask": ("MASK", ), "grow_mask_by": ("INT", {"default": 6, "min": 0, "max": 64, "step": 1}),}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "latent/inpaint" + + def encode(self, vae, pixels, mask, grow_mask_by=6): + x = (pixels.shape[1] // vae.downscale_ratio) * vae.downscale_ratio + y = (pixels.shape[2] // vae.downscale_ratio) * vae.downscale_ratio + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear") + + pixels = pixels.clone() + if pixels.shape[1] != x or pixels.shape[2] != y: + x_offset = (pixels.shape[1] % vae.downscale_ratio) // 2 + y_offset = (pixels.shape[2] % vae.downscale_ratio) // 2 + pixels = pixels[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + mask = mask[:,:,x_offset:x + x_offset, y_offset:y + y_offset] + + #grow mask by a few pixels to keep things seamless in latent space + if grow_mask_by == 0: + mask_erosion = mask + else: + kernel_tensor = torch.ones((1, 1, grow_mask_by, grow_mask_by)) + padding = math.ceil((grow_mask_by - 1) / 2) + + mask_erosion = torch.clamp(torch.nn.functional.conv2d(mask.round(), kernel_tensor, padding=padding), 0, 1) + + m = (1.0 - mask.round()).squeeze(1) + for i in range(3): + pixels[:,:,:,i] -= 0.5 + pixels[:,:,:,i] *= m + pixels[:,:,:,i] += 0.5 + t = vae.encode(pixels) + + return ({"samples":t, "noise_mask": (mask_erosion[:,:,:x,:y].round())}, ) + + +class InpaintModelConditioning: + @classmethod + def INPUT_TYPES(s): + return {"required": {"positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "vae": ("VAE", ), + "pixels": ("IMAGE", ), + "mask": ("MASK", ), + "noise_mask": ("BOOLEAN", {"default": True, "tooltip": "Add a noise mask to the latent so sampling will only happen within the mask. Might improve results or completely break things depending on the model."}), + }} + + RETURN_TYPES = ("CONDITIONING","CONDITIONING","LATENT") + RETURN_NAMES = ("positive", "negative", "latent") + FUNCTION = "encode" + + CATEGORY = "conditioning/inpaint" + + def encode(self, positive, negative, pixels, vae, mask, noise_mask=True): + x = (pixels.shape[1] // 8) * 8 + y = (pixels.shape[2] // 8) * 8 + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear") + + orig_pixels = pixels + pixels = orig_pixels.clone() + if pixels.shape[1] != x or pixels.shape[2] != y: + x_offset = (pixels.shape[1] % 8) // 2 + y_offset = (pixels.shape[2] % 8) // 2 + pixels = pixels[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + mask = mask[:,:,x_offset:x + x_offset, y_offset:y + y_offset] + + m = (1.0 - mask.round()).squeeze(1) + for i in range(3): + pixels[:,:,:,i] -= 0.5 + pixels[:,:,:,i] *= m + pixels[:,:,:,i] += 0.5 + concat_latent = vae.encode(pixels) + orig_latent = vae.encode(orig_pixels) + + out_latent = {} + + out_latent["samples"] = orig_latent + if noise_mask: + out_latent["noise_mask"] = mask + + out = [] + for conditioning in [positive, negative]: + c = node_helpers.conditioning_set_values(conditioning, {"concat_latent_image": concat_latent, + "concat_mask": mask}) + out.append(c) + return (out[0], out[1], out_latent) + + +class SaveLatent: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT", ), + "filename_prefix": ("STRING", {"default": "latents/ComfyUI"})}, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + RETURN_TYPES = () + FUNCTION = "save" + + OUTPUT_NODE = True + + CATEGORY = "_for_testing" + + def save(self, samples, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None): + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + + # support save metadata for latent sharing + prompt_info = "" + if prompt is not None: + prompt_info = json.dumps(prompt) + + metadata = None + if not args.disable_metadata: + metadata = {"prompt": prompt_info} + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata[x] = json.dumps(extra_pnginfo[x]) + + file = f"{filename}_{counter:05}_.latent" + + results: list[FileLocator] = [] + results.append({ + "filename": file, + "subfolder": subfolder, + "type": "output" + }) + + file = os.path.join(full_output_folder, file) + + output = {} + output["latent_tensor"] = samples["samples"].contiguous() + output["latent_format_version_0"] = torch.tensor([]) + + comfy.utils.save_torch_file(output, file, metadata=metadata) + return { "ui": { "latents": results } } + + +class LoadLatent: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f)) and f.endswith(".latent")] + return {"required": {"latent": [sorted(files), ]}, } + + CATEGORY = "_for_testing" + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "load" + + def load(self, latent): + latent_path = folder_paths.get_annotated_filepath(latent) + latent = safetensors.torch.load_file(latent_path, device="cpu") + multiplier = 1.0 + if "latent_format_version_0" not in latent: + multiplier = 1.0 / 0.18215 + samples = {"samples": latent["latent_tensor"].float() * multiplier} + return (samples, ) + + @classmethod + def IS_CHANGED(s, latent): + image_path = folder_paths.get_annotated_filepath(latent) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, latent): + if not folder_paths.exists_annotated_filepath(latent): + return "Invalid latent file: {}".format(latent) + return True + + +class CheckpointLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "config_name": (folder_paths.get_filename_list("configs"), ), + "ckpt_name": (folder_paths.get_filename_list("checkpoints"), )}} + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + FUNCTION = "load_checkpoint" + + CATEGORY = "advanced/loaders" + DEPRECATED = True + + def load_checkpoint(self, config_name, ckpt_name): + config_path = folder_paths.get_full_path("configs", config_name) + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + return comfy.sd.load_checkpoint(config_path, ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + +class CheckpointLoaderSimple: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "ckpt_name": (folder_paths.get_filename_list("checkpoints"), {"tooltip": "The name of the checkpoint (model) to load."}), + } + } + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + OUTPUT_TOOLTIPS = ("The model used for denoising latents.", + "The CLIP model used for encoding text prompts.", + "The VAE model used for encoding and decoding images to and from latent space.") + FUNCTION = "load_checkpoint" + + CATEGORY = "loaders" + DESCRIPTION = "Loads a diffusion model checkpoint, diffusion models are used to denoise latents." + + def load_checkpoint(self, ckpt_name): + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + return out[:3] + +class DiffusersLoader: + @classmethod + def INPUT_TYPES(cls): + paths = [] + for search_path in folder_paths.get_folder_paths("diffusers"): + if os.path.exists(search_path): + for root, subdir, files in os.walk(search_path, followlinks=True): + if "model_index.json" in files: + paths.append(os.path.relpath(root, start=search_path)) + + return {"required": {"model_path": (paths,), }} + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + FUNCTION = "load_checkpoint" + + CATEGORY = "advanced/loaders/deprecated" + + def load_checkpoint(self, model_path, output_vae=True, output_clip=True): + for search_path in folder_paths.get_folder_paths("diffusers"): + if os.path.exists(search_path): + path = os.path.join(search_path, model_path) + if os.path.exists(path): + model_path = path + break + + return comfy.diffusers_load.load_diffusers(model_path, output_vae=output_vae, output_clip=output_clip, embedding_directory=folder_paths.get_folder_paths("embeddings")) + + +class unCLIPCheckpointLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "ckpt_name": (folder_paths.get_filename_list("checkpoints"), ), + }} + RETURN_TYPES = ("MODEL", "CLIP", "VAE", "CLIP_VISION") + FUNCTION = "load_checkpoint" + + CATEGORY = "loaders" + + def load_checkpoint(self, ckpt_name, output_vae=True, output_clip=True): + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, output_clipvision=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + return out + +class CLIPSetLastLayer: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip": ("CLIP", ), + "stop_at_clip_layer": ("INT", {"default": -1, "min": -24, "max": -1, "step": 1}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "set_last_layer" + + CATEGORY = "conditioning" + + def set_last_layer(self, clip, stop_at_clip_layer): + clip = clip.clone() + clip.clip_layer(stop_at_clip_layer) + return (clip,) + +class LoraLoader: + def __init__(self): + self.loaded_lora = None + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL", {"tooltip": "The diffusion model the LoRA will be applied to."}), + "clip": ("CLIP", {"tooltip": "The CLIP model the LoRA will be applied to."}), + "lora_name": (folder_paths.get_filename_list("loras"), {"tooltip": "The name of the LoRA."}), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the diffusion model. This value can be negative."}), + "strength_clip": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the CLIP model. This value can be negative."}), + } + } + + RETURN_TYPES = ("MODEL", "CLIP") + OUTPUT_TOOLTIPS = ("The modified diffusion model.", "The modified CLIP model.") + FUNCTION = "load_lora" + + CATEGORY = "loaders" + DESCRIPTION = "LoRAs are used to modify diffusion and CLIP models, altering the way in which latents are denoised such as applying styles. Multiple LoRA nodes can be linked together." + + def load_lora(self, model, clip, lora_name, strength_model, strength_clip): + if strength_model == 0 and strength_clip == 0: + return (model, clip) + + lora_path = folder_paths.get_full_path_or_raise("loras", lora_name) + lora = None + if self.loaded_lora is not None: + if self.loaded_lora[0] == lora_path: + lora = self.loaded_lora[1] + else: + self.loaded_lora = None + + if lora is None: + lora = comfy.utils.load_torch_file(lora_path, safe_load=True) + self.loaded_lora = (lora_path, lora) + + model_lora, clip_lora = comfy.sd.load_lora_for_models(model, clip, lora, strength_model, strength_clip) + return (model_lora, clip_lora) + +class LoraLoaderModelOnly(LoraLoader): + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "lora_name": (folder_paths.get_filename_list("loras"), ), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01}), + }} + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_lora_model_only" + + def load_lora_model_only(self, model, lora_name, strength_model): + return (self.load_lora(model, None, lora_name, strength_model, 0)[0],) + +class VAELoader: + @staticmethod + def vae_list(): + vaes = folder_paths.get_filename_list("vae") + approx_vaes = folder_paths.get_filename_list("vae_approx") + sdxl_taesd_enc = False + sdxl_taesd_dec = False + sd1_taesd_enc = False + sd1_taesd_dec = False + sd3_taesd_enc = False + sd3_taesd_dec = False + f1_taesd_enc = False + f1_taesd_dec = False + + for v in approx_vaes: + if v.startswith("taesd_decoder."): + sd1_taesd_dec = True + elif v.startswith("taesd_encoder."): + sd1_taesd_enc = True + elif v.startswith("taesdxl_decoder."): + sdxl_taesd_dec = True + elif v.startswith("taesdxl_encoder."): + sdxl_taesd_enc = True + elif v.startswith("taesd3_decoder."): + sd3_taesd_dec = True + elif v.startswith("taesd3_encoder."): + sd3_taesd_enc = True + elif v.startswith("taef1_encoder."): + f1_taesd_dec = True + elif v.startswith("taef1_decoder."): + f1_taesd_enc = True + if sd1_taesd_dec and sd1_taesd_enc: + vaes.append("taesd") + if sdxl_taesd_dec and sdxl_taesd_enc: + vaes.append("taesdxl") + if sd3_taesd_dec and sd3_taesd_enc: + vaes.append("taesd3") + if f1_taesd_dec and f1_taesd_enc: + vaes.append("taef1") + vaes.append("pixel_space") + return vaes + + @staticmethod + def load_taesd(name): + sd = {} + approx_vaes = folder_paths.get_filename_list("vae_approx") + + encoder = next(filter(lambda a: a.startswith("{}_encoder.".format(name)), approx_vaes)) + decoder = next(filter(lambda a: a.startswith("{}_decoder.".format(name)), approx_vaes)) + + enc = comfy.utils.load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", encoder)) + for k in enc: + sd["taesd_encoder.{}".format(k)] = enc[k] + + dec = comfy.utils.load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", decoder)) + for k in dec: + sd["taesd_decoder.{}".format(k)] = dec[k] + + if name == "taesd": + sd["vae_scale"] = torch.tensor(0.18215) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesdxl": + sd["vae_scale"] = torch.tensor(0.13025) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesd3": + sd["vae_scale"] = torch.tensor(1.5305) + sd["vae_shift"] = torch.tensor(0.0609) + elif name == "taef1": + sd["vae_scale"] = torch.tensor(0.3611) + sd["vae_shift"] = torch.tensor(0.1159) + return sd + + @classmethod + def INPUT_TYPES(s): + return {"required": { "vae_name": (s.vae_list(), )}} + RETURN_TYPES = ("VAE",) + FUNCTION = "load_vae" + + CATEGORY = "loaders" + + #TODO: scale factor? + def load_vae(self, vae_name): + if vae_name == "pixel_space": + sd = {} + sd["pixel_space_vae"] = torch.tensor(1.0) + elif vae_name in ["taesd", "taesdxl", "taesd3", "taef1"]: + sd = self.load_taesd(vae_name) + else: + vae_path = folder_paths.get_full_path_or_raise("vae", vae_name) + sd = comfy.utils.load_torch_file(vae_path) + vae = comfy.sd.VAE(sd=sd) + vae.throw_exception_if_invalid() + return (vae,) + +class ControlNetLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "control_net_name": (folder_paths.get_filename_list("controlnet"), )}} + + RETURN_TYPES = ("CONTROL_NET",) + FUNCTION = "load_controlnet" + + CATEGORY = "loaders" + + def load_controlnet(self, control_net_name): + controlnet_path = folder_paths.get_full_path_or_raise("controlnet", control_net_name) + controlnet = comfy.controlnet.load_controlnet(controlnet_path) + if controlnet is None: + raise RuntimeError("ERROR: controlnet file is invalid and does not contain a valid controlnet model.") + return (controlnet,) + +class DiffControlNetLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "control_net_name": (folder_paths.get_filename_list("controlnet"), )}} + + RETURN_TYPES = ("CONTROL_NET",) + FUNCTION = "load_controlnet" + + CATEGORY = "loaders" + + def load_controlnet(self, model, control_net_name): + controlnet_path = folder_paths.get_full_path_or_raise("controlnet", control_net_name) + controlnet = comfy.controlnet.load_controlnet(controlnet_path, model) + return (controlnet,) + + +class ControlNetApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "control_net": ("CONTROL_NET", ), + "image": ("IMAGE", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_controlnet" + + DEPRECATED = True + CATEGORY = "conditioning/controlnet" + + def apply_controlnet(self, conditioning, control_net, image, strength): + if strength == 0: + return (conditioning, ) + + c = [] + control_hint = image.movedim(-1,1) + for t in conditioning: + n = [t[0], t[1].copy()] + c_net = control_net.copy().set_cond_hint(control_hint, strength) + if 'control' in t[1]: + c_net.set_previous_controlnet(t[1]['control']) + n[1]['control'] = c_net + n[1]['control_apply_to_uncond'] = True + c.append(n) + return (c, ) + + +class ControlNetApplyAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": {"positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "control_net": ("CONTROL_NET", ), + "image": ("IMAGE", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "start_percent": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.001}), + "end_percent": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001}) + }, + "optional": {"vae": ("VAE", ), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING") + RETURN_NAMES = ("positive", "negative") + FUNCTION = "apply_controlnet" + + CATEGORY = "conditioning/controlnet" + + def apply_controlnet(self, positive, negative, control_net, image, strength, start_percent, end_percent, vae=None, extra_concat=[]): + if strength == 0: + return (positive, negative) + + control_hint = image.movedim(-1,1) + cnets = {} + + out = [] + for conditioning in [positive, negative]: + c = [] + for t in conditioning: + d = t[1].copy() + + prev_cnet = d.get('control', None) + if prev_cnet in cnets: + c_net = cnets[prev_cnet] + else: + c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent), vae=vae, extra_concat=extra_concat) + c_net.set_previous_controlnet(prev_cnet) + cnets[prev_cnet] = c_net + + d['control'] = c_net + d['control_apply_to_uncond'] = False + n = [t[0], d] + c.append(n) + out.append(c) + return (out[0], out[1]) + + +class UNETLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "unet_name": (folder_paths.get_filename_list("diffusion_models"), ), + "weight_dtype": (["default", "fp8_e4m3fn", "fp8_e4m3fn_fast", "fp8_e5m2"],) + }} + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_unet" + + CATEGORY = "advanced/loaders" + + def load_unet(self, unet_name, weight_dtype): + model_options = {} + if weight_dtype == "fp8_e4m3fn": + model_options["dtype"] = torch.float8_e4m3fn + elif weight_dtype == "fp8_e4m3fn_fast": + model_options["dtype"] = torch.float8_e4m3fn + model_options["fp8_optimizations"] = True + elif weight_dtype == "fp8_e5m2": + model_options["dtype"] = torch.float8_e5m2 + + unet_path = folder_paths.get_full_path_or_raise("diffusion_models", unet_name) + model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options) + return (model,) + +class CLIPLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name": (folder_paths.get_filename_list("text_encoders"), ), + "type": (["stable_diffusion", "stable_cascade", "sd3", "stable_audio", "mochi", "ltxv", "pixart", "cosmos", "lumina2", "wan", "hidream", "chroma", "ace", "omnigen2", "qwen_image", "hunyuan_image"], ), + }, + "optional": { + "device": (["default", "cpu"], {"advanced": True}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "load_clip" + + CATEGORY = "advanced/loaders" + + DESCRIPTION = "[Recipes]\n\nstable_diffusion: clip-l\nstable_cascade: clip-g\nsd3: t5 xxl/ clip-g / clip-l\nstable_audio: t5 base\nmochi: t5 xxl\ncosmos: old t5 xxl\nlumina2: gemma 2 2B\nwan: umt5 xxl\n hidream: llama-3.1 (Recommend) or t5\nomnigen2: qwen vl 2.5 3B" + + def load_clip(self, clip_name, type="stable_diffusion", device="default"): + clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) + + model_options = {} + if device == "cpu": + model_options["load_device"] = model_options["offload_device"] = torch.device("cpu") + + clip_path = folder_paths.get_full_path_or_raise("text_encoders", clip_name) + clip = comfy.sd.load_clip(ckpt_paths=[clip_path], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options) + return (clip,) + +class DualCLIPLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name1": (folder_paths.get_filename_list("text_encoders"), ), + "clip_name2": (folder_paths.get_filename_list("text_encoders"), ), + "type": (["sdxl", "sd3", "flux", "hunyuan_video", "hidream", "hunyuan_image"], ), + }, + "optional": { + "device": (["default", "cpu"], {"advanced": True}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "load_clip" + + CATEGORY = "advanced/loaders" + + DESCRIPTION = "[Recipes]\n\nsdxl: clip-l, clip-g\nsd3: clip-l, clip-g / clip-l, t5 / clip-g, t5\nflux: clip-l, t5\nhidream: at least one of t5 or llama, recommended t5 and llama\nhunyuan_image: qwen2.5vl 7b and byt5 small" + + def load_clip(self, clip_name1, clip_name2, type, device="default"): + clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) + + clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1) + clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2) + + model_options = {} + if device == "cpu": + model_options["load_device"] = model_options["offload_device"] = torch.device("cpu") + + clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options) + return (clip,) + +class CLIPVisionLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name": (folder_paths.get_filename_list("clip_vision"), ), + }} + RETURN_TYPES = ("CLIP_VISION",) + FUNCTION = "load_clip" + + CATEGORY = "loaders" + + def load_clip(self, clip_name): + clip_path = folder_paths.get_full_path_or_raise("clip_vision", clip_name) + clip_vision = comfy.clip_vision.load(clip_path) + if clip_vision is None: + raise RuntimeError("ERROR: clip vision file is invalid and does not contain a valid vision model.") + return (clip_vision,) + +class CLIPVisionEncode: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_vision": ("CLIP_VISION",), + "image": ("IMAGE",), + "crop": (["center", "none"],) + }} + RETURN_TYPES = ("CLIP_VISION_OUTPUT",) + FUNCTION = "encode" + + CATEGORY = "conditioning" + + def encode(self, clip_vision, image, crop): + crop_image = True + if crop != "center": + crop_image = False + output = clip_vision.encode_image(image, crop=crop_image) + return (output,) + +class StyleModelLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "style_model_name": (folder_paths.get_filename_list("style_models"), )}} + + RETURN_TYPES = ("STYLE_MODEL",) + FUNCTION = "load_style_model" + + CATEGORY = "loaders" + + def load_style_model(self, style_model_name): + style_model_path = folder_paths.get_full_path_or_raise("style_models", style_model_name) + style_model = comfy.sd.load_style_model(style_model_path) + return (style_model,) + + +class StyleModelApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "style_model": ("STYLE_MODEL", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}), + "strength_type": (["multiply", "attn_bias"], ), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_stylemodel" + + CATEGORY = "conditioning/style_model" + + def apply_stylemodel(self, conditioning, style_model, clip_vision_output, strength, strength_type): + cond = style_model.get_cond(clip_vision_output).flatten(start_dim=0, end_dim=1).unsqueeze(dim=0) + if strength_type == "multiply": + cond *= strength + + n = cond.shape[1] + c_out = [] + for t in conditioning: + (txt, keys) = t + keys = keys.copy() + # even if the strength is 1.0 (i.e, no change), if there's already a mask, we have to add to it + if "attention_mask" in keys or (strength_type == "attn_bias" and strength != 1.0): + # math.log raises an error if the argument is zero + # torch.log returns -inf, which is what we want + attn_bias = torch.log(torch.Tensor([strength if strength_type == "attn_bias" else 1.0])) + # get the size of the mask image + mask_ref_size = keys.get("attention_mask_img_shape", (1, 1)) + n_ref = mask_ref_size[0] * mask_ref_size[1] + n_txt = txt.shape[1] + # grab the existing mask + mask = keys.get("attention_mask", None) + # create a default mask if it doesn't exist + if mask is None: + mask = torch.zeros((txt.shape[0], n_txt + n_ref, n_txt + n_ref), dtype=torch.float16) + # convert the mask dtype, because it might be boolean + # we want it to be interpreted as a bias + if mask.dtype == torch.bool: + # log(True) = log(1) = 0 + # log(False) = log(0) = -inf + mask = torch.log(mask.to(dtype=torch.float16)) + # now we make the mask bigger to add space for our new tokens + new_mask = torch.zeros((txt.shape[0], n_txt + n + n_ref, n_txt + n + n_ref), dtype=torch.float16) + # copy over the old mask, in quandrants + new_mask[:, :n_txt, :n_txt] = mask[:, :n_txt, :n_txt] + new_mask[:, :n_txt, n_txt+n:] = mask[:, :n_txt, n_txt:] + new_mask[:, n_txt+n:, :n_txt] = mask[:, n_txt:, :n_txt] + new_mask[:, n_txt+n:, n_txt+n:] = mask[:, n_txt:, n_txt:] + # now fill in the attention bias to our redux tokens + new_mask[:, :n_txt, n_txt:n_txt+n] = attn_bias + new_mask[:, n_txt+n:, n_txt:n_txt+n] = attn_bias + keys["attention_mask"] = new_mask.to(txt.device) + keys["attention_mask_img_shape"] = mask_ref_size + + c_out.append([torch.cat((txt, cond), dim=1), keys]) + + return (c_out,) + +class unCLIPConditioning: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.01}), + "noise_augmentation": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_adm" + + CATEGORY = "conditioning" + + def apply_adm(self, conditioning, clip_vision_output, strength, noise_augmentation): + if strength == 0: + return (conditioning, ) + + c = node_helpers.conditioning_set_values(conditioning, {"unclip_conditioning": [{"clip_vision_output": clip_vision_output, "strength": strength, "noise_augmentation": noise_augmentation}]}, append=True) + return (c, ) + +class GLIGENLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "gligen_name": (folder_paths.get_filename_list("gligen"), )}} + + RETURN_TYPES = ("GLIGEN",) + FUNCTION = "load_gligen" + + CATEGORY = "loaders" + + def load_gligen(self, gligen_name): + gligen_path = folder_paths.get_full_path_or_raise("gligen", gligen_name) + gligen = comfy.sd.load_gligen(gligen_path) + return (gligen,) + +class GLIGENTextBoxApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_to": ("CONDITIONING", ), + "clip": ("CLIP", ), + "gligen_textbox_model": ("GLIGEN", ), + "text": ("STRING", {"multiline": True, "dynamicPrompts": True}), + "width": ("INT", {"default": 64, "min": 8, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 64, "min": 8, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning/gligen" + + def append(self, conditioning_to, clip, gligen_textbox_model, text, width, height, x, y): + c = [] + cond, cond_pooled = clip.encode_from_tokens(clip.tokenize(text), return_pooled="unprojected") + for t in conditioning_to: + n = [t[0], t[1].copy()] + position_params = [(cond_pooled, height // 8, width // 8, y // 8, x // 8)] + prev = [] + if "gligen" in n[1]: + prev = n[1]['gligen'][2] + + n[1]['gligen'] = ("position", gligen_textbox_model, prev + position_params) + c.append(n) + return (c, ) + +class EmptyLatentImage: + def __init__(self): + self.device = comfy.model_management.intermediate_device() + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "width": ("INT", {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8, "tooltip": "The width of the latent images in pixels."}), + "height": ("INT", {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8, "tooltip": "The height of the latent images in pixels."}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096, "tooltip": "The number of latent images in the batch."}) + } + } + RETURN_TYPES = ("LATENT",) + OUTPUT_TOOLTIPS = ("The empty latent image batch.",) + FUNCTION = "generate" + + CATEGORY = "latent" + DESCRIPTION = "Create a new batch of empty latent images to be denoised via sampling." + + def generate(self, width, height, batch_size=1): + latent = torch.zeros([batch_size, 4, height // 8, width // 8], device=self.device) + return ({"samples":latent}, ) + + +class LatentFromBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "batch_index": ("INT", {"default": 0, "min": 0, "max": 63}), + "length": ("INT", {"default": 1, "min": 1, "max": 64}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "frombatch" + + CATEGORY = "latent/batch" + + def frombatch(self, samples, batch_index, length): + s = samples.copy() + s_in = samples["samples"] + batch_index = min(s_in.shape[0] - 1, batch_index) + length = min(s_in.shape[0] - batch_index, length) + s["samples"] = s_in[batch_index:batch_index + length].clone() + if "noise_mask" in samples: + masks = samples["noise_mask"] + if masks.shape[0] == 1: + s["noise_mask"] = masks.clone() + else: + if masks.shape[0] < s_in.shape[0]: + masks = masks.repeat(math.ceil(s_in.shape[0] / masks.shape[0]), 1, 1, 1)[:s_in.shape[0]] + s["noise_mask"] = masks[batch_index:batch_index + length].clone() + if "batch_index" not in s: + s["batch_index"] = [x for x in range(batch_index, batch_index+length)] + else: + s["batch_index"] = samples["batch_index"][batch_index:batch_index + length] + return (s,) + +class RepeatLatentBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "amount": ("INT", {"default": 1, "min": 1, "max": 64}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "repeat" + + CATEGORY = "latent/batch" + + def repeat(self, samples, amount): + s = samples.copy() + s_in = samples["samples"] + + s["samples"] = s_in.repeat((amount,) + ((1,) * (s_in.ndim - 1))) + if "noise_mask" in samples and samples["noise_mask"].shape[0] > 1: + masks = samples["noise_mask"] + if masks.shape[0] < s_in.shape[0]: + masks = masks.repeat((math.ceil(s_in.shape[0] / masks.shape[0]),) + ((1,) * (masks.ndim - 1)))[:s_in.shape[0]] + s["noise_mask"] = samples["noise_mask"].repeat((amount,) + ((1,) * (samples["noise_mask"].ndim - 1))) + if "batch_index" in s: + offset = max(s["batch_index"]) - min(s["batch_index"]) + 1 + s["batch_index"] = s["batch_index"] + [x + (i * offset) for i in range(1, amount) for x in s["batch_index"]] + return (s,) + +class LatentUpscale: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "bislerp"] + crop_methods = ["disabled", "center"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "crop": (s.crop_methods,)}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "upscale" + + CATEGORY = "latent" + + def upscale(self, samples, upscale_method, width, height, crop): + if width == 0 and height == 0: + s = samples + else: + s = samples.copy() + + if width == 0: + height = max(64, height) + width = max(64, round(samples["samples"].shape[-1] * height / samples["samples"].shape[-2])) + elif height == 0: + width = max(64, width) + height = max(64, round(samples["samples"].shape[-2] * width / samples["samples"].shape[-1])) + else: + width = max(64, width) + height = max(64, height) + + s["samples"] = comfy.utils.common_upscale(samples["samples"], width // 8, height // 8, upscale_method, crop) + return (s,) + +class LatentUpscaleBy: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "bislerp"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,), + "scale_by": ("FLOAT", {"default": 1.5, "min": 0.01, "max": 8.0, "step": 0.01}),}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "upscale" + + CATEGORY = "latent" + + def upscale(self, samples, upscale_method, scale_by): + s = samples.copy() + width = round(samples["samples"].shape[-1] * scale_by) + height = round(samples["samples"].shape[-2] * scale_by) + s["samples"] = comfy.utils.common_upscale(samples["samples"], width, height, upscale_method, "disabled") + return (s,) + +class LatentRotate: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "rotation": (["none", "90 degrees", "180 degrees", "270 degrees"],), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "rotate" + + CATEGORY = "latent/transform" + + def rotate(self, samples, rotation): + s = samples.copy() + rotate_by = 0 + if rotation.startswith("90"): + rotate_by = 1 + elif rotation.startswith("180"): + rotate_by = 2 + elif rotation.startswith("270"): + rotate_by = 3 + + s["samples"] = torch.rot90(samples["samples"], k=rotate_by, dims=[3, 2]) + return (s,) + +class LatentFlip: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "flip_method": (["x-axis: vertically", "y-axis: horizontally"],), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "flip" + + CATEGORY = "latent/transform" + + def flip(self, samples, flip_method): + s = samples.copy() + if flip_method.startswith("x"): + s["samples"] = torch.flip(samples["samples"], dims=[2]) + elif flip_method.startswith("y"): + s["samples"] = torch.flip(samples["samples"], dims=[3]) + + return (s,) + +class LatentComposite: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples_to": ("LATENT",), + "samples_from": ("LATENT",), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feather": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "composite" + + CATEGORY = "latent" + + def composite(self, samples_to, samples_from, x, y, composite_method="normal", feather=0): + x = x // 8 + y = y // 8 + feather = feather // 8 + samples_out = samples_to.copy() + s = samples_to["samples"].clone() + samples_to = samples_to["samples"] + samples_from = samples_from["samples"] + if feather == 0: + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] + else: + samples_from = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] + mask = torch.ones_like(samples_from) + for t in range(feather): + if y != 0: + mask[:,:,t:1+t,:] *= ((1.0/feather) * (t + 1)) + + if y + samples_from.shape[2] < samples_to.shape[2]: + mask[:,:,mask.shape[2] -1 -t: mask.shape[2]-t,:] *= ((1.0/feather) * (t + 1)) + if x != 0: + mask[:,:,:,t:1+t] *= ((1.0/feather) * (t + 1)) + if x + samples_from.shape[3] < samples_to.shape[3]: + mask[:,:,:,mask.shape[3]- 1 - t: mask.shape[3]- t] *= ((1.0/feather) * (t + 1)) + rev_mask = torch.ones_like(mask) - mask + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] * mask + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] * rev_mask + samples_out["samples"] = s + return (samples_out,) + +class LatentBlend: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "samples1": ("LATENT",), + "samples2": ("LATENT",), + "blend_factor": ("FLOAT", { + "default": 0.5, + "min": 0, + "max": 1, + "step": 0.01 + }), + }} + + RETURN_TYPES = ("LATENT",) + FUNCTION = "blend" + + CATEGORY = "_for_testing" + + def blend(self, samples1, samples2, blend_factor:float, blend_mode: str="normal"): + + samples_out = samples1.copy() + samples1 = samples1["samples"] + samples2 = samples2["samples"] + + if samples1.shape != samples2.shape: + samples2.permute(0, 3, 1, 2) + samples2 = comfy.utils.common_upscale(samples2, samples1.shape[3], samples1.shape[2], 'bicubic', crop='center') + samples2.permute(0, 2, 3, 1) + + samples_blended = self.blend_mode(samples1, samples2, blend_mode) + samples_blended = samples1 * blend_factor + samples_blended * (1 - blend_factor) + samples_out["samples"] = samples_blended + return (samples_out,) + + def blend_mode(self, img1, img2, mode): + if mode == "normal": + return img2 + else: + raise ValueError(f"Unsupported blend mode: {mode}") + +class LatentCrop: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "width": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "crop" + + CATEGORY = "latent/transform" + + def crop(self, samples, width, height, x, y): + s = samples.copy() + samples = samples['samples'] + x = x // 8 + y = y // 8 + + #enfonce minimum size of 64 + if x > (samples.shape[3] - 8): + x = samples.shape[3] - 8 + if y > (samples.shape[2] - 8): + y = samples.shape[2] - 8 + + new_height = height // 8 + new_width = width // 8 + to_x = new_width + x + to_y = new_height + y + s['samples'] = samples[:,:,y:to_y, x:to_x] + return (s,) + +class SetLatentNoiseMask: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "mask": ("MASK",), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "set_mask" + + CATEGORY = "latent/inpaint" + + def set_mask(self, samples, mask): + s = samples.copy() + s["noise_mask"] = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])) + return (s,) + +def common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False): + latent_image = latent["samples"] + latent_image = comfy.sample.fix_empty_latent_channels(model, latent_image) + + if disable_noise: + noise = torch.zeros(latent_image.size(), dtype=latent_image.dtype, layout=latent_image.layout, device="cpu") + else: + batch_inds = latent["batch_index"] if "batch_index" in latent else None + noise = comfy.sample.prepare_noise(latent_image, seed, batch_inds) + + noise_mask = None + if "noise_mask" in latent: + noise_mask = latent["noise_mask"] + + callback = latent_preview.prepare_callback(model, steps) + disable_pbar = not comfy.utils.PROGRESS_BAR_ENABLED + samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, + denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step, + force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) + out = latent.copy() + out["samples"] = samples + return (out, ) + +class KSampler: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL", {"tooltip": "The model used for denoising the input latent."}), + "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True, "tooltip": "The random seed used for creating the noise."}), + "steps": ("INT", {"default": 20, "min": 1, "max": 10000, "tooltip": "The number of steps used in the denoising process."}), + "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01, "tooltip": "The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality."}), + "sampler_name": (comfy.samplers.KSampler.SAMPLERS, {"tooltip": "The algorithm used when sampling, this can affect the quality, speed, and style of the generated output."}), + "scheduler": (comfy.samplers.KSampler.SCHEDULERS, {"tooltip": "The scheduler controls how noise is gradually removed to form the image."}), + "positive": ("CONDITIONING", {"tooltip": "The conditioning describing the attributes you want to include in the image."}), + "negative": ("CONDITIONING", {"tooltip": "The conditioning describing the attributes you want to exclude from the image."}), + "latent_image": ("LATENT", {"tooltip": "The latent image to denoise."}), + "denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01, "tooltip": "The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling."}), + } + } + + RETURN_TYPES = ("LATENT",) + OUTPUT_TOOLTIPS = ("The denoised latent.",) + FUNCTION = "sample" + + CATEGORY = "sampling" + DESCRIPTION = "Uses the provided model, positive and negative conditioning to denoise the latent image." + + def sample(self, model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0): + return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) + +class KSamplerAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": + {"model": ("MODEL",), + "add_noise": (["enable", "disable"], ), + "noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True}), + "steps": ("INT", {"default": 20, "min": 1, "max": 10000}), + "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}), + "sampler_name": (comfy.samplers.KSampler.SAMPLERS, ), + "scheduler": (comfy.samplers.KSampler.SCHEDULERS, ), + "positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "latent_image": ("LATENT", ), + "start_at_step": ("INT", {"default": 0, "min": 0, "max": 10000}), + "end_at_step": ("INT", {"default": 10000, "min": 0, "max": 10000}), + "return_with_leftover_noise": (["disable", "enable"], ), + } + } + + RETURN_TYPES = ("LATENT",) + FUNCTION = "sample" + + CATEGORY = "sampling" + + def sample(self, model, add_noise, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, start_at_step, end_at_step, return_with_leftover_noise, denoise=1.0): + force_full_denoise = True + if return_with_leftover_noise == "enable": + force_full_denoise = False + disable_noise = False + if add_noise == "disable": + disable_noise = True + return common_ksampler(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise, disable_noise=disable_noise, start_step=start_at_step, last_step=end_at_step, force_full_denoise=force_full_denoise) + +class SaveImage: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE", {"tooltip": "The images to save."}), + "filename_prefix": ("STRING", {"default": "ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."}) + }, + "hidden": { + "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO" + }, + } + + RETURN_TYPES = () + FUNCTION = "save_images" + + OUTPUT_NODE = True + + CATEGORY = "image" + DESCRIPTION = "Saves the input images to your ComfyUI output directory." + + def save_images(self, images, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None): + filename_prefix += self.prefix_append + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + results = list() + for (batch_number, image) in enumerate(images): + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + file = f"{filename_with_batch_num}_{counter:05}_.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + counter += 1 + + return { "ui": { "images": results } } + +class PreviewImage(SaveImage): + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 1 + + @classmethod + def INPUT_TYPES(s): + return {"required": + {"images": ("IMAGE", ), }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + +class LoadImage: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + files = folder_paths.filter_files_content_types(files, ["image"]) + return {"required": + {"image": (sorted(files), {"image_upload": True})}, + } + + CATEGORY = "image" + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "load_image" + def load_image(self, image): + image_path = folder_paths.get_annotated_filepath(image) + + img = node_helpers.pillow(Image.open, image_path) + + output_images = [] + output_masks = [] + w, h = None, None + + excluded_formats = ['MPO'] + + for i in ImageSequence.Iterator(img): + i = node_helpers.pillow(ImageOps.exif_transpose, i) + + if i.mode == 'I': + i = i.point(lambda i: i * (1 / 255)) + image = i.convert("RGB") + + if len(output_images) == 0: + w = image.size[0] + h = image.size[1] + + if image.size[0] != w or image.size[1] != h: + continue + + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + if 'A' in i.getbands(): + mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + elif i.mode == 'P' and 'transparency' in i.info: + mask = np.array(i.convert('RGBA').getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + else: + mask = torch.zeros((64,64), dtype=torch.float32, device="cpu") + output_images.append(image) + output_masks.append(mask.unsqueeze(0)) + + if len(output_images) > 1 and img.format not in excluded_formats: + output_image = torch.cat(output_images, dim=0) + output_mask = torch.cat(output_masks, dim=0) + else: + output_image = output_images[0] + output_mask = output_masks[0] + + return (output_image, output_mask) + + @classmethod + def IS_CHANGED(s, image): + image_path = folder_paths.get_annotated_filepath(image) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + +class LoadImageMask: + _color_channels = ["alpha", "red", "green", "blue"] + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + return {"required": + {"image": (sorted(files), {"image_upload": True}), + "channel": (s._color_channels, ), } + } + + CATEGORY = "mask" + + RETURN_TYPES = ("MASK",) + FUNCTION = "load_image" + def load_image(self, image, channel): + image_path = folder_paths.get_annotated_filepath(image) + i = node_helpers.pillow(Image.open, image_path) + i = node_helpers.pillow(ImageOps.exif_transpose, i) + if i.getbands() != ("R", "G", "B", "A"): + if i.mode == 'I': + i = i.point(lambda i: i * (1 / 255)) + i = i.convert("RGBA") + mask = None + c = channel[0].upper() + if c in i.getbands(): + mask = np.array(i.getchannel(c)).astype(np.float32) / 255.0 + mask = torch.from_numpy(mask) + if c == 'A': + mask = 1. - mask + else: + mask = torch.zeros((64,64), dtype=torch.float32, device="cpu") + return (mask.unsqueeze(0),) + + @classmethod + def IS_CHANGED(s, image, channel): + image_path = folder_paths.get_annotated_filepath(image) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + + +class LoadImageOutput(LoadImage): + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("COMBO", { + "image_upload": True, + "image_folder": "output", + "remote": { + "route": "/internal/files/output", + "refresh_button": True, + "control_after_refresh": "first", + }, + }), + } + } + + DESCRIPTION = "Load an image from the output folder. When the refresh button is clicked, the node will update the image list and automatically select the first image, allowing for easy iteration." + EXPERIMENTAL = True + FUNCTION = "load_image" + + +class ImageScale: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + crop_methods = ["disabled", "center"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "crop": (s.crop_methods,)}} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + + CATEGORY = "image/upscaling" + + def upscale(self, image, upscale_method, width, height, crop): + if width == 0 and height == 0: + s = image + else: + samples = image.movedim(-1,1) + + if width == 0: + width = max(1, round(samples.shape[3] * height / samples.shape[2])) + elif height == 0: + height = max(1, round(samples.shape[2] * width / samples.shape[3])) + + s = comfy.utils.common_upscale(samples, width, height, upscale_method, crop) + s = s.movedim(1,-1) + return (s,) + +class ImageScaleBy: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,), + "scale_by": ("FLOAT", {"default": 1.0, "min": 0.01, "max": 8.0, "step": 0.01}),}} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + + CATEGORY = "image/upscaling" + + def upscale(self, image, upscale_method, scale_by): + samples = image.movedim(-1,1) + width = round(samples.shape[3] * scale_by) + height = round(samples.shape[2] * scale_by) + s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled") + s = s.movedim(1,-1) + return (s,) + +class ImageInvert: + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",)}} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "invert" + + CATEGORY = "image" + + def invert(self, image): + s = 1.0 - image + return (s,) + +class ImageBatch: + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image1": ("IMAGE",), "image2": ("IMAGE",)}} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "batch" + + CATEGORY = "image" + + def batch(self, image1, image2): + if image1.shape[1:] != image2.shape[1:]: + image2 = comfy.utils.common_upscale(image2.movedim(-1,1), image1.shape[2], image1.shape[1], "bilinear", "center").movedim(1,-1) + s = torch.cat((image1, image2), dim=0) + return (s,) + +class EmptyImage: + def __init__(self, device="cpu"): + self.device = device + + @classmethod + def INPUT_TYPES(s): + return {"required": { "width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}), + "height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096}), + "color": ("INT", {"default": 0, "min": 0, "max": 0xFFFFFF, "step": 1, "display": "color"}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "generate" + + CATEGORY = "image" + + def generate(self, width, height, batch_size=1, color=0): + r = torch.full([batch_size, height, width, 1], ((color >> 16) & 0xFF) / 0xFF) + g = torch.full([batch_size, height, width, 1], ((color >> 8) & 0xFF) / 0xFF) + b = torch.full([batch_size, height, width, 1], ((color) & 0xFF) / 0xFF) + return (torch.cat((r, g, b), dim=-1), ) + +class ImagePadForOutpaint: + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 40, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, left, top, right, bottom, feathering): + d1, d2, d3, d4 = image.size() + + new_image = torch.ones( + (d1, d2 + top + bottom, d3 + left + right, d4), + dtype=torch.float32, + ) * 0.5 + + new_image[:, top:top + d2, left:left + d3, :] = image + + mask = torch.ones( + (d2 + top + bottom, d3 + left + right), + dtype=torch.float32, + ) + + t = torch.zeros( + (d2, d3), + dtype=torch.float32 + ) + + if feathering > 0 and feathering * 2 < d2 and feathering * 2 < d3: + + for i in range(d2): + for j in range(d3): + dt = i if top != 0 else d2 + db = d2 - i if bottom != 0 else d2 + + dl = j if left != 0 else d3 + dr = d3 - j if right != 0 else d3 + + d = min(dt, db, dl, dr) + + if d >= feathering: + continue + + v = (feathering - d) / feathering + + t[i, j] = v * v + + mask[top:top + d2, left:left + d3] = t + + return (new_image, mask.unsqueeze(0)) + + +NODE_CLASS_MAPPINGS = { + "KSampler": KSampler, + "CheckpointLoaderSimple": CheckpointLoaderSimple, + "CLIPTextEncode": CLIPTextEncode, + "CLIPSetLastLayer": CLIPSetLastLayer, + "VAEDecode": VAEDecode, + "VAEEncode": VAEEncode, + "VAEEncodeForInpaint": VAEEncodeForInpaint, + "VAELoader": VAELoader, + "EmptyLatentImage": EmptyLatentImage, + "LatentUpscale": LatentUpscale, + "LatentUpscaleBy": LatentUpscaleBy, + "LatentFromBatch": LatentFromBatch, + "RepeatLatentBatch": RepeatLatentBatch, + "SaveImage": SaveImage, + "PreviewImage": PreviewImage, + "LoadImage": LoadImage, + "LoadImageMask": LoadImageMask, + "LoadImageOutput": LoadImageOutput, + "ImageScale": ImageScale, + "ImageScaleBy": ImageScaleBy, + "ImageInvert": ImageInvert, + "ImageBatch": ImageBatch, + "ImagePadForOutpaint": ImagePadForOutpaint, + "EmptyImage": EmptyImage, + "ConditioningAverage": ConditioningAverage , + "ConditioningCombine": ConditioningCombine, + "ConditioningConcat": ConditioningConcat, + "ConditioningSetArea": ConditioningSetArea, + "ConditioningSetAreaPercentage": ConditioningSetAreaPercentage, + "ConditioningSetAreaStrength": ConditioningSetAreaStrength, + "ConditioningSetMask": ConditioningSetMask, + "KSamplerAdvanced": KSamplerAdvanced, + "SetLatentNoiseMask": SetLatentNoiseMask, + "LatentComposite": LatentComposite, + "LatentBlend": LatentBlend, + "LatentRotate": LatentRotate, + "LatentFlip": LatentFlip, + "LatentCrop": LatentCrop, + "LoraLoader": LoraLoader, + "CLIPLoader": CLIPLoader, + "UNETLoader": UNETLoader, + "DualCLIPLoader": DualCLIPLoader, + "CLIPVisionEncode": CLIPVisionEncode, + "StyleModelApply": StyleModelApply, + "unCLIPConditioning": unCLIPConditioning, + "ControlNetApply": ControlNetApply, + "ControlNetApplyAdvanced": ControlNetApplyAdvanced, + "ControlNetLoader": ControlNetLoader, + "DiffControlNetLoader": DiffControlNetLoader, + "StyleModelLoader": StyleModelLoader, + "CLIPVisionLoader": CLIPVisionLoader, + "VAEDecodeTiled": VAEDecodeTiled, + "VAEEncodeTiled": VAEEncodeTiled, + "unCLIPCheckpointLoader": unCLIPCheckpointLoader, + "GLIGENLoader": GLIGENLoader, + "GLIGENTextBoxApply": GLIGENTextBoxApply, + "InpaintModelConditioning": InpaintModelConditioning, + + "CheckpointLoader": CheckpointLoader, + "DiffusersLoader": DiffusersLoader, + + "LoadLatent": LoadLatent, + "SaveLatent": SaveLatent, + + "ConditioningZeroOut": ConditioningZeroOut, + "ConditioningSetTimestepRange": ConditioningSetTimestepRange, + "LoraLoaderModelOnly": LoraLoaderModelOnly, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + # Sampling + "KSampler": "KSampler", + "KSamplerAdvanced": "KSampler (Advanced)", + # Loaders + "CheckpointLoader": "Load Checkpoint With Config (DEPRECATED)", + "CheckpointLoaderSimple": "Load Checkpoint", + "VAELoader": "Load VAE", + "LoraLoader": "Load LoRA", + "CLIPLoader": "Load CLIP", + "ControlNetLoader": "Load ControlNet Model", + "DiffControlNetLoader": "Load ControlNet Model (diff)", + "StyleModelLoader": "Load Style Model", + "CLIPVisionLoader": "Load CLIP Vision", + "UNETLoader": "Load Diffusion Model", + # Conditioning + "CLIPVisionEncode": "CLIP Vision Encode", + "StyleModelApply": "Apply Style Model", + "CLIPTextEncode": "CLIP Text Encode (Prompt)", + "CLIPSetLastLayer": "CLIP Set Last Layer", + "ConditioningCombine": "Conditioning (Combine)", + "ConditioningAverage ": "Conditioning (Average)", + "ConditioningConcat": "Conditioning (Concat)", + "ConditioningSetArea": "Conditioning (Set Area)", + "ConditioningSetAreaPercentage": "Conditioning (Set Area with Percentage)", + "ConditioningSetMask": "Conditioning (Set Mask)", + "ControlNetApply": "Apply ControlNet (OLD)", + "ControlNetApplyAdvanced": "Apply ControlNet", + # Latent + "VAEEncodeForInpaint": "VAE Encode (for Inpainting)", + "SetLatentNoiseMask": "Set Latent Noise Mask", + "VAEDecode": "VAE Decode", + "VAEEncode": "VAE Encode", + "LatentRotate": "Rotate Latent", + "LatentFlip": "Flip Latent", + "LatentCrop": "Crop Latent", + "EmptyLatentImage": "Empty Latent Image", + "LatentUpscale": "Upscale Latent", + "LatentUpscaleBy": "Upscale Latent By", + "LatentComposite": "Latent Composite", + "LatentBlend": "Latent Blend", + "LatentFromBatch" : "Latent From Batch", + "RepeatLatentBatch": "Repeat Latent Batch", + # Image + "SaveImage": "Save Image", + "PreviewImage": "Preview Image", + "LoadImage": "Load Image", + "LoadImageMask": "Load Image (as Mask)", + "LoadImageOutput": "Load Image (from Outputs)", + "ImageScale": "Upscale Image", + "ImageScaleBy": "Upscale Image By", + "ImageInvert": "Invert Image", + "ImagePadForOutpaint": "Pad Image for Outpainting", + "ImageBatch": "Batch Images", + "ImageCrop": "Image Crop", + "ImageStitch": "Image Stitch", + "ImageBlend": "Image Blend", + "ImageBlur": "Image Blur", + "ImageQuantize": "Image Quantize", + "ImageSharpen": "Image Sharpen", + "ImageScaleToTotalPixels": "Scale Image to Total Pixels", + "GetImageSize": "Get Image Size", + # _for_testing + "VAEDecodeTiled": "VAE Decode (Tiled)", + "VAEEncodeTiled": "VAE Encode (Tiled)", +} + +EXTENSION_WEB_DIRS = {} + +# Dictionary of successfully loaded module names and associated directories. +LOADED_MODULE_DIRS = {} + + +def get_module_name(module_path: str) -> str: + """ + Returns the module name based on the given module path. + Examples: + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node.py") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__.py") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__/") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node.disabled") -> "custom_nodes + Args: + module_path (str): The path of the module. + Returns: + str: The module name. + """ + base_path = os.path.basename(module_path) + if os.path.isfile(module_path): + base_path = os.path.splitext(base_path)[0] + return base_path + + +async def load_custom_node(module_path: str, ignore=set(), module_parent="custom_nodes") -> bool: + module_name = get_module_name(module_path) + if os.path.isfile(module_path): + sp = os.path.splitext(module_path) + module_name = sp[0] + sys_module_name = module_name + elif os.path.isdir(module_path): + sys_module_name = module_path.replace(".", "_x_") + + try: + logging.debug("Trying to load custom node {}".format(module_path)) + if os.path.isfile(module_path): + module_spec = importlib.util.spec_from_file_location(sys_module_name, module_path) + module_dir = os.path.split(module_path)[0] + else: + module_spec = importlib.util.spec_from_file_location(sys_module_name, os.path.join(module_path, "__init__.py")) + module_dir = module_path + + module = importlib.util.module_from_spec(module_spec) + sys.modules[sys_module_name] = module + module_spec.loader.exec_module(module) + + LOADED_MODULE_DIRS[module_name] = os.path.abspath(module_dir) + + try: + from comfy_config import config_parser + + project_config = config_parser.extract_node_configuration(module_path) + + web_dir_name = project_config.tool_comfy.web + + if web_dir_name: + web_dir_path = os.path.join(module_path, web_dir_name) + + if os.path.isdir(web_dir_path): + project_name = project_config.project.name + + EXTENSION_WEB_DIRS[project_name] = web_dir_path + + logging.info("Automatically register web folder {} for {}".format(web_dir_name, project_name)) + except Exception as e: + logging.warning(f"Unable to parse pyproject.toml due to lack dependency pydantic-settings, please run 'pip install -r requirements.txt': {e}") + + if hasattr(module, "WEB_DIRECTORY") and getattr(module, "WEB_DIRECTORY") is not None: + web_dir = os.path.abspath(os.path.join(module_dir, getattr(module, "WEB_DIRECTORY"))) + if os.path.isdir(web_dir): + EXTENSION_WEB_DIRS[module_name] = web_dir + + # V1 node definition + if hasattr(module, "NODE_CLASS_MAPPINGS") and getattr(module, "NODE_CLASS_MAPPINGS") is not None: + for name, node_cls in module.NODE_CLASS_MAPPINGS.items(): + if name not in ignore: + NODE_CLASS_MAPPINGS[name] = node_cls + node_cls.RELATIVE_PYTHON_MODULE = "{}.{}".format(module_parent, get_module_name(module_path)) + if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS") and getattr(module, "NODE_DISPLAY_NAME_MAPPINGS") is not None: + NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS) + return True + # V3 Extension Definition + elif hasattr(module, "comfy_entrypoint"): + entrypoint = getattr(module, "comfy_entrypoint") + if not callable(entrypoint): + logging.warning(f"comfy_entrypoint in {module_path} is not callable, skipping.") + return False + try: + if inspect.iscoroutinefunction(entrypoint): + extension = await entrypoint() + else: + extension = entrypoint() + if not isinstance(extension, ComfyExtension): + logging.warning(f"comfy_entrypoint in {module_path} did not return a ComfyExtension, skipping.") + return False + node_list = await extension.get_node_list() + if not isinstance(node_list, list): + logging.warning(f"comfy_entrypoint in {module_path} did not return a list of nodes, skipping.") + return False + for node_cls in node_list: + node_cls: io.ComfyNode + schema = node_cls.GET_SCHEMA() + if schema.node_id not in ignore: + NODE_CLASS_MAPPINGS[schema.node_id] = node_cls + node_cls.RELATIVE_PYTHON_MODULE = "{}.{}".format(module_parent, get_module_name(module_path)) + if schema.display_name is not None: + NODE_DISPLAY_NAME_MAPPINGS[schema.node_id] = schema.display_name + return True + except Exception as e: + logging.warning(f"Error while calling comfy_entrypoint in {module_path}: {e}") + return False + else: + logging.warning(f"Skip {module_path} module for custom nodes due to the lack of NODE_CLASS_MAPPINGS or NODES_LIST (need one).") + return False + except Exception as e: + logging.warning(traceback.format_exc()) + logging.warning(f"Cannot import {module_path} module for custom nodes: {e}") + return False + +async def init_external_custom_nodes(): + """ + Initializes the external custom nodes. + + This function loads custom nodes from the specified folder paths and imports them into the application. + It measures the import times for each custom node and logs the results. + + Returns: + None + """ + base_node_names = set(NODE_CLASS_MAPPINGS.keys()) + node_paths = folder_paths.get_folder_paths("custom_nodes") + node_import_times = [] + for custom_node_path in node_paths: + possible_modules = os.listdir(os.path.realpath(custom_node_path)) + if "__pycache__" in possible_modules: + possible_modules.remove("__pycache__") + + for possible_module in possible_modules: + module_path = os.path.join(custom_node_path, possible_module) + if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue + if module_path.endswith(".disabled"): continue + if args.disable_all_custom_nodes and possible_module not in args.whitelist_custom_nodes: + logging.info(f"Skipping {possible_module} due to disable_all_custom_nodes and whitelist_custom_nodes") + continue + time_before = time.perf_counter() + success = await load_custom_node(module_path, base_node_names, module_parent="custom_nodes") + node_import_times.append((time.perf_counter() - time_before, module_path, success)) + + if len(node_import_times) > 0: + logging.info("\nImport times for custom nodes:") + for n in sorted(node_import_times): + if n[2]: + import_message = "" + else: + import_message = " (IMPORT FAILED)" + logging.info("{:6.1f} seconds{}: {}".format(n[0], import_message, n[1])) + logging.info("") + +async def init_builtin_extra_nodes(): + """ + Initializes the built-in extra nodes in ComfyUI. + + This function loads the extra node files located in the "comfy_extras" directory and imports them into ComfyUI. + If any of the extra node files fail to import, a warning message is logged. + + Returns: + None + """ + extras_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_extras") + extras_files = [ + "nodes_latent.py", + "nodes_hypernetwork.py", + "nodes_upscale_model.py", + "nodes_post_processing.py", + "nodes_mask.py", + "nodes_compositing.py", + "nodes_rebatch.py", + "nodes_model_merging.py", + "nodes_tomesd.py", + "nodes_clip_sdxl.py", + "nodes_canny.py", + "nodes_freelunch.py", + "nodes_custom_sampler.py", + "nodes_hypertile.py", + "nodes_model_advanced.py", + "nodes_model_downscale.py", + "nodes_images.py", + "nodes_video_model.py", + "nodes_train.py", + "nodes_sag.py", + "nodes_perpneg.py", + "nodes_stable3d.py", + "nodes_sdupscale.py", + "nodes_photomaker.py", + "nodes_pixart.py", + "nodes_cond.py", + "nodes_morphology.py", + "nodes_stable_cascade.py", + "nodes_differential_diffusion.py", + "nodes_ip2p.py", + "nodes_model_merging_model_specific.py", + "nodes_pag.py", + "nodes_align_your_steps.py", + "nodes_attention_multiply.py", + "nodes_advanced_samplers.py", + "nodes_webcam.py", + "nodes_audio.py", + "nodes_sd3.py", + "nodes_gits.py", + "nodes_controlnet.py", + "nodes_hunyuan.py", + "nodes_eps.py", + "nodes_flux.py", + "nodes_lora_extract.py", + "nodes_torch_compile.py", + "nodes_mochi.py", + "nodes_slg.py", + "nodes_mahiro.py", + "nodes_lt.py", + "nodes_hooks.py", + "nodes_load_3d.py", + "nodes_cosmos.py", + "nodes_video.py", + "nodes_lumina2.py", + "nodes_wan.py", + "nodes_lotus.py", + "nodes_hunyuan3d.py", + "nodes_primitive.py", + "nodes_cfg.py", + "nodes_optimalsteps.py", + "nodes_hidream.py", + "nodes_fresca.py", + "nodes_apg.py", + "nodes_preview_any.py", + "nodes_ace.py", + "nodes_string.py", + "nodes_camera_trajectory.py", + "nodes_edit_model.py", + "nodes_tcfg.py", + "nodes_context_windows.py", + "nodes_qwen.py", + "nodes_chroma_radiance.py", + "nodes_model_patch.py", + "nodes_easycache.py", + "nodes_audio_encoder.py", + ] + + import_failed = [] + for node_file in extras_files: + if not await load_custom_node(os.path.join(extras_dir, node_file), module_parent="comfy_extras"): + import_failed.append(node_file) + + return import_failed + + +async def init_builtin_api_nodes(): + api_nodes_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_api_nodes") + api_nodes_files = [ + "nodes_ideogram.py", + "nodes_openai.py", + "nodes_minimax.py", + "nodes_veo2.py", + "nodes_kling.py", + "nodes_bfl.py", + "nodes_bytedance.py", + "nodes_luma.py", + "nodes_recraft.py", + "nodes_pixverse.py", + "nodes_stability.py", + "nodes_pika.py", + "nodes_runway.py", + "nodes_sora.py", + "nodes_tripo.py", + "nodes_moonvalley.py", + "nodes_rodin.py", + "nodes_gemini.py", + "nodes_vidu.py", + "nodes_wan.py", + ] + + if not await load_custom_node(os.path.join(api_nodes_dir, "canary.py"), module_parent="comfy_api_nodes"): + return api_nodes_files + + import_failed = [] + for node_file in api_nodes_files: + if not await load_custom_node(os.path.join(api_nodes_dir, node_file), module_parent="comfy_api_nodes"): + import_failed.append(node_file) + + return import_failed + +async def init_public_apis(): + register_versions([ + ComfyAPIWithVersion( + version=getattr(v, "VERSION"), + api_class=v + ) for v in supported_versions + ]) + +async def init_extra_nodes(init_custom_nodes=True, init_api_nodes=True): + await init_public_apis() + + import_failed = await init_builtin_extra_nodes() + + import_failed_api = [] + if init_api_nodes: + import_failed_api = await init_builtin_api_nodes() + + if init_custom_nodes: + await init_external_custom_nodes() + else: + logging.info("Skipping loading of custom nodes") + + if len(import_failed_api) > 0: + logging.warning("WARNING: some comfy_api_nodes/ nodes did not import correctly. This may be because they are missing some dependencies.\n") + for node in import_failed_api: + logging.warning("IMPORT FAILED: {}".format(node)) + logging.warning("\nThis issue might be caused by new missing dependencies added the last time you updated ComfyUI.") + if args.windows_standalone_build: + logging.warning("Please run the update script: update/update_comfyui.bat") + else: + logging.warning("Please do a: pip install -r requirements.txt") + logging.warning("") + + if len(import_failed) > 0: + logging.warning("WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.\n") + for node in import_failed: + logging.warning("IMPORT FAILED: {}".format(node)) + logging.warning("\nThis issue might be caused by new missing dependencies added the last time you updated ComfyUI.") + if args.windows_standalone_build: + logging.warning("Please run the update script: update/update_comfyui.bat") + else: + logging.warning("Please do a: pip install -r requirements.txt") + logging.warning("") + + return import_failed diff --git a/docs/hel-892/resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts b/docs/hel-892/resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts new file mode 100644 index 00000000..da4e45f8 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts @@ -0,0 +1,136 @@ +import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage' +import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload' +import { t } from '@/i18n' +import type { LGraphNode } from '@/lib/litegraph/src/litegraph' +import type { IComboWidget } from '@/lib/litegraph/src/types/widgets' +import type { ResultItem, ResultItemType } from '@/schemas/apiSchema' +import type { InputSpec } from '@/schemas/nodeDefSchema' +import type { ComfyWidgetConstructor } from '@/scripts/widgets' +import { useNodeOutputStore } from '@/stores/nodeOutputStore' +import { isImageUploadInput } from '@/types/nodeDefAugmentation' +import { createAnnotatedPath } from '@/utils/createAnnotatedPath' +import { addToComboValues } from '@/utils/litegraphUtil' + +import { + ACCEPTED_IMAGE_TYPES, + ACCEPTED_VIDEO_TYPES +} from '@/utils/mediaUploadUtil' + +const isImageFile = (file: File) => file.type.startsWith('image/') +const isVideoFile = (file: File) => file.type.startsWith('video/') + +const findFileComboWidget = ( + node: LGraphNode, + inputName: string +): IComboWidget | undefined => + node.widgets?.find((w): w is IComboWidget => w.name === inputName) + +export const useImageUploadWidget = () => { + const widgetConstructor: ComfyWidgetConstructor = ( + node: LGraphNode, + inputName: string, + inputData: InputSpec + ) => { + if (!isImageUploadInput(inputData)) { + throw new Error( + 'Image upload widget requires imageInputName augmentation' + ) + } + + const inputOptions = inputData[1] + const { imageInputName, allow_batch, image_folder = 'input' } = inputOptions + const folder: ResultItemType | undefined = image_folder + const nodeOutputStore = useNodeOutputStore() + + const isAnimated = !!inputOptions.animated_image_upload + const isVideo = !!inputOptions.video_upload + const accept = isVideo ? ACCEPTED_VIDEO_TYPES : ACCEPTED_IMAGE_TYPES + const { showPreview } = isVideo ? useNodeVideo(node) : useNodeImage(node) + + const fileFilter = isVideo ? isVideoFile : isImageFile + const fileComboWidget = findFileComboWidget(node, imageInputName) + if (!fileComboWidget) { + throw new Error(`Widget "${imageInputName}" not found on node`) + } + const formatPath = (value: string | ResultItem) => + createAnnotatedPath(value, { rootFolder: image_folder }) + + // Setup file upload handling + let rollback: (() => void) | undefined + const { openFileSelection } = useNodeImageUpload(node, { + allow_batch, + fileFilter, + accept, + folder, + onUploadStart: (files) => { + if (files.length > 0) { + const prev = fileComboWidget.value + fileComboWidget.value = files[0].name + rollback = () => { + fileComboWidget.value = prev + } + } + }, + onUploadError: () => { + rollback?.() + rollback = undefined + }, + onUploadComplete: (output) => { + rollback = undefined + const annotated = output.map(formatPath) + annotated.forEach((path) => { + addToComboValues(fileComboWidget, path) + }) + + const newValue = allow_batch ? annotated : annotated[0] + const oldValue = fileComboWidget.value + + // @ts-expect-error litegraph combo value type does not support arrays yet + fileComboWidget.value = newValue + fileComboWidget.callback?.(newValue) + node.onWidgetChanged?.( + fileComboWidget.name, + newValue, + oldValue, + fileComboWidget + ) + } + }) + + // Create the button widget for selecting the files + const uploadWidget = node.addWidget( + 'button', + inputName, + 'image', + () => openFileSelection(), + { + serialize: false, + canvasOnly: true + } + ) + uploadWidget.label = t('g.choose_file_to_upload') + + // Add our own callback to the combo widget to render an image when it changes + fileComboWidget.callback = function () { + node.imgs = undefined + nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), { + isAnimated + }) + node.graph?.setDirtyCanvas(true) + } + + // On load if we have a value then render the image + // The value isn't set immediately so we need to wait a moment + // No change callbacks seem to be fired on initial setting of the value + requestAnimationFrame(() => { + nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), { + isAnimated + }) + showPreview({ block: false }) + }) + + return { widget: uploadWidget } + } + + return widgetConstructor +} diff --git a/docs/hel-892/resize-compare-reference/identities.json b/docs/hel-892/resize-compare-reference/identities.json new file mode 100644 index 00000000..780ef828 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/identities.json @@ -0,0 +1,22 @@ +[ + { + "id": "load", + "repo": "Comfy-Org/ComfyUI", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8" + }, + { + "id": "core", + "repo": "Comfy-Org/ComfyUI", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d" + }, + { + "id": "kj", + "repo": "kijai/ComfyUI-KJNodes", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50" + }, + { + "id": "layer", + "repo": "chflame163/ComfyUI_LayerStyle", + "commit": "89014d833d2ad0998d724090eff1456692692a1d" + } +] diff --git a/docs/hel-892/resize-compare-reference/impact-members.json b/docs/hel-892/resize-compare-reference/impact-members.json new file mode 100644 index 00000000..cba074c0 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/impact-members.json @@ -0,0 +1,75 @@ +[ + ".github/workflows/publish.yml", + ".gitignore", + ".gitmodules", + "LICENSE.txt", + "README.md", + "__init__.py", + "custom_wildcards/put_wildcards_here", + "example_workflows/1-FaceDetailer.jpg", + "example_workflows/1-FaceDetailer.json", + "example_workflows/2-MaskDetailer.jpg", + "example_workflows/2-MaskDetailer.json", + "example_workflows/3-SEGSDetailer.jpg", + "example_workflows/3-SEGSDetailer.json", + "example_workflows/4-MakeTileSEGS-Upscale.jpg", + "example_workflows/4-MakeTileSEGS-Upscale.json", + "example_workflows/5-PreviewDetailerHookProvider.jpg", + "example_workflows/5-PreviewDetailerHookProvider.json", + "example_workflows/5-prompt-per-tile.jpg", + "example_workflows/5-prompt-per-tile.json", + "example_workflows/6-DetailerWildcard.jpg", + "example_workflows/6-DetailerWildcard.json", + "install.py", + "js/common.js", + "js/impact-image-util.js", + "js/impact-pack.js", + "js/impact-sam-editor.js", + "js/impact-segs-picker.js", + "js/mask-rect-area-advanced.js", + "js/mask-rect-area.js", + "latent.png", + "locales/ko/nodeDefs.json", + "modules/impact/additional_dependencies.py", + "modules/impact/animatediff_nodes.py", + "modules/impact/bridge_nodes.py", + "modules/impact/config.py", + "modules/impact/core.py", + "modules/impact/defs.py", + "modules/impact/detectors.py", + "modules/impact/hf_nodes.py", + "modules/impact/hook_nodes.py", + "modules/impact/hooks.py", + "modules/impact/impact_onnx.py", + "modules/impact/impact_pack.py", + "modules/impact/impact_sampling.py", + "modules/impact/impact_server.py", + "modules/impact/logics.py", + "modules/impact/pipe.py", + "modules/impact/segs_nodes.py", + "modules/impact/segs_upscaler.py", + "modules/impact/special_samplers.py", + "modules/impact/util_nodes.py", + "modules/impact/utils.py", + "modules/impact/wildcards.py", + "modules/thirdparty/noise_nodes.py", + "node_list.json", + "notebook/comfyui_colab_impact_pack.ipynb", + "pyproject.toml", + "requirements.txt", + "ruff.toml", + "test/advanced-sampler.json", + "test/detailer-pipe-test-sdxl.json", + "test/detailer-pipe-test.json", + "test/impactwildcardprocessor_separate_tests.json", + "test/impactwildcardprocessor_yaml_tests.json", + "test/loop-test.json", + "test/masks.json", + "test/regional_prompt.json", + "troubleshooting/TROUBLESHOOTING.md", + "troubleshooting/black1.png", + "troubleshooting/black2.png", + "wildcards/put_wildcards_here", + "wildcards/samples/flower.txt", + "wildcards/samples/jewel.txt" +] diff --git a/docs/hel-892/resize-compare-reference/impact-registry.json b/docs/hel-892/resize-compare-reference/impact-registry.json new file mode 100644 index 00000000..87e4f32c --- /dev/null +++ b/docs/hel-892/resize-compare-reference/impact-registry.json @@ -0,0 +1 @@ +{"changelog":"","createdAt":"2025-10-09T16:47:03.479217Z","dependencies":["segment-anything","scikit-image","piexif","transformers","opencv-python-headless","GitPython","scipy\u003e=1.11.4"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip","id":"e1f51319-20ae-46a0-96ac-2c5edda159d5","node_id":"comfyui-impact-pack","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"8.25.1"} diff --git a/docs/hel-892/resize-compare-reference/impact-source.zip b/docs/hel-892/resize-compare-reference/impact-source.zip new file mode 100644 index 00000000..6646d744 Binary files /dev/null and b/docs/hel-892/resize-compare-reference/impact-source.zip differ diff --git a/docs/hel-892/resize-compare-reference/impact__LICENSE.txt b/docs/hel-892/resize-compare-reference/impact__LICENSE.txt new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/resize-compare-reference/impact__LICENSE.txt @@ -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/resize-compare-reference/impact____init__.py b/docs/hel-892/resize-compare-reference/impact____init__.py new file mode 100644 index 00000000..ee98acab --- /dev/null +++ b/docs/hel-892/resize-compare-reference/impact____init__.py @@ -0,0 +1,456 @@ +""" +@author: Dr.Lt.Data +@title: Impact Pack +@nickname: Impact Pack +@description: This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler. +""" + +import folder_paths +import os +import sys +import logging + +comfy_path = os.path.dirname(folder_paths.__file__) +impact_path = os.path.join(os.path.dirname(__file__)) +modules_path = os.path.join(os.path.dirname(__file__), "modules") + +sys.path.append(modules_path) + +import impact.config +logging.info(f"### Loading: ComfyUI-Impact-Pack ({impact.config.version})") + +# Core +# recheck dependencies for colab +try: + import folder_paths + import torch # noqa: F401 + import cv2 # noqa: F401 + from cv2 import setNumThreads # noqa: F401 + import numpy as np # noqa: F401 + import comfy.samplers + import comfy.sd # noqa: F401 + from PIL import Image, ImageFilter # noqa: F401 + from skimage.measure import label, regionprops # noqa: F401 + from collections import namedtuple # noqa: F401 + import piexif # noqa: F401 + import nodes +except Exception as e: + import logging + logging.error("[Impact Pack] Failed to import due to several dependencies are missing!!!!") + raise e + + +import impact.impact_server # to load server api + +from .modules.impact.impact_pack import * # noqa: F403 +from .modules.impact.detectors import * # noqa: F403 +from .modules.impact.pipe import * # noqa: F403 +from .modules.impact.logics import * # noqa: F403 +from .modules.impact.util_nodes import * # noqa: F403 +from .modules.impact.segs_nodes import * # noqa: F403 +from .modules.impact.special_samplers import * # noqa: F403 +from .modules.impact.hf_nodes import * # noqa: F403 +from .modules.impact.bridge_nodes import * # noqa: F403 +from .modules.impact.hook_nodes import * # noqa: F403 +from .modules.impact.animatediff_nodes import * # noqa: F403 +from .modules.impact.segs_upscaler import * # noqa: F403 + +import threading + + +threading.Thread(target=impact.wildcards.wildcard_load).start() + + +NODE_CLASS_MAPPINGS = { + "SAMLoader": SAMLoader, # noqa: F405 + "CLIPSegDetectorProvider": CLIPSegDetectorProvider, # noqa: F405 + "ONNXDetectorProvider": ONNXDetectorProvider, # noqa: F405 + + "BitwiseAndMaskForEach": BitwiseAndMaskForEach, # noqa: F405 + "SubtractMaskForEach": SubtractMaskForEach, # noqa: F405 + + "DetailerForEach": DetailerForEach, # noqa: F405 + "DetailerForEachAutoRetry": DetailerForEachAutoRetry, # noqa: F405 + "DetailerForEachDebug": DetailerForEachTest, # noqa: F405 + "DetailerForEachPipe": DetailerForEachPipe, # noqa: F405 + "DetailerForEachDebugPipe": DetailerForEachTestPipe, # noqa: F405 + "DetailerForEachPipeForAnimateDiff": DetailerForEachPipeForAnimateDiff, # noqa: F405 + + "SAMDetectorCombined": SAMDetectorCombined, # noqa: F405 + "SAMDetectorSegmented": SAMDetectorSegmented, # noqa: F405 + + "FaceDetailer": FaceDetailer, # noqa: F405 + "FaceDetailerPipe": FaceDetailerPipe, # noqa: F405 + "MaskDetailerPipe": MaskDetailerPipe, # noqa: F405 + + "ToDetailerPipe": ToDetailerPipe, # noqa: F405 + "ToDetailerPipeSDXL": ToDetailerPipeSDXL, # noqa: F405 + "FromDetailerPipe": FromDetailerPipe, # noqa: F405 + "FromDetailerPipe_v2": FromDetailerPipe_v2, # noqa: F405 + "FromDetailerPipeSDXL": FromDetailerPipe_SDXL, # noqa: F405 + "AnyPipeToBasic": AnyPipeToBasic, # noqa: F405 + "ToBasicPipe": ToBasicPipe, # noqa: F405 + "FromBasicPipe": FromBasicPipe, # noqa: F405 + "FromBasicPipe_v2": FromBasicPipe_v2, # noqa: F405 + "BasicPipeToDetailerPipe": BasicPipeToDetailerPipe, # noqa: F405 + "BasicPipeToDetailerPipeSDXL": BasicPipeToDetailerPipeSDXL, # noqa: F405 + "DetailerPipeToBasicPipe": DetailerPipeToBasicPipe, # noqa: F405 + "EditBasicPipe": EditBasicPipe, # noqa: F405 + "EditDetailerPipe": EditDetailerPipe, # noqa: F405 + "EditDetailerPipeSDXL": EditDetailerPipeSDXL, # noqa: F405 + + "LatentPixelScale": LatentPixelScale, # noqa: F405 + "PixelKSampleUpscalerProvider": PixelKSampleUpscalerProvider, # noqa: F405 + "PixelKSampleUpscalerProviderPipe": PixelKSampleUpscalerProviderPipe, # noqa: F405 + "IterativeLatentUpscale": IterativeLatentUpscale, # noqa: F405 + "IterativeImageUpscale": IterativeImageUpscale, # noqa: F405 + "PixelTiledKSampleUpscalerProvider": PixelTiledKSampleUpscalerProvider, # noqa: F405 + "PixelTiledKSampleUpscalerProviderPipe": PixelTiledKSampleUpscalerProviderPipe, # noqa: F405 + "TwoSamplersForMaskUpscalerProvider": TwoSamplersForMaskUpscalerProvider, # noqa: F405 + "TwoSamplersForMaskUpscalerProviderPipe": TwoSamplersForMaskUpscalerProviderPipe, # noqa: F405 + + "PixelKSampleHookCombine": PixelKSampleHookCombine, # noqa: F405 + "DenoiseScheduleHookProvider": DenoiseScheduleHookProvider, # noqa: F405 + "StepsScheduleHookProvider": StepsScheduleHookProvider, # noqa: F405 + "CfgScheduleHookProvider": CfgScheduleHookProvider, # noqa: F405 + "NoiseInjectionHookProvider": NoiseInjectionHookProvider, # noqa: F405 + "UnsamplerHookProvider": UnsamplerHookProvider, # noqa: F405 + "CoreMLDetailerHookProvider": CoreMLDetailerHookProvider, # noqa: F405 + "PreviewDetailerHookProvider": PreviewDetailerHookProvider, # noqa: F405 + "BlackPatchRetryHookProvider": BlackPatchRetryHookProvider, # noqa: F405 + "CustomSamplerDetailerHookProvider": CustomSamplerDetailerHookProvider, # noqa: F405 + "LamaRemoverDetailerHookProvider": LamaRemoverDetailerHookProvider, # noqa: F405 + + "DetailerHookCombine": DetailerHookCombine, # noqa: F405 + "NoiseInjectionDetailerHookProvider": NoiseInjectionDetailerHookProvider, # noqa: F405 + "UnsamplerDetailerHookProvider": UnsamplerDetailerHookProvider, # noqa: F405 + "DenoiseSchedulerDetailerHookProvider": DenoiseSchedulerDetailerHookProvider, # noqa: F405 + "SEGSOrderedFilterDetailerHookProvider": SEGSOrderedFilterDetailerHookProvider, # noqa: F405 + "SEGSRangeFilterDetailerHookProvider": SEGSRangeFilterDetailerHookProvider, # noqa: F405 + "SEGSLabelFilterDetailerHookProvider": SEGSLabelFilterDetailerHookProvider, # noqa: F405 + "VariationNoiseDetailerHookProvider": VariationNoiseDetailerHookProvider, # noqa: F405 + # "CustomNoiseDetailerHookProvider": CustomNoiseDetailerHookProvider, + + "BitwiseAndMask": BitwiseAndMask, # noqa: F405 + "SubtractMask": SubtractMask, # noqa: F405 + "AddMask": AddMask, # noqa: F405 + "MaskRectArea": MaskRectArea, # noqa: F405 + "MaskRectAreaAdvanced": MaskRectAreaAdvanced, # noqa: F405 + "ImpactSegsAndMask": SegsBitwiseAndMask, # noqa: F405 + "ImpactSegsAndMaskForEach": SegsBitwiseAndMaskForEach, # noqa: F405 + "EmptySegs": EmptySEGS, # noqa: F405 + "ImpactFlattenMask": FlattenMask, # noqa: F405 + + "MediaPipeFaceMeshToSEGS": MediaPipeFaceMeshToSEGS, # noqa: F405 + "MaskToSEGS": MaskToSEGS, # noqa: F405 + "MaskToSEGS_for_AnimateDiff": MaskToSEGS_for_AnimateDiff, # noqa: F405 + "ToBinaryMask": ToBinaryMask, # noqa: F405 + "MasksToMaskList": MasksToMaskList, # noqa: F405 + "MaskListToMaskBatch": MaskListToMaskBatch, # noqa: F405 + "ImageListToImageBatch": ImageListToImageBatch, # noqa: F405 + "SetDefaultImageForSEGS": DefaultImageForSEGS, # noqa: F405 + "RemoveImageFromSEGS": RemoveImageFromSEGS, # noqa: F405 + + "BboxDetectorSEGS": BboxDetectorForEach, # noqa: F405 + "SegmDetectorSEGS": SegmDetectorForEach, # noqa: F405 + "ONNXDetectorSEGS": BboxDetectorForEach, # noqa: F405 + "ImpactSimpleDetectorSEGS_for_AD": SimpleDetectorForAnimateDiff, # noqa: F405 + "ImpactSAM2VideoDetectorSEGS": SAM2VideoDetectorSEGS, # noqa: F405 + "ImpactSimpleDetectorSEGS": SimpleDetectorForEach, # noqa: F405 + "ImpactSimpleDetectorSEGSPipe": SimpleDetectorForEachPipe, # noqa: F405 + "ImpactControlNetApplySEGS": ControlNetApplySEGS, # noqa: F405 + "ImpactControlNetApplyAdvancedSEGS": ControlNetApplyAdvancedSEGS, # noqa: F405 + "ImpactControlNetClearSEGS": ControlNetClearSEGS, # noqa: F405 + "ImpactIPAdapterApplySEGS": IPAdapterApplySEGS, # noqa: F405 + + "ImpactDecomposeSEGS": DecomposeSEGS, # noqa: F405 + "ImpactAssembleSEGS": AssembleSEGS, # noqa: F405 + "ImpactFrom_SEG_ELT": From_SEG_ELT, # noqa: F405 + "ImpactEdit_SEG_ELT": Edit_SEG_ELT, # noqa: F405 + "ImpactDilate_Mask_SEG_ELT": Dilate_SEG_ELT, # noqa: F405 + "ImpactDilateMask": DilateMask, # noqa: F405 + "ImpactGaussianBlurMask": GaussianBlurMask, # noqa: F405 + "ImpactDilateMaskInSEGS": DilateMaskInSEGS, # noqa: F405 + "ImpactGaussianBlurMaskInSEGS": GaussianBlurMaskInSEGS, # noqa: F405 + "ImpactScaleBy_BBOX_SEG_ELT": SEG_ELT_BBOX_ScaleBy, # noqa: F405 + "ImpactFrom_SEG_ELT_bbox": From_SEG_ELT_bbox, # noqa: F405 + "ImpactFrom_SEG_ELT_crop_region": From_SEG_ELT_crop_region, # noqa: F405 + "ImpactCount_Elts_in_SEGS": Count_Elts_in_SEGS, # noqa: F405 + + "BboxDetectorCombined_v2": BboxDetectorCombined, # noqa: F405 + "SegmDetectorCombined_v2": SegmDetectorCombined, # noqa: F405 + "SegsToCombinedMask": SegsToCombinedMask, # noqa: F405 + + "KSamplerProvider": KSamplerProvider, # noqa: F405 + "TwoSamplersForMask": TwoSamplersForMask, # noqa: F405 + "TiledKSamplerProvider": TiledKSamplerProvider, # noqa: F405 + + "KSamplerAdvancedProvider": KSamplerAdvancedProvider, # noqa: F405 + "TwoAdvancedSamplersForMask": TwoAdvancedSamplersForMask, # noqa: F405 + + "ImpactNegativeConditioningPlaceholder": NegativeConditioningPlaceholder, # noqa: F405 + + "PreviewBridge": PreviewBridge, # noqa: F405 + "PreviewBridgeLatent": PreviewBridgeLatent, # noqa: F405 + "ImageSender": ImageSender, # noqa: F405 + "ImageReceiver": ImageReceiver, # noqa: F405 + "LatentSender": LatentSender, # noqa: F405 + "LatentReceiver": LatentReceiver, # noqa: F405 + "ImageMaskSwitch": ImageMaskSwitch, # noqa: F405 + "LatentSwitch": GeneralSwitch, # noqa: F405 + "SEGSSwitch": GeneralSwitch, # noqa: F405 + "ImpactSwitch": GeneralSwitch, # noqa: F405 + "ImpactInversedSwitch": GeneralInversedSwitch, # noqa: F405 + + "ImpactWildcardProcessor": ImpactWildcardProcessor, # noqa: F405 + "ImpactWildcardEncode": ImpactWildcardEncode, # noqa: F405 + + "SEGSUpscaler": SEGSUpscaler, # noqa: F405 + "SEGSUpscalerPipe": SEGSUpscalerPipe, # noqa: F405 + "SEGSDetailer": SEGSDetailer, # noqa: F405 + "SEGSPaste": SEGSPaste, # noqa: F405 + "SEGSPreview": SEGSPreview, # noqa: F405 + "SEGSPreviewCNet": SEGSPreviewCNet, # noqa: F405 + "SEGSToImageList": SEGSToImageList, # noqa: F405 + "ImpactSEGSToMaskList": SEGSToMaskList, # noqa: F405 + "ImpactSEGSToMaskBatch": SEGSToMaskBatch, # noqa: F405 + "ImpactSEGSConcat": SEGSConcat, # noqa: F405 + "ImpactSEGSPicker": SEGSPicker, # noqa: F405 + "ImpactMakeTileSEGS": MakeTileSEGS, # noqa: F405 + "ImpactSEGSMerge": SEGSMerge, # noqa: F405 + + "SEGSDetailerForAnimateDiff": SEGSDetailerForAnimateDiff, # noqa: F405 + + "ImpactKSamplerBasicPipe": KSamplerBasicPipe, # noqa: F405 + "ImpactKSamplerAdvancedBasicPipe": KSamplerAdvancedBasicPipe, # noqa: F405 + + "ReencodeLatent": ReencodeLatent, # noqa: F405 + "ReencodeLatentPipe": ReencodeLatentPipe, # noqa: F405 + + "ImpactImageBatchToImageList": ImageBatchToImageList, # noqa: F405 + "ImpactMakeImageList": MakeImageList, # noqa: F405 + "ImpactMakeImageBatch": MakeImageBatch, # noqa: F405 + "ImpactMakeAnyList": MakeAnyList, # noqa: F405 + "ImpactMakeMaskList": MakeMaskList, # noqa: F405 + "ImpactMakeMaskBatch": MakeMaskBatch, # noqa: F405 + "ImpactSelectNthItemOfAnyList": NthItemOfAnyList, # noqa: F405 + + "RegionalSampler": RegionalSampler, # noqa: F405 + "RegionalSamplerAdvanced": RegionalSamplerAdvanced, # noqa: F405 + "CombineRegionalPrompts": CombineRegionalPrompts, # noqa: F405 + "RegionalPrompt": RegionalPrompt, # noqa: F405 + + "ImpactCombineConditionings": CombineConditionings, # noqa: F405 + "ImpactConcatConditionings": ConcatConditionings, # noqa: F405 + + "ImpactSEGSLabelAssign": SEGSLabelAssign, # noqa: F405 + "ImpactSEGSLabelFilter": SEGSLabelFilter, # noqa: F405 + "ImpactSEGSRangeFilter": SEGSRangeFilter, # noqa: F405 + "ImpactSEGSOrderedFilter": SEGSOrderedFilter, # noqa: F405 + "ImpactSEGSIntersectionFilter": SEGSIntersectionFilter, # noqa: F405 + "ImpactSEGSNMSFilter": SEGSNMSFilter, # noqa: F405 + + "ImpactCompare": ImpactCompare, # noqa: F405 + "ImpactConditionalBranch": ImpactConditionalBranch, # noqa: F405 + "ImpactConditionalBranchSelMode": ImpactConditionalBranchSelMode, # noqa: F405 + "ImpactIfNone": ImpactIfNone, # noqa: F405 + "ImpactConvertDataType": ImpactConvertDataType, # noqa: F405 + "ImpactLogicalOperators": ImpactLogicalOperators, # noqa: F405 + "ImpactInt": ImpactInt, # noqa: F405 + "ImpactFloat": ImpactFloat, # noqa: F405 + "ImpactBoolean": ImpactBoolean, # noqa: F405 + "ImpactValueSender": ImpactValueSender, # noqa: F405 + "ImpactValueReceiver": ImpactValueReceiver, # noqa: F405 + "ImpactImageInfo": ImpactImageInfo, # noqa: F405 + "ImpactLatentInfo": ImpactLatentInfo, # noqa: F405 + "ImpactMinMax": ImpactMinMax, # noqa: F405 + "ImpactNeg": ImpactNeg, # noqa: F405 + "ImpactConditionalStopIteration": ImpactConditionalStopIteration, # noqa: F405 + "ImpactStringSelector": StringSelector, # noqa: F405 + "StringListToString": StringListToString, # noqa: F405 + "WildcardPromptFromString": WildcardPromptFromString, # noqa: F405 + "ImpactExecutionOrderController": ImpactExecutionOrderController, # noqa: F405 + "ImpactListBridge": ImpactListBridge, # noqa: F405 + + "RemoveNoiseMask": RemoveNoiseMask, # noqa: F405 + + "ImpactLogger": ImpactLogger, # noqa: F405 + "ImpactDummyInput": ImpactDummyInput, # noqa: F405 + + "ImpactQueueTrigger": ImpactQueueTrigger, # noqa: F405 + "ImpactQueueTriggerCountdown": ImpactQueueTriggerCountdown, # noqa: F405 + "ImpactSetWidgetValue": ImpactSetWidgetValue, # noqa: F405 + "ImpactNodeSetMuteState": ImpactNodeSetMuteState, # noqa: F405 + "ImpactControlBridge": ImpactControlBridge, # noqa: F405 + "ImpactIsNotEmptySEGS": ImpactNotEmptySEGS, # noqa: F405 + "ImpactSleep": ImpactSleep, # noqa: F405 + "ImpactRemoteBoolean": ImpactRemoteBoolean, # noqa: F405 + "ImpactRemoteInt": ImpactRemoteInt, # noqa: F405 + + "ImpactHFTransformersClassifierProvider": HF_TransformersClassifierProvider, # noqa: F405 + "ImpactSEGSClassify": SEGS_Classify, # noqa: F405 + + "ImpactSchedulerAdapter": ImpactSchedulerAdapter, # noqa: F405 + "GITSSchedulerFuncProvider": GITSSchedulerFuncProvider # noqa: F405 +} + + +NODE_DISPLAY_NAME_MAPPINGS = { + "SAMLoader": "SAMLoader (Impact)", + + "BboxDetectorSEGS": "BBOX Detector (SEGS)", + "SegmDetectorSEGS": "SEGM Detector (SEGS)", + "ONNXDetectorSEGS": "ONNX Detector (SEGS/legacy) - use BBOXDetector", + "ImpactSimpleDetectorSEGS_for_AD": "Simple Detector for Video (SEGS)", + "ImpactSAM2VideoDetectorSEGS": "SAM2 Video Detector (SEGS)", + "ImpactSimpleDetectorSEGS": "Simple Detector (SEGS)", + "ImpactSimpleDetectorSEGSPipe": "Simple Detector (SEGS/pipe)", + "ImpactControlNetApplySEGS": "ControlNetApply (SEGS) - DEPRECATED", + "ImpactControlNetApplyAdvancedSEGS": "ControlNetApply (SEGS)", + "ImpactIPAdapterApplySEGS": "IPAdapterApply (SEGS)", + + "BboxDetectorCombined_v2": "BBOX Detector (combined)", + "SegmDetectorCombined_v2": "SEGM Detector (combined)", + "SegsToCombinedMask": "SEGS to MASK (combined)", + "MediaPipeFaceMeshToSEGS": "MediaPipe FaceMesh to SEGS", + "MaskToSEGS": "MASK to SEGS", + "MaskToSEGS_for_AnimateDiff": "MASK to SEGS for Video", + "BitwiseAndMaskForEach": "Pixelwise(SEGS & SEGS)", + "SubtractMaskForEach": "Pixelwise(SEGS - SEGS)", + "ImpactSegsAndMask": "Pixelwise(SEGS & MASK)", + "ImpactSegsAndMaskForEach": "Pixelwise(SEGS & MASKS ForEach)", + "BitwiseAndMask": "Pixelwise(MASK & MASK)", + "SubtractMask": "Pixelwise(MASK - MASK)", + "AddMask": "Pixelwise(MASK + MASK)", + "MaskRectArea": "Mask Rect Area", + "MaskRectAreaAdvanced": "Mask Rect Area (Advanced)", + "ImpactFlattenMask": "Flatten Mask Batch", + "DetailerForEach": "Detailer (SEGS)", + "DetailerForEachAutoRetry": "Detailer (SEGS) with auto retry", + "DetailerForEachPipe": "Detailer (SEGS/pipe)", + "DetailerForEachDebug": "DetailerDebug (SEGS)", + "DetailerForEachDebugPipe": "DetailerDebug (SEGS/pipe)", + "SEGSDetailerForAnimateDiff": "SEGSDetailer For Video (SEGS/pipe)", + "DetailerForEachPipeForAnimateDiff": "Detailer For Video (SEGS/pipe)", + "SEGSUpscaler": "Upscaler (SEGS)", + "SEGSUpscalerPipe": "Upscaler (SEGS/pipe)", + + "SAMDetectorCombined": "SAMDetector (combined)", + "SAMDetectorSegmented": "SAMDetector (segmented)", + "FaceDetailerPipe": "FaceDetailer (pipe)", + "MaskDetailerPipe": "MaskDetailer (pipe)", + + "FromDetailerPipeSDXL": "FromDetailer (SDXL/pipe)", + "BasicPipeToDetailerPipeSDXL": "BasicPipe -> DetailerPipe (SDXL)", + "EditDetailerPipeSDXL": "Edit DetailerPipe (SDXL)", + + "BasicPipeToDetailerPipe": "BasicPipe -> DetailerPipe", + "DetailerPipeToBasicPipe": "DetailerPipe -> BasicPipe", + "EditBasicPipe": "Edit BasicPipe", + "EditDetailerPipe": "Edit DetailerPipe", + "AnyPipeToBasic": "Any PIPE -> BasicPipe", + + "LatentPixelScale": "Latent Scale (on Pixel Space)", + "IterativeLatentUpscale": "Iterative Upscale (Latent/on Pixel Space)", + "IterativeImageUpscale": "Iterative Upscale (Image)", + + "TwoSamplersForMaskUpscalerProvider": "TwoSamplersForMask Upscaler Provider", + "TwoSamplersForMaskUpscalerProviderPipe": "TwoSamplersForMask Upscaler Provider (pipe)", + + "ReencodeLatent": "Reencode Latent", + "ReencodeLatentPipe": "Reencode Latent (pipe)", + + "ImpactKSamplerBasicPipe": "KSampler (pipe)", + "ImpactKSamplerAdvancedBasicPipe": "KSampler (Advanced/pipe)", + "ImpactSEGSLabelAssign": "SEGS Assign (label)", + "ImpactSEGSLabelFilter": "SEGS Filter (label)", + "ImpactSEGSRangeFilter": "SEGS Filter (range)", + "ImpactSEGSOrderedFilter": "SEGS Filter (ordered)", + "ImpactSEGSIntersectionFilter": "SEGS Filter (intersection)", + "ImpactSEGSNMSFilter": "SEGS Filter (non max suppression)", + "ImpactSEGSConcat": "SEGS Concat", + "ImpactSEGSToMaskList": "SEGS to Mask List", + "ImpactSEGSToMaskBatch": "SEGS to Mask Batch", + "ImpactSEGSPicker": "Picker (SEGS)", + "ImpactMakeTileSEGS": "Make Tile SEGS", + "ImpactSEGSMerge": "SEGS Merge", + + "ImpactDecomposeSEGS": "Decompose (SEGS)", + "ImpactAssembleSEGS": "Assemble (SEGS)", + "ImpactFrom_SEG_ELT": "From SEG_ELT", + "ImpactEdit_SEG_ELT": "Edit SEG_ELT", + "ImpactFrom_SEG_ELT_bbox": "From SEG_ELT bbox", + "ImpactFrom_SEG_ELT_crop_region": "From SEG_ELT crop_region", + "ImpactDilate_Mask_SEG_ELT": "Dilate Mask (SEG_ELT)", + "ImpactScaleBy_BBOX_SEG_ELT": "ScaleBy BBOX (SEG_ELT)", + "ImpactCount_Elts_in_SEGS": "Count Elts in SEGS", + "ImpactDilateMask": "Dilate Mask", + "ImpactGaussianBlurMask": "Gaussian Blur Mask", + "ImpactDilateMaskInSEGS": "Dilate Mask (SEGS)", + "ImpactGaussianBlurMaskInSEGS": "Gaussian Blur Mask (SEGS)", + + "PreviewBridge": "Preview Bridge (Image)", + "PreviewBridgeLatent": "Preview Bridge (Latent)", + "ImageSender": "Image Sender", + "ImageReceiver": "Image Receiver", + "ImageMaskSwitch": "Switch (images, mask)", + "ImpactSwitch": "Switch (Any)", + "ImpactInversedSwitch": "Inversed Switch (Any)", + "ImpactExecutionOrderController": "Execution Order Controller", + "ImpactListBridge": "List Bridge", + + "MasksToMaskList": "Mask Batch to Mask List", + "MaskListToMaskBatch": "Mask List to Mask Batch", + "ImpactImageBatchToImageList": "Image Batch to Image List", + "ImageListToImageBatch": "Image List to Image Batch", + + "ImpactMakeImageList": "Make Image List", + "ImpactMakeImageBatch": "Make Image Batch", + "ImpactMakeMaskList": "Make Mask List", + "ImpactMakeMaskBatch": "Make Mask Batch", + "ImpactMakeAnyList": "Make List (Any)", + "ImpactSelectNthItemOfAnyList": "Select Nth Item (Any list)", + + "ImpactStringSelector": "String Selector", + "StringListToString": "String List to String", + "WildcardPromptFromString": "Wildcard Prompt from String", + "ImpactIsNotEmptySEGS": "SEGS isn't Empty", + "SetDefaultImageForSEGS": "Set Default Image for SEGS", + "RemoveImageFromSEGS": "Remove Image from SEGS", + + "RemoveNoiseMask": "Remove Noise Mask", + + "ImpactCombineConditionings": "Combine Conditionings", + "ImpactConcatConditionings": "Concat Conditionings", + + "ImpactQueueTrigger": "Queue Trigger", + "ImpactQueueTriggerCountdown": "Queue Trigger (Countdown)", + "ImpactSetWidgetValue": "Set Widget Value", + "ImpactNodeSetMuteState": "Set Mute State", + "ImpactControlBridge": "Control Bridge", + "ImpactSleep": "Sleep", + "ImpactRemoteBoolean": "Remote Boolean (on prompt)", + "ImpactRemoteInt": "Remote Int (on prompt)", + + "ImpactHFTransformersClassifierProvider": "HF Transformers Classifier Provider", + "ImpactSEGSClassify": "SEGS Classify", + + "LatentSwitch": "Switch (latent/legacy)", + "SEGSSwitch": "Switch (SEGS/legacy)", + + "SEGSPreviewCNet": "SEGSPreview (CNET Image)", + + "ImpactSchedulerAdapter": "Impact Scheduler Adapter", + "GITSSchedulerFuncProvider": "GITSScheduler Func Provider", + "ImpactNegativeConditioningPlaceholder": "Negative Cond Placeholder" +} + + +# NOTE: Inject directly into EXTENSION_WEB_DIRS instead of WEB_DIRECTORY +# Provide the js path fixed as ComfyUI-Impact-Pack instead of the path name, making it available for external use + +# WEB_DIRECTORY = "js" -- deprecated method +nodes.EXTENSION_WEB_DIRS["ComfyUI-Impact-Pack"] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'js') + + +__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] diff --git a/docs/hel-892/resize-compare-reference/impact__modules__impact__logics.py b/docs/hel-892/resize-compare-reference/impact__modules__impact__logics.py new file mode 100644 index 00000000..413ba494 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/impact__modules__impact__logics.py @@ -0,0 +1,779 @@ +import sys +import time + +import execution +import impact.impact_server +from server import PromptServer +from impact.utils import any_typ +import impact.core as core +import re +import nodes +import logging + + +class ImpactCompare: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "cmp": (['a = b', 'a <> b', 'a > b', 'a < b', 'a >= b', 'a <= b', 'tt', 'ff'],), + "a": (any_typ, ), + "b": (any_typ, ), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("BOOLEAN", ) + + def doit(self, cmp, a, b): + if cmp == "a = b": + return (a == b, ) + elif cmp == "a <> b": + return (a != b, ) + elif cmp == "a > b": + return (a > b, ) + elif cmp == "a < b": + return (a < b, ) + elif cmp == "a >= b": + return (a >= b, ) + elif cmp == "a <= b": + return (a <= b, ) + elif cmp == 'tt': + return (True, ) + else: + return (False, ) + + +class ImpactNotEmptySEGS: + @classmethod + def INPUT_TYPES(cls): + return {"required": {"segs": ("SEGS",)}} + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("BOOLEAN", ) + + def doit(self, segs): + return (segs[1] != [], ) + + +class ImpactConditionalBranch: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "cond": ("BOOLEAN",), + "tt_value": (any_typ,{"lazy": True}), + "ff_value": (any_typ,{"lazy": True}), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = (any_typ, ) + + def check_lazy_status(self, cond, tt_value=None, ff_value=None): + if cond and tt_value is None: + return ["tt_value"] + if not cond and ff_value is None: + return ["ff_value"] + + def doit(self, cond, tt_value=None, ff_value=None): + if cond: + return (tt_value,) + else: + return (ff_value,) + + +class ImpactConditionalBranchSelMode: + @classmethod + def INPUT_TYPES(cls): + if not core.is_execution_model_version_supported(): + required_inputs = { + "cond": ("BOOLEAN",), + "sel_mode": ("BOOLEAN", {"default": True, "label_on": "select_on_prompt", "label_off": "select_on_execution"}), + } + else: + required_inputs = { + "cond": ("BOOLEAN",), + } + + return { + "required": required_inputs, + "optional": { + "tt_value": (any_typ,), + "ff_value": (any_typ,), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = (any_typ, ) + + def doit(self, cond, tt_value=None, ff_value=None, **kwargs): + if cond: + return (tt_value,) + else: + return (ff_value,) + + +class ImpactConvertDataType: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return {"required": {"value": (any_typ,)}} + + RETURN_TYPES = ("STRING", "FLOAT", "INT", "BOOLEAN") + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic" + + @staticmethod + def is_number(string): + pattern = re.compile(r'^[-+]?[0-9]*\.?[0-9]+$') + return bool(pattern.match(string)) + + def doit(self, value): + if self.is_number(str(value)): + num = value + else: + if str.lower(str(value)) != "false": + num = 1 + else: + num = 0 + return (str(value), float(num), int(float(num)), bool(float(num)), ) + + +class ImpactIfNone: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": {}, + "optional": {"signal": (any_typ,), "any_input": (any_typ,), } + } + + RETURN_TYPES = (any_typ, "BOOLEAN") + RETURN_NAMES = ("signal_opt", "bool") + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic" + + def doit(self, signal=None, any_input=None): + if any_input is None: + return (signal, False, ) + else: + return (signal, True, ) + + +class ImpactLogicalOperators: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "operator": (['and', 'or', 'xor'],), + "bool_a": ("BOOLEAN", {"forceInput": True}), + "bool_b": ("BOOLEAN", {"forceInput": True}), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("BOOLEAN", ) + + def doit(self, operator, bool_a, bool_b): + if operator == "and": + return (bool_a and bool_b, ) + elif operator == "or": + return (bool_a or bool_b, ) + else: + return (bool_a != bool_b, ) + + +class ImpactConditionalStopIteration: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { "cond": ("BOOLEAN", {"forceInput": True}), }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = () + + OUTPUT_NODE = True + + def doit(self, cond): + if cond: + PromptServer.instance.send_sync("stop-iteration", {}) + return {} + + +class ImpactNeg: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { "value": ("BOOLEAN", {"forceInput": True}), }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("BOOLEAN", ) + + def doit(self, value): + return (not value, ) + + +class ImpactInt: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "value": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("INT", ) + + def doit(self, value): + return (value, ) + + +class ImpactFloat: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "value": ("FLOAT", {"default": 1.0, "min": -3.402823466e+38, "max": 3.402823466e+38}), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("FLOAT", ) + + def doit(self, value): + return (value, ) + + +class ImpactBoolean: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "value": ("BOOLEAN", {"default": False}), + }, + } + + FUNCTION = "doit" + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = ("BOOLEAN", ) + + def doit(self, value): + return (value, ) + + +class ImpactValueSender: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "value": (any_typ, ), + "link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}), + }, + "optional": { + "signal_opt": (any_typ,), + } + } + + OUTPUT_NODE = True + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = (any_typ, ) + RETURN_NAMES = ("signal", ) + + def doit(self, value, link_id=0, signal_opt=None): + PromptServer.instance.send_sync("value-send", {"link_id": link_id, "value": value}) + return (signal_opt, ) + + +class ImpactIntConstSender: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "signal": (any_typ, ), + "value": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}), + "link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}), + }, + } + + OUTPUT_NODE = True + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = () + + def doit(self, signal, value, link_id=0): + PromptServer.instance.send_sync("value-send", {"link_id": link_id, "value": value}) + return {} + + +class ImpactValueReceiver: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "typ": (["STRING", "INT", "FLOAT", "BOOLEAN"], ), + "value": ("STRING", {"default": ""}), + "link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}), + }, + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic" + + RETURN_TYPES = (any_typ, ) + + def doit(self, typ, value, link_id=0): + if typ == "INT": + return (int(value), ) + elif typ == "FLOAT": + return (float(value), ) + elif typ == "BOOLEAN": + return (value.lower() == "true", ) + else: + return (value, ) + + +class ImpactImageInfo: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "value": ("IMAGE", ), + }, + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + + RETURN_TYPES = ("INT", "INT", "INT", "INT") + RETURN_NAMES = ("batch", "height", "width", "channel") + + def doit(self, value): + return (value.shape[0], value.shape[1], value.shape[2], value.shape[3]) + + +class ImpactLatentInfo: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "value": ("LATENT", ), + }, + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + + RETURN_TYPES = ("INT", "INT", "INT", "INT") + RETURN_NAMES = ("batch", "height", "width", "channel") + + def doit(self, value): + shape = value['samples'].shape + return (shape[0], shape[2] * 8, shape[3] * 8, shape[1]) + + +class ImpactMinMax: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "mode": ("BOOLEAN", {"default": True, "label_on": "max", "label_off": "min"}), + "a": (any_typ,), + "b": (any_typ,), + }, + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + + RETURN_TYPES = ("INT", ) + + def doit(self, mode, a, b): + if mode: + return (max(a, b), ) + else: + return (min(a, b),) + + +class ImpactQueueTrigger: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "signal": (any_typ,), + "mode": ("BOOLEAN", {"default": True, "label_on": "Trigger", "label_off": "Don't trigger"}), + } + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = (any_typ,) + RETURN_NAMES = ("signal_opt",) + OUTPUT_NODE = True + + def doit(self, signal, mode): + if(mode): + PromptServer.instance.send_sync("impact-add-queue", {}) + + return (signal,) + + +class ImpactQueueTriggerCountdown: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "count": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), + "total": ("INT", {"default": 10, "min": 1, "max": 0xffffffffffffffff}), + "mode": ("BOOLEAN", {"default": True, "label_on": "Trigger", "label_off": "Don't trigger"}), + }, + "optional": {"signal": (any_typ,),}, + "hidden": {"unique_id": "UNIQUE_ID"} + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = (any_typ, "INT", "INT") + RETURN_NAMES = ("signal_opt", "count", "total") + OUTPUT_NODE = True + + def doit(self, count, total, mode, unique_id, signal=None): + if (mode): + if count < total - 1: + PromptServer.instance.send_sync("impact-node-feedback", + {"node_id": unique_id, "widget_name": "count", "type": "int", "value": count+1}) + PromptServer.instance.send_sync("impact-add-queue", {}) + if count >= total - 1: + PromptServer.instance.send_sync("impact-node-feedback", + {"node_id": unique_id, "widget_name": "count", "type": "int", "value": 0}) + + return (signal, count, total) + + + +class ImpactSetWidgetValue: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "signal": (any_typ,), + "node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), + "widget_name": ("STRING", {"multiline": False}), + }, + "optional": { + "boolean_value": ("BOOLEAN", {"forceInput": True}), + "int_value": ("INT", {"forceInput": True}), + "float_value": ("FLOAT", {"forceInput": True}), + "string_value": ("STRING", {"forceInput": True}), + } + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = (any_typ,) + RETURN_NAMES = ("signal_opt",) + OUTPUT_NODE = True + + def doit(self, signal, node_id, widget_name, boolean_value=None, int_value=None, float_value=None, string_value=None, ): + kind = None + if boolean_value is not None: + value = boolean_value + kind = "BOOLEAN" + elif int_value is not None: + value = int_value + kind = "INT" + elif float_value is not None: + value = float_value + kind = "FLOAT" + elif string_value is not None: + value = string_value + kind = "STRING" + else: + value = None + + if value is not None: + PromptServer.instance.send_sync("impact-node-feedback", + {"node_id": node_id, "widget_name": widget_name, "type": kind, "value": value}) + + return (signal,) + + +class ImpactNodeSetMuteState: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "signal": (any_typ,), + "node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), + "set_state": ("BOOLEAN", {"default": True, "label_on": "active", "label_off": "mute"}), + } + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = (any_typ,) + RETURN_NAMES = ("signal_opt",) + OUTPUT_NODE = True + + def doit(self, signal, node_id, set_state): + PromptServer.instance.send_sync("impact-node-mute-state", {"node_id": node_id, "is_active": set_state}) + return (signal,) + + +class ImpactSleep: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "signal": (any_typ,), + "seconds": ("FLOAT", {"default": 0.5, "min": 0, "max": 3600}), + } + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = (any_typ,) + RETURN_NAMES = ("signal_opt",) + OUTPUT_NODE = True + + def doit(self, signal, seconds): + time.sleep(seconds) + return (signal,) + + +def workflow_to_map(workflow): + nodes = {} + links = {} + for link in workflow['links']: + links[link[0]] = link[1:] + for node in workflow['nodes']: + nodes[str(node['id'])] = node + + return nodes, links + + +class ImpactRemoteBoolean: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), + "widget_name": ("STRING", {"multiline": False}), + "value": ("BOOLEAN", {"default": True, "label_on": "True", "label_off": "False"}), + }} + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = () + OUTPUT_NODE = True + + def doit(self, **kwargs): + return {} + + +class ImpactRemoteInt: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}), + "widget_name": ("STRING", {"multiline": False}), + "value": ("INT", {"default": 0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff}), + }} + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic/_for_test" + RETURN_TYPES = () + OUTPUT_NODE = True + + def doit(self, **kwargs): + return {} + +class ImpactControlBridge: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "value": (any_typ,), + "mode": ("BOOLEAN", {"default": True, "label_on": "Active", "label_off": "Stop/Mute/Bypass"}), + "behavior": (["Stop", "Mute", "Bypass"], ), + }, + "hidden": {"unique_id": "UNIQUE_ID", "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"} + } + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Logic" + RETURN_TYPES = (any_typ,) + RETURN_NAMES = ("value",) + OUTPUT_NODE = True + + DESCRIPTION = ("When behavior is Stop and mode is active, the input value is passed directly to the output.\n" + "When behavior is Mute/Bypass and mode is active, the node connected to the output is changed to active state.\n" + "When behavior is Stop and mode is Stop/Mute/Bypass, the workflow execution of the current node is halted.\n" + "When behavior is Mute/Bypass and mode is Stop/Mute/Bypass, the node connected to the output is changed to Mute/Bypass state.") + + @classmethod + def IS_CHANGED(self, value, mode, behavior="Stop", unique_id=None, prompt=None, extra_pnginfo=None): + if behavior == "Stop": + return value, mode, behavior + else: + # NOTE: extra_pnginfo is not populated for IS_CHANGED. + # so extra_pnginfo is useless in here + try: + workflow = core.current_prompt['extra_data']['extra_pnginfo']['workflow'] + except Exception: + logging.info("[Impact Pack] core.current_prompt['extra_data']['extra_pnginfo']['workflow']") + return 0 + + nodes, links = workflow_to_map(workflow) + next_nodes = [] + + for link in nodes[unique_id]['outputs'][0]['links']: + node_id = str(links[link][2]) + impact.utils.collect_non_reroute_nodes(nodes, links, next_nodes, node_id) + + return next_nodes + + def doit(self, value, mode, behavior="Stop", unique_id=None, prompt=None, extra_pnginfo=None): + global error_skip_flag + + if core.is_execution_model_version_supported(): + from comfy_execution.graph import ExecutionBlocker + else: + logging.info("[Impact Pack] ImpactControlBridge: ComfyUI is outdated. The 'Stop' behavior cannot function properly.") + + if behavior == "Stop": + if mode: + return (value, ) + else: + return (ExecutionBlocker(None), ) + elif extra_pnginfo is None: + logging.warning(f"[Impact Pack] limitation: '{behavior}' behavior cannot be used in API execution.") + return (value,) + else: + workflow_nodes, links = workflow_to_map(extra_pnginfo['workflow']) + + active_nodes = [] + mute_nodes = [] + bypass_nodes = [] + + for link in workflow_nodes[unique_id]['outputs'][0]['links']: + node_id = str(links[link][2]) + + next_nodes = [] + impact.utils.collect_non_reroute_nodes(workflow_nodes, links, next_nodes, node_id) + + for next_node_id in next_nodes: + node_mode = workflow_nodes[next_node_id]['mode'] + + if node_mode == 0: + active_nodes.append(next_node_id) + elif node_mode == 2: + mute_nodes.append(next_node_id) + elif node_mode == 4: + bypass_nodes.append(next_node_id) + + if mode: + # active + should_be_active_nodes = mute_nodes + bypass_nodes + if len(should_be_active_nodes) > 0: + PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'actives': list(should_be_active_nodes)}) + nodes.interrupt_processing() + + elif behavior == "Mute" or behavior == True: # noqa: E712 + # mute + should_be_mute_nodes = active_nodes + bypass_nodes + if len(should_be_mute_nodes) > 0: + PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'mutes': list(should_be_mute_nodes)}) + nodes.interrupt_processing() + + else: + # bypass + should_be_bypass_nodes = active_nodes + mute_nodes + if len(should_be_bypass_nodes) > 0: + PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'bypasses': list(should_be_bypass_nodes)}) + nodes.interrupt_processing() + + return (value, ) + + +class ImpactExecutionOrderController: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "signal": (any_typ,), + "value": (any_typ,), + }} + + FUNCTION = "doit" + + CATEGORY = "ImpactPack/Util" + RETURN_TYPES = (any_typ, any_typ) + RETURN_NAMES = ("signal", "value") + + def doit(self, signal, value): + return signal, value + + +class ImpactListBridge: + @classmethod + def INPUT_TYPES(cls): + return {"required": { + "list_input": (any_typ,), + }} + + FUNCTION = "doit" + + DESCRIPTION = "When passing the list output through this node, it collects and organizes the data before forwarding it, which ensures that the previous stage's sub-workflow has been completed." + + CATEGORY = "ImpactPack/Util" + RETURN_TYPES = (any_typ, ) + RETURN_NAMES = ("list_output", ) + + INPUT_IS_LIST = True + OUTPUT_IS_LIST = (True, ) + + @staticmethod + def doit(list_input): + return (list_input,) + + +original_handle_execution = execution.PromptExecutor.handle_execution_error + + +def handle_execution_error(**kwargs): + execution.PromptExecutor.handle_execution_error(**kwargs) + diff --git a/docs/hel-892/resize-compare-reference/kj-tree.json b/docs/hel-892/resize-compare-reference/kj-tree.json new file mode 100644 index 00000000..fda9608c --- /dev/null +++ b/docs/hel-892/resize-compare-reference/kj-tree.json @@ -0,0 +1 @@ +{"sha":"f7eb33abc80a2aded1b46dff0dd14d07856a7d50","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/f7eb33abc80a2aded1b46dff0dd14d07856a7d50","tree":[{"path":".github","mode":"040000","type":"tree","sha":"1b2304151396baf6d8de2e7edbffc59016b21781","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/1b2304151396baf6d8de2e7edbffc59016b21781"},{"path":".github/FUNDING.yml","mode":"100644","type":"blob","sha":"f475f425424d9172d049b4c016ebe8817987149e","size":62,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f475f425424d9172d049b4c016ebe8817987149e"},{"path":".github/workflows","mode":"040000","type":"tree","sha":"ab4de901c29628437fbf1394007d0c6d827da426","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/ab4de901c29628437fbf1394007d0c6d827da426"},{"path":".github/workflows/publish.yml","mode":"100644","type":"blob","sha":"e155f5f40e46fa83942dee5a9460e8093f3b4208","size":644,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e155f5f40e46fa83942dee5a9460e8093f3b4208"},{"path":".gitignore","mode":"100644","type":"blob","sha":"d462a62fdd67858a783934170db4091ea95eb18f","size":115,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/d462a62fdd67858a783934170db4091ea95eb18f"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"f288702d2fa16d3cdf0035b15a9fcbc552cd88e7","size":35149,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"},{"path":"README.md","mode":"100644","type":"blob","sha":"6371f5014823bc66ffd1f378fea8715a7dd590ff","size":2873,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/6371f5014823bc66ffd1f378fea8715a7dd590ff"},{"path":"__init__.py","mode":"100644","type":"blob","sha":"fce7a50fb20726cefb84215911b01500acfbab35","size":17806,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/fce7a50fb20726cefb84215911b01500acfbab35"},{"path":"custom_dimensions_example.json","mode":"100644","type":"blob","sha":"5c4814d377d44916a14b4d4a83b7cba72ae2958b","size":329,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/5c4814d377d44916a14b4d4a83b7cba72ae2958b"},{"path":"docs","mode":"040000","type":"tree","sha":"527c09d24c9350ac085ad74a57181baced6892c6","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/527c09d24c9350ac085ad74a57181baced6892c6"},{"path":"docs/images","mode":"040000","type":"tree","sha":"c6c35df204fd98d771b05fcaaef9bda84be508a9","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/c6c35df204fd98d771b05fcaaef9bda84be508a9"},{"path":"docs/images/2024-04-03_20_49_29-ComfyUI.png","mode":"100644","type":"blob","sha":"43304322e9bad65a4d0bf5d216e3493d3bf67fc3","size":176158,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/43304322e9bad65a4d0bf5d216e3493d3bf67fc3"},{"path":"docs/images/319121566-05f66385-7568-4b1f-8bbc-11053660b02f.png","mode":"100644","type":"blob","sha":"e749239c1c4ffd5ab29b51695dd8d8b51ed3597f","size":94315,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e749239c1c4ffd5ab29b51695dd8d8b51ed3597f"},{"path":"docs/images/319121636-706b5081-9120-4a29-bd76-901691ada688.png","mode":"100644","type":"blob","sha":"b53ad666ff060d87971f3962e74101f0cb2a5c3f","size":24783,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b53ad666ff060d87971f3962e74101f0cb2a5c3f"},{"path":"example_workflows","mode":"040000","type":"tree","sha":"894251e58277cabf8b1199ce2428966416ff3493","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/894251e58277cabf8b1199ce2428966416ff3493"},{"path":"example_workflows/leapfusion_hunyuuanvideo_i2v_native_testing.json","mode":"100644","type":"blob","sha":"134a83788815d04b5574a807db67eb6e45bf9263","size":20396,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/134a83788815d04b5574a807db67eb6e45bf9263"},{"path":"fonts","mode":"040000","type":"tree","sha":"0a3834f1992ff10f4d4ea1c783ce8db0874c29da","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/0a3834f1992ff10f4d4ea1c783ce8db0874c29da"},{"path":"fonts/FreeMono.ttf","mode":"100644","type":"blob","sha":"7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a","size":343980,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a"},{"path":"fonts/FreeMonoBoldOblique.otf","mode":"100644","type":"blob","sha":"dac575acbd08b6fa36d9aac4acd0b2d7ea140eec","size":237600,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dac575acbd08b6fa36d9aac4acd0b2d7ea140eec"},{"path":"fonts/TTNorms-Black.otf","mode":"100644","type":"blob","sha":"39f96c80af61c25ca8c35b25b3cb21673cb0d037","size":152736,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/39f96c80af61c25ca8c35b25b3cb21673cb0d037"},{"path":"intrinsic_loras","mode":"040000","type":"tree","sha":"55376ee40a826cffd59b40a5f6c2ae16e4b86321","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/55376ee40a826cffd59b40a5f6c2ae16e4b86321"},{"path":"intrinsic_loras/intrinsic_lora_sd15_albedo.safetensors","mode":"100644","type":"blob","sha":"4f34d153e2bac1868d08ac25bf96c5773c22ac4f","size":6416109,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/4f34d153e2bac1868d08ac25bf96c5773c22ac4f"},{"path":"intrinsic_loras/intrinsic_lora_sd15_depth.safetensors","mode":"100644","type":"blob","sha":"34fec4ce0bef3b34975a5713f001829a62ae97ae","size":6416109,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/34fec4ce0bef3b34975a5713f001829a62ae97ae"},{"path":"intrinsic_loras/intrinsic_lora_sd15_normal.safetensors","mode":"100644","type":"blob","sha":"e3ae0479fa74996d6efd9bf7433e87ac4f4caba1","size":6416109,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e3ae0479fa74996d6efd9bf7433e87ac4f4caba1"},{"path":"intrinsic_loras/intrinsic_lora_sd15_shading.safetensors","mode":"100644","type":"blob","sha":"68a0c76fe7d6a394f0177d02e6423b57c2a21d17","size":6416109,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/68a0c76fe7d6a394f0177d02e6423b57c2a21d17"},{"path":"intrinsic_loras/intrinsic_loras.txt","mode":"100644","type":"blob","sha":"62ee933763a8aa9e1b232d228717ac754ab22751","size":103,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/62ee933763a8aa9e1b232d228717ac754ab22751"},{"path":"kjweb_async","mode":"040000","type":"tree","sha":"612b1433e20f4c4e891e8cc7d8b03a0d771aff62","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/612b1433e20f4c4e891e8cc7d8b03a0d771aff62"},{"path":"kjweb_async/marked.min.js","mode":"100644","type":"blob","sha":"2e66c369c388c135cc68d399861a737f4c5e68cd","size":35418,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/2e66c369c388c135cc68d399861a737f4c5e68cd"},{"path":"kjweb_async/protovis.min.js","mode":"100644","type":"blob","sha":"dfb84166521a49e4f7e41539933b101e126bd72f","size":116869,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dfb84166521a49e4f7e41539933b101e126bd72f"},{"path":"kjweb_async/purify.min.js","mode":"100644","type":"blob","sha":"c2f5164618eebcc44b0186f594ccb8092639c670","size":21346,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c2f5164618eebcc44b0186f594ccb8092639c670"},{"path":"kjweb_async/svg-path-properties.min.js","mode":"100644","type":"blob","sha":"88d47e0de4c54f881083164c20045a7e8b621caf","size":26985,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/88d47e0de4c54f881083164c20045a7e8b621caf"},{"path":"nodes","mode":"040000","type":"tree","sha":"4051ef97fe286d622ab5fdac081be3456edda0b7","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/4051ef97fe286d622ab5fdac081be3456edda0b7"},{"path":"nodes/audioscheduler_nodes.py","mode":"100644","type":"blob","sha":"69d0422e7da875298f87fe60a7f6d1494530dca2","size":10708,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/69d0422e7da875298f87fe60a7f6d1494530dca2"},{"path":"nodes/batchcrop_nodes.py","mode":"100644","type":"blob","sha":"61e7446f7567f74421d4b05742cc3a340fec73c9","size":31586,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/61e7446f7567f74421d4b05742cc3a340fec73c9"},{"path":"nodes/curve_nodes.py","mode":"100644","type":"blob","sha":"bfa446abef42db5363d4908bd2aef096dc096d2e","size":69535,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/bfa446abef42db5363d4908bd2aef096dc096d2e"},{"path":"nodes/image_nodes.py","mode":"100644","type":"blob","sha":"20cc0cd0013cf41c87ccfb51fff046fbfa6c639a","size":138829,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/20cc0cd0013cf41c87ccfb51fff046fbfa6c639a"},{"path":"nodes/intrinsic_lora_nodes.py","mode":"100644","type":"blob","sha":"c8f125363836cc7721b4b61d100702594522d389","size":4553,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c8f125363836cc7721b4b61d100702594522d389"},{"path":"nodes/mask_nodes.py","mode":"100644","type":"blob","sha":"ce406cc86d146987e74d46af361c87e7992ee082","size":57562,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/ce406cc86d146987e74d46af361c87e7992ee082"},{"path":"nodes/model_optimization_nodes.py","mode":"100644","type":"blob","sha":"9d7c6cbd56b34d895b279482b263782f97f15431","size":81827,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/9d7c6cbd56b34d895b279482b263782f97f15431"},{"path":"nodes/nodes.py","mode":"100644","type":"blob","sha":"5c837d814616bac458dbbf9e508daf0816267574","size":103549,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/5c837d814616bac458dbbf9e508daf0816267574"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"166946f91c7a48c113bd437bee55a49fbe11eb85","size":552,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/166946f91c7a48c113bd437bee55a49fbe11eb85"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"5bc18ca95b226298cbb88bd4de3307c157e0a88b","size":79,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/5bc18ca95b226298cbb88bd4de3307c157e0a88b"},{"path":"utility","mode":"040000","type":"tree","sha":"840c51ae3eb22cc5a67372ed55f58879d41cdfba","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/840c51ae3eb22cc5a67372ed55f58879d41cdfba"},{"path":"utility/fluid.py","mode":"100644","type":"blob","sha":"c0691987f5249a031ecbb74329ba513d5788b691","size":2917,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c0691987f5249a031ecbb74329ba513d5788b691"},{"path":"utility/magictex.py","mode":"100644","type":"blob","sha":"e6d426f7deb3deb977604dd37581eb4e9fe9e6a9","size":3117,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e6d426f7deb3deb977604dd37581eb4e9fe9e6a9"},{"path":"utility/numerical.py","mode":"100644","type":"blob","sha":"b5b88bc63c45d63d8913e56cbd06eb7ab413fe4f","size":906,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b5b88bc63c45d63d8913e56cbd06eb7ab413fe4f"},{"path":"utility/utility.py","mode":"100644","type":"blob","sha":"f3b5c425922784522791e33c225c29be1e8249e0","size":1369,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f3b5c425922784522791e33c225c29be1e8249e0"},{"path":"web","mode":"040000","type":"tree","sha":"7cca4c8d14bd16b47103af1d9e87f99e8371884b","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/7cca4c8d14bd16b47103af1d9e87f99e8371884b"},{"path":"web/green.png","mode":"100644","type":"blob","sha":"900964e4b3907145fe1e75a5b58473567450e16d","size":2340,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/900964e4b3907145fe1e75a5b58473567450e16d"},{"path":"web/js","mode":"040000","type":"tree","sha":"fa00f9614bfe10a74bc4eb3c242f240b7b0d5813","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/fa00f9614bfe10a74bc4eb3c242f240b7b0d5813"},{"path":"web/js/appearance.js","mode":"100644","type":"blob","sha":"d90b4aa34d4c52b22a4411194100972c83eed88d","size":875,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/d90b4aa34d4c52b22a4411194100972c83eed88d"},{"path":"web/js/browserstatus.js","mode":"100644","type":"blob","sha":"45abafb163481d9d760c8b273aad4d2a00db1e92","size":1912,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/45abafb163481d9d760c8b273aad4d2a00db1e92"},{"path":"web/js/contextmenu.js","mode":"100644","type":"blob","sha":"8485658ef819722280160b124a2acf39353bb96d","size":4103,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/8485658ef819722280160b124a2acf39353bb96d"},{"path":"web/js/fast_preview.js","mode":"100644","type":"blob","sha":"822c1f745ba4e895364664f7dbed3d225f0430b2","size":2925,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/822c1f745ba4e895364664f7dbed3d225f0430b2"},{"path":"web/js/help_popup.js","mode":"100644","type":"blob","sha":"c4734befd7726d6190b246e66140e99dfb9f7e65","size":10278,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c4734befd7726d6190b246e66140e99dfb9f7e65"},{"path":"web/js/jsnodes.js","mode":"100644","type":"blob","sha":"d4359846d1c9f4b44267f17207547fd909e3e50b","size":15230,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/d4359846d1c9f4b44267f17207547fd909e3e50b"},{"path":"web/js/point_editor.js","mode":"100644","type":"blob","sha":"6baa10830d5cba754eaa440685fdabc0c9d9f8e8","size":25690,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/6baa10830d5cba754eaa440685fdabc0c9d9f8e8"},{"path":"web/js/setgetnodes.js","mode":"100644","type":"blob","sha":"c4531881378c51128b1885b212aabc70d2a8c602","size":15812,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c4531881378c51128b1885b212aabc70d2a8c602"},{"path":"web/js/spline_editor.js","mode":"100644","type":"blob","sha":"cc095990a7ab48b4ea930563e0755982ddc39cf5","size":48944,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/cc095990a7ab48b4ea930563e0755982ddc39cf5"},{"path":"web/red.png","mode":"100644","type":"blob","sha":"4352c118b2c5fa6f33edc4d99a5e4d22649ff827","size":2334,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/4352c118b2c5fa6f33edc4d99a5e4d22649ff827"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/kj__LICENSE b/docs/hel-892/resize-compare-reference/kj__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/resize-compare-reference/kj__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/docs/hel-892/resize-compare-reference/kj____init__.py b/docs/hel-892/resize-compare-reference/kj____init__.py new file mode 100644 index 00000000..fce7a50f --- /dev/null +++ b/docs/hel-892/resize-compare-reference/kj____init__.py @@ -0,0 +1,235 @@ +from .nodes.nodes import * +from .nodes.curve_nodes import * +from .nodes.batchcrop_nodes import * +from .nodes.audioscheduler_nodes import * +from .nodes.image_nodes import * +from .nodes.intrinsic_lora_nodes import * +from .nodes.mask_nodes import * +from .nodes.model_optimization_nodes import * +NODE_CONFIG = { + #constants + "BOOLConstant": {"class": BOOLConstant, "name": "BOOL Constant"}, + "INTConstant": {"class": INTConstant, "name": "INT Constant"}, + "FloatConstant": {"class": FloatConstant, "name": "Float Constant"}, + "StringConstant": {"class": StringConstant, "name": "String Constant"}, + "StringConstantMultiline": {"class": StringConstantMultiline, "name": "String Constant Multiline"}, + #conditioning + "ConditioningMultiCombine": {"class": ConditioningMultiCombine, "name": "Conditioning Multi Combine"}, + "ConditioningSetMaskAndCombine": {"class": ConditioningSetMaskAndCombine, "name": "ConditioningSetMaskAndCombine"}, + "ConditioningSetMaskAndCombine3": {"class": ConditioningSetMaskAndCombine3, "name": "ConditioningSetMaskAndCombine3"}, + "ConditioningSetMaskAndCombine4": {"class": ConditioningSetMaskAndCombine4, "name": "ConditioningSetMaskAndCombine4"}, + "ConditioningSetMaskAndCombine5": {"class": ConditioningSetMaskAndCombine5, "name": "ConditioningSetMaskAndCombine5"}, + "CondPassThrough": {"class": CondPassThrough}, + #masking + "DownloadAndLoadCLIPSeg": {"class": DownloadAndLoadCLIPSeg, "name": "(Down)load CLIPSeg"}, + "BatchCLIPSeg": {"class": BatchCLIPSeg, "name": "Batch CLIPSeg"}, + "ColorToMask": {"class": ColorToMask, "name": "Color To Mask"}, + "CreateGradientMask": {"class": CreateGradientMask, "name": "Create Gradient Mask"}, + "CreateTextMask": {"class": CreateTextMask, "name": "Create Text Mask"}, + "CreateAudioMask": {"class": CreateAudioMask, "name": "Create Audio Mask"}, + "CreateFadeMask": {"class": CreateFadeMask, "name": "Create Fade Mask"}, + "CreateFadeMaskAdvanced": {"class": CreateFadeMaskAdvanced, "name": "Create Fade Mask Advanced"}, + "CreateFluidMask": {"class": CreateFluidMask, "name": "Create Fluid Mask"}, + "CreateShapeMask": {"class": CreateShapeMask, "name": "Create Shape Mask"}, + "CreateVoronoiMask": {"class": CreateVoronoiMask, "name": "Create Voronoi Mask"}, + "CreateMagicMask": {"class": CreateMagicMask, "name": "Create Magic Mask"}, + "GetMaskSizeAndCount": {"class": GetMaskSizeAndCount, "name": "Get Mask Size & Count"}, + "GrowMaskWithBlur": {"class": GrowMaskWithBlur, "name": "Grow Mask With Blur"}, + "MaskBatchMulti": {"class": MaskBatchMulti, "name": "Mask Batch Multi"}, + "OffsetMask": {"class": OffsetMask, "name": "Offset Mask"}, + "RemapMaskRange": {"class": RemapMaskRange, "name": "Remap Mask Range"}, + "ResizeMask": {"class": ResizeMask, "name": "Resize Mask"}, + "RoundMask": {"class": RoundMask, "name": "Round Mask"}, + "SeparateMasks": {"class": SeparateMasks, "name": "Separate Masks"}, + #images + "AddLabel": {"class": AddLabel, "name": "Add Label"}, + "ColorMatch": {"class": ColorMatch, "name": "Color Match"}, + "ImageTensorList": {"class": ImageTensorList, "name": "Image Tensor List"}, + "CrossFadeImages": {"class": CrossFadeImages, "name": "Cross Fade Images"}, + "CrossFadeImagesMulti": {"class": CrossFadeImagesMulti, "name": "Cross Fade Images Multi"}, + "GetImagesFromBatchIndexed": {"class": GetImagesFromBatchIndexed, "name": "Get Images From Batch Indexed"}, + "GetImageRangeFromBatch": {"class": GetImageRangeFromBatch, "name": "Get Image or Mask Range From Batch"}, + "GetLatentRangeFromBatch": {"class": GetLatentRangeFromBatch, "name": "Get Latent Range From Batch"}, + "GetImageSizeAndCount": {"class": GetImageSizeAndCount, "name": "Get Image Size & Count"}, + "FastPreview": {"class": FastPreview, "name": "Fast Preview"}, + "ImageBatchFilter": {"class": ImageBatchFilter, "name": "Image Batch Filter"}, + "ImageAndMaskPreview": {"class": ImageAndMaskPreview}, + "ImageAddMulti": {"class": ImageAddMulti, "name": "Image Add Multi"}, + "ImageBatchMulti": {"class": ImageBatchMulti, "name": "Image Batch Multi"}, + "ImageBatchRepeatInterleaving": {"class": ImageBatchRepeatInterleaving}, + "ImageBatchTestPattern": {"class": ImageBatchTestPattern, "name": "Image Batch Test Pattern"}, + "ImageConcanate": {"class": ImageConcanate, "name": "Image Concatenate"}, + "ImageConcatFromBatch": {"class": ImageConcatFromBatch, "name": "Image Concatenate From Batch"}, + "ImageConcatMulti": {"class": ImageConcatMulti, "name": "Image Concatenate Multi"}, + "ImageCropByMask": {"class": ImageCropByMask, "name": "Image Crop By Mask"}, + "ImageCropByMaskAndResize": {"class": ImageCropByMaskAndResize, "name": "Image Crop By Mask And Resize"}, + "ImageCropByMaskBatch": {"class": ImageCropByMaskBatch, "name": "Image Crop By Mask Batch"}, + "ImageUncropByMask": {"class": ImageUncropByMask, "name": "Image Uncrop By Mask"}, + "ImageGrabPIL": {"class": ImageGrabPIL, "name": "Image Grab PIL"}, + "ImageGridComposite2x2": {"class": ImageGridComposite2x2, "name": "Image Grid Composite 2x2"}, + "ImageGridComposite3x3": {"class": ImageGridComposite3x3, "name": "Image Grid Composite 3x3"}, + "ImageGridtoBatch": {"class": ImageGridtoBatch, "name": "Image Grid To Batch"}, + "ImageNoiseAugmentation": {"class": ImageNoiseAugmentation, "name": "Image Noise Augmentation"}, + "ImageNormalize_Neg1_To_1": {"class": ImageNormalize_Neg1_To_1, "name": "Image Normalize -1 to 1"}, + "ImagePass": {"class": ImagePass}, + "ImagePadKJ": {"class": ImagePadKJ, "name": "ImagePad KJ"}, + "ImagePadForOutpaintMasked": {"class": ImagePadForOutpaintMasked, "name": "Image Pad For Outpaint Masked"}, + "ImagePadForOutpaintTargetSize": {"class": ImagePadForOutpaintTargetSize, "name": "Image Pad For Outpaint Target Size"}, + "ImagePrepForICLora": {"class": ImagePrepForICLora, "name": "Image Prep For ICLora"}, + "ImageResizeKJ": {"class": ImageResizeKJ, "name": "Resize Image (deprecated)"}, + "ImageResizeKJv2": {"class": ImageResizeKJv2, "name": "Resize Image v2"}, + "ImageUpscaleWithModelBatched": {"class": ImageUpscaleWithModelBatched, "name": "Image Upscale With Model Batched"}, + "InsertImagesToBatchIndexed": {"class": InsertImagesToBatchIndexed, "name": "Insert Images To Batch Indexed"}, + "InsertLatentToIndexed": {"class": InsertLatentToIndex, "name": "Insert Latent To Index"}, + "LoadAndResizeImage": {"class": LoadAndResizeImage, "name": "Load & Resize Image"}, + "LoadImagesFromFolderKJ": {"class": LoadImagesFromFolderKJ, "name": "Load Images From Folder (KJ)"}, + "MergeImageChannels": {"class": MergeImageChannels, "name": "Merge Image Channels"}, + "PadImageBatchInterleaved": {"class": PadImageBatchInterleaved, "name": "Pad Image Batch Interleaved"}, + "PreviewAnimation": {"class": PreviewAnimation, "name": "Preview Animation"}, + "RemapImageRange": {"class": RemapImageRange, "name": "Remap Image Range"}, + "ReverseImageBatch": {"class": ReverseImageBatch, "name": "Reverse Image Batch"}, + "ReplaceImagesInBatch": {"class": ReplaceImagesInBatch, "name": "Replace Images In Batch"}, + "SaveImageWithAlpha": {"class": SaveImageWithAlpha, "name": "Save Image With Alpha"}, + "SaveImageKJ": {"class": SaveImageKJ, "name": "Save Image KJ"}, + "ShuffleImageBatch": {"class": ShuffleImageBatch, "name": "Shuffle Image Batch"}, + "SplitImageChannels": {"class": SplitImageChannels, "name": "Split Image Channels"}, + "TransitionImagesMulti": {"class": TransitionImagesMulti, "name": "Transition Images Multi"}, + "TransitionImagesInBatch": {"class": TransitionImagesInBatch, "name": "Transition Images In Batch"}, + #batch cropping + "BatchCropFromMask": {"class": BatchCropFromMask, "name": "Batch Crop From Mask"}, + "BatchCropFromMaskAdvanced": {"class": BatchCropFromMaskAdvanced, "name": "Batch Crop From Mask Advanced"}, + "FilterZeroMasksAndCorrespondingImages": {"class": FilterZeroMasksAndCorrespondingImages}, + "InsertImageBatchByIndexes": {"class": InsertImageBatchByIndexes, "name": "Insert Image Batch By Indexes"}, + "BatchUncrop": {"class": BatchUncrop, "name": "Batch Uncrop"}, + "BatchUncropAdvanced": {"class": BatchUncropAdvanced, "name": "Batch Uncrop Advanced"}, + "SplitBboxes": {"class": SplitBboxes, "name": "Split Bboxes"}, + "BboxToInt": {"class": BboxToInt, "name": "Bbox To Int"}, + "BboxVisualize": {"class": BboxVisualize, "name": "Bbox Visualize"}, + #noise + "GenerateNoise": {"class": GenerateNoise, "name": "Generate Noise"}, + "FlipSigmasAdjusted": {"class": FlipSigmasAdjusted, "name": "Flip Sigmas Adjusted"}, + "InjectNoiseToLatent": {"class": InjectNoiseToLatent, "name": "Inject Noise To Latent"}, + "CustomSigmas": {"class": CustomSigmas, "name": "Custom Sigmas"}, + #utility + "StringToFloatList": {"class": StringToFloatList, "name": "String to Float List"}, + "WidgetToString": {"class": WidgetToString, "name": "Widget To String"}, + "SaveStringKJ": {"class": SaveStringKJ, "name": "Save String KJ"}, + "DummyOut": {"class": DummyOut, "name": "Dummy Out"}, + "GetLatentsFromBatchIndexed": {"class": GetLatentsFromBatchIndexed, "name": "Get Latents From Batch Indexed"}, + "ScaleBatchPromptSchedule": {"class": ScaleBatchPromptSchedule, "name": "Scale Batch Prompt Schedule"}, + "CameraPoseVisualizer": {"class": CameraPoseVisualizer, "name": "Camera Pose Visualizer"}, + "AppendStringsToList": {"class": AppendStringsToList, "name": "Append Strings To List"}, + "JoinStrings": {"class": JoinStrings, "name": "Join Strings"}, + "JoinStringMulti": {"class": JoinStringMulti, "name": "Join String Multi"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "Sleep": {"class": Sleep, "name": "Sleep"}, + "VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "EmptyLatentImagePresets": {"class": EmptyLatentImagePresets, "name": "Empty Latent Image Presets"}, + "EmptyLatentImageCustomPresets": {"class": EmptyLatentImageCustomPresets, "name": "Empty Latent Image Custom Presets"}, + "ModelPassThrough": {"class": ModelPassThrough, "name": "ModelPass"}, + "ModelSaveKJ": {"class": ModelSaveKJ, "name": "Model Save KJ"}, + "SetShakkerLabsUnionControlNetType": {"class": SetShakkerLabsUnionControlNetType, "name": "Set Shakker Labs Union ControlNet Type"}, + "StyleModelApplyAdvanced": {"class": StyleModelApplyAdvanced, "name": "Style Model Apply Advanced"}, + #audioscheduler stuff + "NormalizedAmplitudeToMask": {"class": NormalizedAmplitudeToMask}, + "NormalizedAmplitudeToFloatList": {"class": NormalizedAmplitudeToFloatList}, + "OffsetMaskByNormalizedAmplitude": {"class": OffsetMaskByNormalizedAmplitude}, + "ImageTransformByNormalizedAmplitude": {"class": ImageTransformByNormalizedAmplitude}, + "AudioConcatenate": {"class": AudioConcatenate}, + #curve nodes + "SplineEditor": {"class": SplineEditor, "name": "Spline Editor"}, + "CreateShapeImageOnPath": {"class": CreateShapeImageOnPath, "name": "Create Shape Image On Path"}, + "CreateShapeMaskOnPath": {"class": CreateShapeMaskOnPath, "name": "Create Shape Mask On Path"}, + "CreateTextOnPath": {"class": CreateTextOnPath, "name": "Create Text On Path"}, + "CreateGradientFromCoords": {"class": CreateGradientFromCoords, "name": "Create Gradient From Coords"}, + "CutAndDragOnPath": {"class": CutAndDragOnPath, "name": "Cut And Drag On Path"}, + "GradientToFloat": {"class": GradientToFloat, "name": "Gradient To Float"}, + "WeightScheduleExtend": {"class": WeightScheduleExtend, "name": "Weight Schedule Extend"}, + "MaskOrImageToWeight": {"class": MaskOrImageToWeight, "name": "Mask Or Image To Weight"}, + "WeightScheduleConvert": {"class": WeightScheduleConvert, "name": "Weight Schedule Convert"}, + "FloatToMask": {"class": FloatToMask, "name": "Float To Mask"}, + "FloatToSigmas": {"class": FloatToSigmas, "name": "Float To Sigmas"}, + "SigmasToFloat": {"class": SigmasToFloat, "name": "Sigmas To Float"}, + "PlotCoordinates": {"class": PlotCoordinates, "name": "Plot Coordinates"}, + "InterpolateCoords": {"class": InterpolateCoords, "name": "Interpolate Coords"}, + "PointsEditor": {"class": PointsEditor, "name": "Points Editor"}, + #experimental + "SoundReactive": {"class": SoundReactive, "name": "Sound Reactive"}, + "StableZero123_BatchSchedule": {"class": StableZero123_BatchSchedule, "name": "Stable Zero123 Batch Schedule"}, + "SV3D_BatchSchedule": {"class": SV3D_BatchSchedule, "name": "SV3D Batch Schedule"}, + "LoadResAdapterNormalization": {"class": LoadResAdapterNormalization}, + "Superprompt": {"class": Superprompt, "name": "Superprompt"}, + "GLIGENTextBoxApplyBatchCoords": {"class": GLIGENTextBoxApplyBatchCoords}, + "Intrinsic_lora_sampling": {"class": Intrinsic_lora_sampling, "name": "Intrinsic Lora Sampling"}, + "CheckpointPerturbWeights": {"class": CheckpointPerturbWeights, "name": "CheckpointPerturbWeights"}, + "Screencap_mss": {"class": Screencap_mss, "name": "Screencap mss"}, + "WebcamCaptureCV2": {"class": WebcamCaptureCV2, "name": "Webcam Capture CV2"}, + "DifferentialDiffusionAdvanced": {"class": DifferentialDiffusionAdvanced, "name": "Differential Diffusion Advanced"}, + "DiTBlockLoraLoader": {"class": DiTBlockLoraLoader, "name": "DiT Block Lora Loader"}, + "FluxBlockLoraSelect": {"class": FluxBlockLoraSelect, "name": "Flux Block Lora Select"}, + "HunyuanVideoBlockLoraSelect": {"class": HunyuanVideoBlockLoraSelect, "name": "Hunyuan Video Block Lora Select"}, + "Wan21BlockLoraSelect": {"class": Wan21BlockLoraSelect, "name": "Wan21 Block Lora Select"}, + "CustomControlNetWeightsFluxFromList": {"class": CustomControlNetWeightsFluxFromList, "name": "Custom ControlNet Weights Flux From List"}, + "CheckpointLoaderKJ": {"class": CheckpointLoaderKJ, "name": "CheckpointLoaderKJ"}, + "DiffusionModelLoaderKJ": {"class": DiffusionModelLoaderKJ, "name": "Diffusion Model Loader KJ"}, + "TorchCompileModelFluxAdvanced": {"class": TorchCompileModelFluxAdvanced, "name": "TorchCompileModelFluxAdvanced"}, + "TorchCompileModelFluxAdvancedV2": {"class": TorchCompileModelFluxAdvancedV2, "name": "TorchCompileModelFluxAdvancedV2"}, + "TorchCompileModelHyVideo": {"class": TorchCompileModelHyVideo, "name": "TorchCompileModelHyVideo"}, + "TorchCompileVAE": {"class": TorchCompileVAE, "name": "TorchCompileVAE"}, + "TorchCompileControlNet": {"class": TorchCompileControlNet, "name": "TorchCompileControlNet"}, + "PatchModelPatcherOrder": {"class": PatchModelPatcherOrder, "name": "Patch Model Patcher Order"}, + "TorchCompileLTXModel": {"class": TorchCompileLTXModel, "name": "TorchCompileLTXModel"}, + "TorchCompileCosmosModel": {"class": TorchCompileCosmosModel, "name": "TorchCompileCosmosModel"}, + "TorchCompileModelWanVideo": {"class": TorchCompileModelWanVideo, "name": "TorchCompileModelWanVideo"}, + "TorchCompileModelWanVideoV2": {"class": TorchCompileModelWanVideoV2, "name": "TorchCompileModelWanVideoV2"}, + "PathchSageAttentionKJ": {"class": PathchSageAttentionKJ, "name": "Patch Sage Attention KJ"}, + "LeapfusionHunyuanI2VPatcher": {"class": LeapfusionHunyuanI2V, "name": "Leapfusion Hunyuan I2V Patcher"}, + "VAELoaderKJ": {"class": VAELoaderKJ, "name": "VAELoader KJ"}, + "ScheduledCFGGuidance": {"class": ScheduledCFGGuidance, "name": "Scheduled CFG Guidance"}, + "ApplyRifleXRoPE_HunuyanVideo": {"class": ApplyRifleXRoPE_HunuyanVideo, "name": "Apply RifleXRoPE HunuyanVideo"}, + "ApplyRifleXRoPE_WanVideo": {"class": ApplyRifleXRoPE_WanVideo, "name": "Apply RifleXRoPE WanVideo"}, + "WanVideoTeaCacheKJ": {"class": WanVideoTeaCacheKJ, "name": "WanVideo Tea Cache (native)"}, + "WanVideoEnhanceAVideoKJ": {"class": WanVideoEnhanceAVideoKJ, "name": "WanVideo Enhance A Video (native)"}, + "SkipLayerGuidanceWanVideo": {"class": SkipLayerGuidanceWanVideo, "name": "Skip Layer Guidance WanVideo"}, + "TimerNodeKJ": {"class": TimerNodeKJ, "name": "Timer Node KJ"}, + "HunyuanVideoEncodeKeyframesToCond": {"class": HunyuanVideoEncodeKeyframesToCond, "name": "HunyuanVideo Encode Keyframes To Cond"}, + "CFGZeroStarAndInit": {"class": CFGZeroStarAndInit, "name": "CFG Zero Star/Init"}, + "ModelPatchTorchSettings": {"class": ModelPatchTorchSettings, "name": "Model Patch Torch Settings"}, + "WanVideoNAG": {"class": WanVideoNAG, "name": "WanVideoNAG"}, + + #instance diffusion + "CreateInstanceDiffusionTracking": {"class": CreateInstanceDiffusionTracking}, + "AppendInstanceDiffusionTracking": {"class": AppendInstanceDiffusionTracking}, + "DrawInstanceDiffusionTracking": {"class": DrawInstanceDiffusionTracking}, +} + +def generate_node_mappings(node_config): + node_class_mappings = {} + node_display_name_mappings = {} + + for node_name, node_info in node_config.items(): + node_class_mappings[node_name] = node_info["class"] + node_display_name_mappings[node_name] = node_info.get("name", node_info["class"].__name__) + + return node_class_mappings, node_display_name_mappings + +NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = generate_node_mappings(NODE_CONFIG) + +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] + +WEB_DIRECTORY = "./web" + +from aiohttp import web +from server import PromptServer +from pathlib import Path + +if hasattr(PromptServer, "instance"): + try: + # NOTE: we add an extra static path to avoid comfy mechanism + # that loads every script in web. + PromptServer.instance.app.add_routes( + [web.static("/kjweb_async", (Path(__file__).parent.absolute() / "kjweb_async").as_posix())] + ) + except: + pass \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/kj__nodes__image_nodes.py b/docs/hel-892/resize-compare-reference/kj__nodes__image_nodes.py new file mode 100644 index 00000000..20cc0cd0 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/kj__nodes__image_nodes.py @@ -0,0 +1,3523 @@ +import numpy as np +import time +import torch +import torch.nn.functional as F +import torchvision.transforms as T +import io +import base64 +import random +import math +import os +import re +import json +from PIL.PngImagePlugin import PngInfo +try: + import cv2 +except: + print("OpenCV not installed") + pass +from PIL import ImageGrab, ImageDraw, ImageFont, Image, ImageSequence, ImageOps + +from nodes import MAX_RESOLUTION, SaveImage +from comfy_extras.nodes_mask import ImageCompositeMasked +from comfy.cli_args import args +from comfy.utils import ProgressBar, common_upscale +import folder_paths +from comfy import model_management + +script_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +class ImagePass: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + }, + "optional": { + "image": ("IMAGE",), + }, + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "passthrough" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Passes the image through without modifying it. +""" + + def passthrough(self, image=None): + return image, + +class ColorMatch: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image_ref": ("IMAGE",), + "image_target": ("IMAGE",), + "method": ( + [ + 'mkl', + 'hm', + 'reinhard', + 'mvgd', + 'hm-mvgd-hm', + 'hm-mkl-hm', + ], { + "default": 'mkl' + }), + }, + "optional": { + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + } + } + + CATEGORY = "KJNodes/image" + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "colormatch" + DESCRIPTION = """ +color-matcher enables color transfer across images which comes in handy for automatic +color-grading of photographs, paintings and film sequences as well as light-field +and stopmotion corrections. + +The methods behind the mappings are based on the approach from Reinhard et al., +the Monge-Kantorovich Linearization (MKL) as proposed by Pitie et al. and our analytical solution +to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with classical histogram +matching. As shown below our HM-MVGD-HM compound outperforms existing methods. +https://github.com/hahnec/color-matcher/ + +""" + + def colormatch(self, image_ref, image_target, method, strength=1.0): + try: + from color_matcher import ColorMatcher + except: + raise Exception("Can't import color-matcher, did you install requirements.txt? Manual install: pip install color-matcher") + cm = ColorMatcher() + image_ref = image_ref.cpu() + image_target = image_target.cpu() + batch_size = image_target.size(0) + out = [] + images_target = image_target.squeeze() + images_ref = image_ref.squeeze() + + image_ref_np = images_ref.numpy() + images_target_np = images_target.numpy() + + if image_ref.size(0) > 1 and image_ref.size(0) != batch_size: + raise ValueError("ColorMatch: Use either single reference image or a matching batch of reference images.") + + for i in range(batch_size): + image_target_np = images_target_np if batch_size == 1 else images_target[i].numpy() + image_ref_np_i = image_ref_np if image_ref.size(0) == 1 else images_ref[i].numpy() + try: + image_result = cm.transfer(src=image_target_np, ref=image_ref_np_i, method=method) + except BaseException as e: + print(f"Error occurred during transfer: {e}") + break + # Apply the strength multiplier + image_result = image_target_np + strength * (image_result - image_target_np) + out.append(torch.from_numpy(image_result)) + + out = torch.stack(out, dim=0).to(torch.float32) + out.clamp_(0, 1) + return (out,) + +class SaveImageWithAlpha: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + + @classmethod + def INPUT_TYPES(s): + return {"required": + {"images": ("IMAGE", ), + "mask": ("MASK", ), + "filename_prefix": ("STRING", {"default": "ComfyUI"})}, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + + RETURN_TYPES = () + FUNCTION = "save_images_alpha" + OUTPUT_NODE = True + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Saves an image and mask as .PNG with the mask as the alpha channel. +""" + + def save_images_alpha(self, images, mask, filename_prefix="ComfyUI_image_with_alpha", prompt=None, extra_pnginfo=None): + from PIL.PngImagePlugin import PngInfo + filename_prefix += self.prefix_append + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + results = list() + if mask.dtype == torch.float16: + mask = mask.to(torch.float32) + def file_counter(): + max_counter = 0 + # Loop through the existing files + for existing_file in os.listdir(full_output_folder): + # Check if the file matches the expected format + match = re.fullmatch(fr"{filename}_(\d+)_?\.[a-zA-Z0-9]+", existing_file) + if match: + # Extract the numeric portion of the filename + file_counter = int(match.group(1)) + # Update the maximum counter value if necessary + if file_counter > max_counter: + max_counter = file_counter + return max_counter + + for image, alpha in zip(images, mask): + i = 255. * image.cpu().numpy() + a = 255. * alpha.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + + # Resize the mask to match the image size + a_resized = Image.fromarray(a).resize(img.size, Image.LANCZOS) + a_resized = np.clip(a_resized, 0, 255).astype(np.uint8) + img.putalpha(Image.fromarray(a_resized, mode='L')) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + # Increment the counter by 1 to get the next available value + counter = file_counter() + 1 + file = f"{filename}_{counter:05}.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=4) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + + return { "ui": { "images": results } } + +class ImageConcanate: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "direction": ( + [ 'right', + 'down', + 'left', + 'up', + ], + { + "default": 'right' + }), + "match_image_size": ("BOOLEAN", {"default": True}), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concatenate" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the image2 to image1 in the specified direction. +""" + + def concatenate(self, image1, image2, direction, match_image_size, first_image_shape=None): + # Check if the batch sizes are different + batch_size1 = image1.shape[0] + batch_size2 = image2.shape[0] + + if batch_size1 != batch_size2: + # Calculate the number of repetitions needed + max_batch_size = max(batch_size1, batch_size2) + repeats1 = max_batch_size - batch_size1 + repeats2 = max_batch_size - batch_size2 + + # Repeat the last image to match the largest batch size + if repeats1 > 0: + last_image1 = image1[-1].unsqueeze(0).repeat(repeats1, 1, 1, 1) + image1 = torch.cat([image1.clone(), last_image1], dim=0) + if repeats2 > 0: + last_image2 = image2[-1].unsqueeze(0).repeat(repeats2, 1, 1, 1) + image2 = torch.cat([image2.clone(), last_image2], dim=0) + + if match_image_size: + # Use first_image_shape if provided; otherwise, default to image1's shape + target_shape = first_image_shape if first_image_shape is not None else image1.shape + + original_height = image2.shape[1] + original_width = image2.shape[2] + original_aspect_ratio = original_width / original_height + + if direction in ['left', 'right']: + # Match the height and adjust the width to preserve aspect ratio + target_height = target_shape[1] # B, H, W, C format + target_width = int(target_height * original_aspect_ratio) + elif direction in ['up', 'down']: + # Match the width and adjust the height to preserve aspect ratio + target_width = target_shape[2] # B, H, W, C format + target_height = int(target_width / original_aspect_ratio) + + # Adjust image2 to the expected format for common_upscale + image2_for_upscale = image2.movedim(-1, 1) # Move C to the second position (B, C, H, W) + + # Resize image2 to match the target size while preserving aspect ratio + image2_resized = common_upscale(image2_for_upscale, target_width, target_height, "lanczos", "disabled") + + # Adjust image2 back to the original format (B, H, W, C) after resizing + image2_resized = image2_resized.movedim(1, -1) + else: + image2_resized = image2 + + # Ensure both images have the same number of channels + channels_image1 = image1.shape[-1] + channels_image2 = image2_resized.shape[-1] + + if channels_image1 != channels_image2: + if channels_image1 < channels_image2: + # Add alpha channel to image1 if image2 has it + alpha_channel = torch.ones((*image1.shape[:-1], channels_image2 - channels_image1), device=image1.device) + image1 = torch.cat((image1, alpha_channel), dim=-1) + else: + # Add alpha channel to image2 if image1 has it + alpha_channel = torch.ones((*image2_resized.shape[:-1], channels_image1 - channels_image2), device=image2_resized.device) + image2_resized = torch.cat((image2_resized, alpha_channel), dim=-1) + + + # Concatenate based on the specified direction + if direction == 'right': + concatenated_image = torch.cat((image1, image2_resized), dim=2) # Concatenate along width + elif direction == 'down': + concatenated_image = torch.cat((image1, image2_resized), dim=1) # Concatenate along height + elif direction == 'left': + concatenated_image = torch.cat((image2_resized, image1), dim=2) # Concatenate along width + elif direction == 'up': + concatenated_image = torch.cat((image2_resized, image1), dim=1) # Concatenate along height + return concatenated_image, + +import torch # Make sure you have PyTorch installed + +class ImageConcatFromBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "images": ("IMAGE",), + "num_columns": ("INT", {"default": 3, "min": 1, "max": 255, "step": 1}), + "match_image_size": ("BOOLEAN", {"default": False}), + "max_resolution": ("INT", {"default": 4096}), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concat" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ + Concatenates images from a batch into a grid with a specified number of columns. + """ + + def concat(self, images, num_columns, match_image_size, max_resolution): + # Assuming images is a batch of images (B, H, W, C) + batch_size, height, width, channels = images.shape + num_rows = (batch_size + num_columns - 1) // num_columns # Calculate number of rows + + print(f"Initial dimensions: batch_size={batch_size}, height={height}, width={width}, channels={channels}") + print(f"num_rows={num_rows}, num_columns={num_columns}") + + if match_image_size: + target_shape = images[0].shape + + resized_images = [] + for image in images: + original_height = image.shape[0] + original_width = image.shape[1] + original_aspect_ratio = original_width / original_height + + if original_aspect_ratio > 1: + target_height = target_shape[0] + target_width = int(target_height * original_aspect_ratio) + else: + target_width = target_shape[1] + target_height = int(target_width / original_aspect_ratio) + + print(f"Resizing image from ({original_height}, {original_width}) to ({target_height}, {target_width})") + + # Resize the image to match the target size while preserving aspect ratio + resized_image = common_upscale(image.movedim(-1, 0), target_width, target_height, "lanczos", "disabled") + resized_image = resized_image.movedim(0, -1) # Move channels back to the last dimension + resized_images.append(resized_image) + + # Convert the list of resized images back to a tensor + images = torch.stack(resized_images) + + height, width = target_shape[:2] # Update height and width + + # Initialize an empty grid + grid_height = num_rows * height + grid_width = num_columns * width + + print(f"Grid dimensions before scaling: grid_height={grid_height}, grid_width={grid_width}") + + # Original scale factor calculation remains unchanged + scale_factor = min(max_resolution / grid_height, max_resolution / grid_width, 1.0) + + # Apply scale factor to height and width + scaled_height = height * scale_factor + scaled_width = width * scale_factor + + # Round scaled dimensions to the nearest number divisible by 8 + height = max(1, int(round(scaled_height / 8) * 8)) + width = max(1, int(round(scaled_width / 8) * 8)) + + if abs(scaled_height - height) > 4: + height = max(1, int(round((scaled_height + 4) / 8) * 8)) + if abs(scaled_width - width) > 4: + width = max(1, int(round((scaled_width + 4) / 8) * 8)) + + # Recalculate grid dimensions with adjusted height and width + grid_height = num_rows * height + grid_width = num_columns * width + print(f"Grid dimensions after scaling: grid_height={grid_height}, grid_width={grid_width}") + print(f"Final image dimensions: height={height}, width={width}") + + grid = torch.zeros((grid_height, grid_width, channels), dtype=images.dtype) + + for idx, image in enumerate(images): + resized_image = torch.nn.functional.interpolate(image.unsqueeze(0).permute(0, 3, 1, 2), size=(height, width), mode="bilinear").squeeze().permute(1, 2, 0) + row = idx // num_columns + col = idx % num_columns + grid[row*height:(row+1)*height, col*width:(col+1)*width, :] = resized_image + + return grid.unsqueeze(0), + + +class ImageGridComposite2x2: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "image3": ("IMAGE",), + "image4": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "compositegrid" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the 4 input images into a 2x2 grid. +""" + + def compositegrid(self, image1, image2, image3, image4): + top_row = torch.cat((image1, image2), dim=2) + bottom_row = torch.cat((image3, image4), dim=2) + grid = torch.cat((top_row, bottom_row), dim=1) + return (grid,) + +class ImageGridComposite3x3: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "image3": ("IMAGE",), + "image4": ("IMAGE",), + "image5": ("IMAGE",), + "image6": ("IMAGE",), + "image7": ("IMAGE",), + "image8": ("IMAGE",), + "image9": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "compositegrid" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the 9 input images into a 3x3 grid. +""" + + def compositegrid(self, image1, image2, image3, image4, image5, image6, image7, image8, image9): + top_row = torch.cat((image1, image2, image3), dim=2) + mid_row = torch.cat((image4, image5, image6), dim=2) + bottom_row = torch.cat((image7, image8, image9), dim=2) + grid = torch.cat((top_row, mid_row, bottom_row), dim=1) + return (grid,) + +class ImageBatchTestPattern: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "batch_size": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "start_from": ("INT", {"default": 0,"min": 0, "max": 255, "step": 1}), + "text_x": ("INT", {"default": 256,"min": 0, "max": 4096, "step": 1}), + "text_y": ("INT", {"default": 256,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "font": (folder_paths.get_filename_list("kjnodes_fonts"), ), + "font_size": ("INT", {"default": 255,"min": 8, "max": 4096, "step": 1}), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "generatetestpattern" + CATEGORY = "KJNodes/text" + + def generatetestpattern(self, batch_size, font, font_size, start_from, width, height, text_x, text_y): + out = [] + # Generate the sequential numbers for each image + numbers = np.arange(start_from, start_from + batch_size) + font_path = folder_paths.get_full_path("kjnodes_fonts", font) + + for number in numbers: + # Create a black image with the number as a random color text + image = Image.new("RGB", (width, height), color='black') + draw = ImageDraw.Draw(image) + + # Generate a random color for the text + font_color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) + + font = ImageFont.truetype(font_path, font_size) + + # Get the size of the text and position it in the center + text = str(number) + + try: + draw.text((text_x, text_y), text, font=font, fill=font_color, features=['-liga']) + except: + draw.text((text_x, text_y), text, font=font, fill=font_color,) + + # Convert the image to a numpy array and normalize the pixel values + image_np = np.array(image).astype(np.float32) / 255.0 + image_tensor = torch.from_numpy(image_np).unsqueeze(0) + out.append(image_tensor) + out_tensor = torch.cat(out, dim=0) + + return (out_tensor,) + +class ImageGrabPIL: + + @classmethod + def IS_CHANGED(cls): + + return + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "screencap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Captures an area specified by screen coordinates. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "delay": ("FLOAT", {"default": 0.1,"min": 0.0, "max": 10.0, "step": 0.01}), + }, + } + + def screencap(self, x, y, width, height, num_frames, delay): + start_time = time.time() + captures = [] + bbox = (x, y, x + width, y + height) + + for _ in range(num_frames): + # Capture screen + screen_capture = ImageGrab.grab(bbox=bbox) + screen_capture_torch = torch.from_numpy(np.array(screen_capture, dtype=np.float32) / 255.0).unsqueeze(0) + captures.append(screen_capture_torch) + + # Wait for a short delay if more than one frame is to be captured + if num_frames > 1: + time.sleep(delay) + + elapsed_time = time.time() - start_time + print(f"screengrab took {elapsed_time} seconds.") + + return (torch.cat(captures, dim=0),) + +class Screencap_mss: + + @classmethod + def IS_CHANGED(s, **kwargs): + return float("NaN") + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "screencap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Captures an area specified by screen coordinates. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 10000, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 10000, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 10000, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 10000, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "delay": ("FLOAT", {"default": 0.1,"min": 0.0, "max": 10.0, "step": 0.01}), + }, + } + + def screencap(self, x, y, width, height, num_frames, delay): + from mss import mss + captures = [] + with mss() as sct: + bbox = {'top': y, 'left': x, 'width': width, 'height': height} + + for _ in range(num_frames): + sct_img = sct.grab(bbox) + img_np = np.array(sct_img) + img_torch = torch.from_numpy(img_np[..., [2, 1, 0]]).float() / 255.0 + captures.append(img_torch) + + if num_frames > 1: + time.sleep(delay) + + return (torch.stack(captures, 0),) + +class WebcamCaptureCV2: + + @classmethod + def IS_CHANGED(cls): + return + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "capture" + CATEGORY = "KJNodes/experimental" + DESCRIPTION = """ +Captures a frame from a webcam using CV2. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "cam_index": ("INT", {"default": 0,"min": 0, "max": 255, "step": 1}), + "release": ("BOOLEAN", {"default": False}), + }, + } + + def capture(self, x, y, cam_index, width, height, release): + # Check if the camera index has changed or the capture object doesn't exist + if not hasattr(self, "cap") or self.cap is None or self.current_cam_index != cam_index: + if hasattr(self, "cap") and self.cap is not None: + self.cap.release() + self.current_cam_index = cam_index + self.cap = cv2.VideoCapture(cam_index) + try: + self.cap.set(cv2.CAP_PROP_FRAME_WIDTH, width) + self.cap.set(cv2.CAP_PROP_FRAME_HEIGHT, height) + except: + pass + if not self.cap.isOpened(): + raise Exception("Could not open webcam") + + ret, frame = self.cap.read() + if not ret: + raise Exception("Failed to capture image from webcam") + + # Crop the frame to the specified bbox + frame = frame[y:y+height, x:x+width] + img_torch = torch.from_numpy(frame[..., [2, 1, 0]]).float() / 255.0 + + if release: + self.cap.release() + self.cap = None + + return (img_torch.unsqueeze(0),) + +class AddLabel: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image":("IMAGE",), + "text_x": ("INT", {"default": 10, "min": 0, "max": 4096, "step": 1}), + "text_y": ("INT", {"default": 2, "min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 48, "min": -1, "max": 4096, "step": 1}), + "font_size": ("INT", {"default": 32, "min": 0, "max": 4096, "step": 1}), + "font_color": ("STRING", {"default": "white"}), + "label_color": ("STRING", {"default": "black"}), + "font": (folder_paths.get_filename_list("kjnodes_fonts"), ), + "text": ("STRING", {"default": "Text"}), + "direction": ( + [ 'up', + 'down', + 'left', + 'right', + 'overlay' + ], + { + "default": 'up' + }), + }, + "optional":{ + "caption": ("STRING", {"default": "", "forceInput": True}), + } + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "addlabel" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +Creates a new with the given text, and concatenates it to +either above or below the input image. +Note that this changes the input image's height! +Fonts are loaded from this folder: +ComfyUI/custom_nodes/ComfyUI-KJNodes/fonts +""" + + def addlabel(self, image, text_x, text_y, text, height, font_size, font_color, label_color, font, direction, caption=""): + batch_size = image.shape[0] + width = image.shape[2] + + font_path = os.path.join(script_directory, "fonts", "TTNorms-Black.otf") if font == "TTNorms-Black.otf" else folder_paths.get_full_path("kjnodes_fonts", font) + + def process_image(input_image, caption_text): + font = ImageFont.truetype(font_path, font_size) + words = caption_text.split() + lines = [] + current_line = [] + current_line_width = 0 + + for word in words: + word_width = font.getbbox(word)[2] + if current_line_width + word_width <= width - 2 * text_x: + current_line.append(word) + current_line_width += word_width + font.getbbox(" ")[2] # Add space width + else: + lines.append(" ".join(current_line)) + current_line = [word] + current_line_width = word_width + + if current_line: + lines.append(" ".join(current_line)) + + if direction == 'overlay': + pil_image = Image.fromarray((input_image.cpu().numpy() * 255).astype(np.uint8)) + else: + if height == -1: + # Adjust the image height automatically + margin = 8 + required_height = (text_y + len(lines) * font_size) + margin # Calculate required height + pil_image = Image.new("RGB", (width, required_height), label_color) + else: + # Initialize with a minimal height + label_image = Image.new("RGB", (width, height), label_color) + pil_image = label_image + + draw = ImageDraw.Draw(pil_image) + + + y_offset = text_y + for line in lines: + try: + draw.text((text_x, y_offset), line, font=font, fill=font_color, features=['-liga']) + except: + draw.text((text_x, y_offset), line, font=font, fill=font_color) + y_offset += font_size + + processed_image = torch.from_numpy(np.array(pil_image).astype(np.float32) / 255.0).unsqueeze(0) + return processed_image + + if caption == "": + processed_images = [process_image(img, text) for img in image] + else: + assert len(caption) == batch_size, f"Number of captions {(len(caption))} does not match number of images" + processed_images = [process_image(img, cap) for img, cap in zip(image, caption)] + processed_batch = torch.cat(processed_images, dim=0) + + # Combine images based on direction + if direction == 'down': + combined_images = torch.cat((image, processed_batch), dim=1) + elif direction == 'up': + combined_images = torch.cat((processed_batch, image), dim=1) + elif direction == 'left': + processed_batch = torch.rot90(processed_batch, 3, (2, 3)).permute(0, 3, 1, 2) + combined_images = torch.cat((processed_batch, image), dim=2) + elif direction == 'right': + processed_batch = torch.rot90(processed_batch, 3, (2, 3)).permute(0, 3, 1, 2) + combined_images = torch.cat((image, processed_batch), dim=2) + else: + combined_images = processed_batch + + return (combined_images,) + +class GetImageSizeAndCount: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE","INT", "INT", "INT",) + RETURN_NAMES = ("image", "width", "height", "count",) + FUNCTION = "getsize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns width, height and batch size of the image, +and passes it through unchanged. + +""" + + def getsize(self, image): + width = image.shape[2] + height = image.shape[1] + count = image.shape[0] + return {"ui": { + "text": [f"{count}x{width}x{height}"]}, + "result": (image, width, height, count) + } + +class ImageBatchRepeatInterleaving: + + RETURN_TYPES = ("IMAGE", "MASK",) + FUNCTION = "repeat" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Repeats each image in a batch by the specified number of times. +Example batch of 5 images: 0, 1 ,2, 3, 4 +with repeats 2 becomes batch of 10 images: 0, 0, 1, 1, 2, 2, 3, 3, 4, 4 +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "repeats": ("INT", {"default": 1, "min": 1, "max": 4096}), + }, + "optional": { + "mask": ("MASK",), + } + } + + def repeat(self, images, repeats, mask=None): + original_count = images.shape[0] + total_count = original_count * repeats + + repeated_images = torch.repeat_interleave(images, repeats=repeats, dim=0) + if mask is not None: + mask = torch.repeat_interleave(mask, repeats=repeats, dim=0) + else: + mask = torch.zeros((total_count, images.shape[1], images.shape[2]), + device=images.device, dtype=images.dtype) + for i in range(original_count): + mask[i * repeats] = 1.0 + + print("mask shape", mask.shape) + return (repeated_images, mask) + +class ImageUpscaleWithModelBatched: + @classmethod + def INPUT_TYPES(s): + return {"required": { "upscale_model": ("UPSCALE_MODEL",), + "images": ("IMAGE",), + "per_batch": ("INT", {"default": 16, "min": 1, "max": 4096, "step": 1}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Same as ComfyUI native model upscaling node, +but allows setting sub-batches for reduced VRAM usage. +""" + def upscale(self, upscale_model, images, per_batch): + + device = model_management.get_torch_device() + upscale_model.to(device) + in_img = images.movedim(-1,-3) + + steps = in_img.shape[0] + pbar = ProgressBar(steps) + t = [] + + for start_idx in range(0, in_img.shape[0], per_batch): + sub_images = upscale_model(in_img[start_idx:start_idx+per_batch].to(device)) + t.append(sub_images.cpu()) + # Calculate the number of images processed in this batch + batch_count = sub_images.shape[0] + # Update the progress bar by the number of images processed in this batch + pbar.update(batch_count) + upscale_model.cpu() + + t = torch.cat(t, dim=0).permute(0, 2, 3, 1).cpu() + + return (t,) + +class ImageNormalize_Neg1_To_1: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "images": ("IMAGE",), + + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "normalize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Normalize the images to be in the range [-1, 1] +""" + + def normalize(self,images): + images = images * 2.0 - 1.0 + return (images,) + +class RemapImageRange: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + "min": ("FLOAT", {"default": 0.0,"min": -10.0, "max": 1.0, "step": 0.01}), + "max": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 10.0, "step": 0.01}), + "clamp": ("BOOLEAN", {"default": True}), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "remap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Remaps the image values to the specified range. +""" + + def remap(self, image, min, max, clamp): + if image.dtype == torch.float16: + image = image.to(torch.float32) + image = min + image * (max - min) + if clamp: + image = torch.clamp(image, min=0.0, max=1.0) + return (image, ) + +class SplitImageChannels: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + }, + } + + RETURN_TYPES = ("IMAGE", "IMAGE", "IMAGE", "MASK") + RETURN_NAMES = ("red", "green", "blue", "mask") + FUNCTION = "split" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Splits image channels into images where the selected channel +is repeated for all channels, and the alpha as a mask. +""" + + def split(self, image): + red = image[:, :, :, 0:1] # Red channel + green = image[:, :, :, 1:2] # Green channel + blue = image[:, :, :, 2:3] # Blue channel + alpha = image[:, :, :, 3:4] # Alpha channel + alpha = alpha.squeeze(-1) + + # Repeat the selected channel for all channels + red = torch.cat([red, red, red], dim=3) + green = torch.cat([green, green, green], dim=3) + blue = torch.cat([blue, blue, blue], dim=3) + return (red, green, blue, alpha) + +class MergeImageChannels: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "red": ("IMAGE",), + "green": ("IMAGE",), + "blue": ("IMAGE",), + + }, + "optional": { + "alpha": ("MASK", {"default": None}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "merge" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Merges channel data into an image. +""" + + def merge(self, red, green, blue, alpha=None): + image = torch.stack([ + red[..., 0, None], # Red channel + green[..., 1, None], # Green channel + blue[..., 2, None] # Blue channel + ], dim=-1) + image = image.squeeze(-2) + if alpha is not None: + image = torch.cat([image, alpha.unsqueeze(-1)], dim=-1) + return (image,) + +class ImagePadForOutpaintMasked: + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + }, + "optional": { + "mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, left, top, right, bottom, feathering, mask=None): + if mask is not None: + if torch.allclose(mask, torch.zeros_like(mask)): + print("Warning: The incoming mask is fully black. Handling it as None.") + mask = None + B, H, W, C = image.size() + + new_image = torch.ones( + (B, H + top + bottom, W + left + right, C), + dtype=torch.float32, + ) * 0.5 + + new_image[:, top:top + H, left:left + W, :] = image + + if mask is None: + new_mask = torch.ones( + (B, H + top + bottom, W + left + right), + dtype=torch.float32, + ) + + t = torch.zeros( + (B, H, W), + dtype=torch.float32 + ) + else: + # If a mask is provided, pad it to fit the new image size + mask = F.pad(mask, (left, right, top, bottom), mode='constant', value=0) + mask = 1 - mask + t = torch.zeros_like(mask) + + if feathering > 0 and feathering * 2 < H and feathering * 2 < W: + + for i in range(H): + for j in range(W): + dt = i if top != 0 else H + db = H - i if bottom != 0 else H + + dl = j if left != 0 else W + dr = W - j if right != 0 else W + + d = min(dt, db, dl, dr) + + if d >= feathering: + continue + + v = (feathering - d) / feathering + + if mask is None: + t[:, i, j] = v * v + else: + t[:, top + i, left + j] = v * v + + if mask is None: + new_mask[:, top:top + H, left:left + W] = t + return (new_image, new_mask,) + else: + return (new_image, mask,) + +class ImagePadForOutpaintTargetSize: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "target_width": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "target_height": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "upscale_method": (s.upscale_methods,), + }, + "optional": { + "mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, target_width, target_height, feathering, upscale_method, mask=None): + B, H, W, C = image.size() + new_height = H + new_width = W + # Calculate the scaling factor while maintaining aspect ratio + scaling_factor = min(target_width / W, target_height / H) + + # Check if the image needs to be downscaled + if scaling_factor < 1: + image = image.movedim(-1,1) + # Calculate the new width and height after downscaling + new_width = int(W * scaling_factor) + new_height = int(H * scaling_factor) + + # Downscale the image + image_scaled = common_upscale(image, new_width, new_height, upscale_method, "disabled").movedim(1,-1) + if mask is not None: + mask_scaled = mask.unsqueeze(0) # Add an extra dimension for batch size + mask_scaled = F.interpolate(mask_scaled, size=(new_height, new_width), mode="nearest") + mask_scaled = mask_scaled.squeeze(0) # Remove the extra dimension after interpolation + else: + mask_scaled = mask + else: + # If downscaling is not needed, use the original image dimensions + image_scaled = image + mask_scaled = mask + + # Calculate how much padding is needed to reach the target dimensions + pad_top = max(0, (target_height - new_height) // 2) + pad_bottom = max(0, target_height - new_height - pad_top) + pad_left = max(0, (target_width - new_width) // 2) + pad_right = max(0, target_width - new_width - pad_left) + + # Now call the original expand_image with the calculated padding + return ImagePadForOutpaintMasked.expand_image(self, image_scaled, pad_left, pad_top, pad_right, pad_bottom, feathering, mask_scaled) + +class ImagePrepForICLora: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "reference_image": ("IMAGE",), + "output_width": ("INT", {"default": 1024, "min": 1, "max": 4096, "step": 1}), + "output_height": ("INT", {"default": 1024, "min": 1, "max": 4096, "step": 1}), + "border_width": ("INT", {"default": 0, "min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "latent_image": ("IMAGE",), + "latent_mask": ("MASK",), + "reference_mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, reference_image, output_width, output_height, border_width, latent_image=None, reference_mask=None, latent_mask=None): + + if reference_mask is not None: + if torch.allclose(reference_mask, torch.zeros_like(reference_mask)): + print("Warning: The incoming mask is fully black. Handling it as None.") + reference_mask = None + image = reference_image + if latent_image is not None: + if image.shape[0] != latent_image.shape[0]: + image = image.repeat(latent_image.shape[0], 1, 1, 1) + B, H, W, C = image.size() + + # Handle mask + if reference_mask is not None: + resized_mask = torch.nn.functional.interpolate( + reference_mask.unsqueeze(1), + size=(H, W), + mode='nearest' + ).squeeze(1) + print(resized_mask.shape) + image = image * resized_mask.unsqueeze(-1) + + # Calculate new width maintaining aspect ratio + new_width = int((W / H) * output_height) + + # Resize image to new height while maintaining aspect ratio + resized_image = common_upscale(image.movedim(-1,1), new_width, output_height, "lanczos", "disabled").movedim(1,-1) + + # Create padded image + if latent_image is None: + pad_image = torch.zeros((B, output_height, output_width, C), device=image.device) + else: + resized_latent_image = common_upscale(latent_image.movedim(-1,1), output_width, output_height, "lanczos", "disabled").movedim(1,-1) + pad_image = resized_latent_image + if latent_mask is not None: + resized_latent_mask = torch.nn.functional.interpolate( + latent_mask.unsqueeze(1), + size=(pad_image.shape[1], pad_image.shape[2]), + mode='nearest' + ).squeeze(1) + + if border_width > 0: + border = torch.zeros((B, output_height, border_width, C), device=image.device) + padded_image = torch.cat((resized_image, border, pad_image), dim=2) + if latent_mask is not None: + padded_mask = torch.zeros((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, (new_width + border_width):] = resized_latent_mask + else: + padded_mask = torch.ones((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, :new_width + border_width] = 0 + else: + padded_image = torch.cat((resized_image, pad_image), dim=2) + if latent_mask is not None: + padded_mask = torch.zeros((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, new_width:] = resized_latent_mask + else: + padded_mask = torch.ones((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, :new_width] = 0 + + return (padded_image, padded_mask) + + +class ImageAndMaskPreview(SaveImage): + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "mask_opacity": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}), + "mask_color": ("STRING", {"default": "255, 255, 255"}), + "pass_through": ("BOOLEAN", {"default": False}), + }, + "optional": { + "image": ("IMAGE",), + "mask": ("MASK",), + }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("composite",) + FUNCTION = "execute" + CATEGORY = "KJNodes/masking" + DESCRIPTION = """ +Preview an image or a mask, when both inputs are used +composites the mask on top of the image. +with pass_through on the preview is disabled and the +composite is returned from the composite slot instead, +this allows for the preview to be passed for video combine +nodes for example. +""" + + def execute(self, mask_opacity, mask_color, pass_through, filename_prefix="ComfyUI", image=None, mask=None, prompt=None, extra_pnginfo=None): + if mask is not None and image is None: + preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3) + elif mask is None and image is not None: + preview = image + elif mask is not None and image is not None: + mask_adjusted = mask * mask_opacity + mask_image = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3).clone() + + if ',' in mask_color: + color_list = np.clip([int(channel) for channel in mask_color.split(',')], 0, 255) # RGB format + else: + mask_color = mask_color.lstrip('#') + color_list = [int(mask_color[i:i+2], 16) for i in (0, 2, 4)] # Hex format + mask_image[:, :, :, 0] = color_list[0] / 255 # Red channel + mask_image[:, :, :, 1] = color_list[1] / 255 # Green channel + mask_image[:, :, :, 2] = color_list[2] / 255 # Blue channel + + preview, = ImageCompositeMasked.composite(self, image, mask_image, 0, 0, True, mask_adjusted) + if pass_through: + return (preview, ) + return(self.save_images(preview, filename_prefix, prompt, extra_pnginfo)) + +class CrossFadeImages: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "crossfadeimages" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images_1": ("IMAGE",), + "images_2": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_start_index": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "start_level": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 1.0, "step": 0.01}), + "end_level": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 1.0, "step": 0.01}), + }, + } + + def crossfadeimages(self, images_1, images_2, transition_start_index, transitioning_frames, interpolation, start_level, end_level): + + def crossfade(images_1, images_2, alpha): + crossfade = (1 - alpha) * images_1 + alpha * images_2 + return crossfade + def ease_in(t): + return t * t + def ease_out(t): + return 1 - (1 - t) * (1 - t) + def ease_in_out(t): + return 3 * t * t - 2 * t * t * t + def bounce(t): + if t < 0.5: + return self.ease_out(t * 2) * 0.5 + else: + return self.ease_in((t - 0.5) * 2) * 0.5 + 0.5 + def elastic(t): + return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1)) + def glitchy(t): + return t + 0.1 * math.sin(40 * t) + def exponential_ease_out(t): + return 1 - (1 - t) ** 4 + + easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, + } + + crossfade_images = [] + + alphas = torch.linspace(start_level, end_level, transitioning_frames) + for i in range(transitioning_frames): + alpha = alphas[i] + image1 = images_1[i + transition_start_index] + image2 = images_2[i + transition_start_index] + easing_function = easing_functions.get(interpolation) + alpha = easing_function(alpha) # Apply the easing function to the alpha value + + crossfade_image = crossfade(image1, image2, alpha) + crossfade_images.append(crossfade_image) + + # Convert crossfade_images to tensor + crossfade_images = torch.stack(crossfade_images, dim=0) + # Get the last frame result of the interpolation + last_frame = crossfade_images[-1] + # Calculate the number of remaining frames from images_2 + remaining_frames = len(images_2) - (transition_start_index + transitioning_frames) + # Crossfade the remaining frames with the last used alpha value + for i in range(remaining_frames): + alpha = alphas[-1] + image1 = images_1[i + transition_start_index + transitioning_frames] + image2 = images_2[i + transition_start_index + transitioning_frames] + easing_function = easing_functions.get(interpolation) + alpha = easing_function(alpha) # Apply the easing function to the alpha value + + crossfade_image = crossfade(image1, image2, alpha) + crossfade_images = torch.cat([crossfade_images, crossfade_image.unsqueeze(0)], dim=0) + # Append the beginning of images_1 + beginning_images_1 = images_1[:transition_start_index] + crossfade_images = torch.cat([beginning_images_1, crossfade_images], dim=0) + return (crossfade_images, ) + +class CrossFadeImagesMulti: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "crossfadeimages" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE",), + "image_2": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + }, + } + + def crossfadeimages(self, inputcount, transitioning_frames, interpolation, **kwargs): + + def crossfade(images_1, images_2, alpha): + crossfade = (1 - alpha) * images_1 + alpha * images_2 + return crossfade + def ease_in(t): + return t * t + def ease_out(t): + return 1 - (1 - t) * (1 - t) + def ease_in_out(t): + return 3 * t * t - 2 * t * t * t + def bounce(t): + if t < 0.5: + return self.ease_out(t * 2) * 0.5 + else: + return self.ease_in((t - 0.5) * 2) * 0.5 + 0.5 + def elastic(t): + return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1)) + def glitchy(t): + return t + 0.1 * math.sin(40 * t) + def exponential_ease_out(t): + return 1 - (1 - t) ** 4 + + easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, + } + + image_1 = kwargs["image_1"] + height = image_1.shape[1] + width = image_1.shape[2] + + easing_function = easing_functions[interpolation] + + for c in range(1, inputcount): + frames = [] + new_image = kwargs[f"image_{c + 1}"] + new_image_height = new_image.shape[1] + new_image_width = new_image.shape[2] + + if new_image_height != height or new_image_width != width: + new_image = common_upscale(new_image.movedim(-1, 1), width, height, "lanczos", "disabled") + new_image = new_image.movedim(1, -1) # Move channels back to the last dimension + + last_frame_image_1 = image_1[-1] + first_frame_image_2 = new_image[0] + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=last_frame_image_1.dtype, device=last_frame_image_1.device) + frame_image = crossfade(last_frame_image_1, first_frame_image_2, alpha_tensor) + frames.append(frame_image) + + frames = torch.stack(frames) + image_1 = torch.cat((image_1, frames, new_image), dim=0) + + return image_1, + +def transition_images(images_1, images_2, alpha, transition_type, blur_radius, reverse): + width = images_1.shape[1] + height = images_1.shape[0] + + mask = torch.zeros_like(images_1, device=images_1.device) + + alpha = alpha.item() + if reverse: + alpha = 1 - alpha + + #transitions from matteo's essential nodes + if "horizontal slide" in transition_type: + pos = round(width * alpha) + mask[:, :pos, :] = 1.0 + elif "vertical slide" in transition_type: + pos = round(height * alpha) + mask[:pos, :, :] = 1.0 + elif "box" in transition_type: + box_w = round(width * alpha) + box_h = round(height * alpha) + x1 = (width - box_w) // 2 + y1 = (height - box_h) // 2 + x2 = x1 + box_w + y2 = y1 + box_h + mask[y1:y2, x1:x2, :] = 1.0 + elif "circle" in transition_type: + radius = math.ceil(math.sqrt(pow(width, 2) + pow(height, 2)) * alpha / 2) + c_x = width // 2 + c_y = height // 2 + x = torch.arange(0, width, dtype=torch.float32, device="cpu") + y = torch.arange(0, height, dtype=torch.float32, device="cpu") + y, x = torch.meshgrid((y, x), indexing="ij") + circle = ((x - c_x) ** 2 + (y - c_y) ** 2) <= (radius ** 2) + mask[circle] = 1.0 + elif "horizontal door" in transition_type: + bar = math.ceil(height * alpha / 2) + if bar > 0: + mask[:bar, :, :] = 1.0 + mask[-bar:,:, :] = 1.0 + elif "vertical door" in transition_type: + bar = math.ceil(width * alpha / 2) + if bar > 0: + mask[:, :bar,:] = 1.0 + mask[:, -bar:,:] = 1.0 + elif "fade" in transition_type: + mask[:, :, :] = alpha + + mask = gaussian_blur(mask, blur_radius) + + return images_1 * (1 - mask) + images_2 * mask + +def ease_in(t): + return t * t +def ease_out(t): + return 1 - (1 - t) * (1 - t) +def ease_in_out(t): + return 3 * t * t - 2 * t * t * t +def bounce(t): + if t < 0.5: + return ease_out(t * 2) * 0.5 + else: + return ease_in((t - 0.5) * 2) * 0.5 + 0.5 +def elastic(t): + return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1)) +def glitchy(t): + return t + 0.1 * math.sin(40 * t) +def exponential_ease_out(t): + return 1 - (1 - t) ** 4 + +def gaussian_blur(mask, blur_radius): + if blur_radius > 0: + kernel_size = int(blur_radius * 2) + 1 + if kernel_size % 2 == 0: + kernel_size += 1 # Ensure kernel size is odd + sigma = blur_radius / 3 + x = torch.arange(-kernel_size // 2 + 1, kernel_size // 2 + 1, dtype=torch.float32) + x = torch.exp(-0.5 * (x / sigma) ** 2) + kernel1d = x / x.sum() + kernel2d = kernel1d[:, None] * kernel1d[None, :] + kernel2d = kernel2d.to(mask.device) + kernel2d = kernel2d.expand(mask.shape[2], 1, kernel2d.shape[0], kernel2d.shape[1]) + mask = mask.permute(2, 0, 1).unsqueeze(0) # Change to [C, H, W] and add batch dimension + mask = F.conv2d(mask, kernel2d, padding=kernel_size // 2, groups=mask.shape[1]) + mask = mask.squeeze(0).permute(1, 2, 0) # Change back to [H, W, C] + return mask + +easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, +} + +class TransitionImagesMulti: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates transitions between images. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE",), + "image_2": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + } + + def transition(self, inputcount, transitioning_frames, transition_type, interpolation, device, blur_radius, reverse, **kwargs): + + gpu = model_management.get_torch_device() + + image_1 = kwargs["image_1"] + height = image_1.shape[1] + width = image_1.shape[2] + + easing_function = easing_functions[interpolation] + + for c in range(1, inputcount): + frames = [] + new_image = kwargs[f"image_{c + 1}"] + new_image_height = new_image.shape[1] + new_image_width = new_image.shape[2] + + if new_image_height != height or new_image_width != width: + new_image = common_upscale(new_image.movedim(-1, 1), width, height, "lanczos", "disabled") + new_image = new_image.movedim(1, -1) # Move channels back to the last dimension + + last_frame_image_1 = image_1[-1] + first_frame_image_2 = new_image[0] + if device == "GPU": + last_frame_image_1 = last_frame_image_1.to(gpu) + first_frame_image_2 = first_frame_image_2.to(gpu) + + if reverse: + last_frame_image_1, first_frame_image_2 = first_frame_image_2, last_frame_image_1 + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=last_frame_image_1.dtype, device=last_frame_image_1.device) + frame_image = transition_images(last_frame_image_1, first_frame_image_2, alpha_tensor, transition_type, blur_radius, reverse) + frames.append(frame_image) + + frames = torch.stack(frames).cpu() + image_1 = torch.cat((image_1, frames, new_image), dim=0) + + return image_1.cpu(), + +class TransitionImagesInBatch: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates transitions between images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + } + + #transitions from matteo's essential nodes + def transition(self, images, transitioning_frames, transition_type, interpolation, device, blur_radius, reverse): + if images.shape[0] == 1: + return images, + + gpu = model_management.get_torch_device() + + easing_function = easing_functions[interpolation] + + images_list = [] + pbar = ProgressBar(images.shape[0] - 1) + for i in range(images.shape[0] - 1): + frames = [] + image_1 = images[i] + image_2 = images[i + 1] + + if device == "GPU": + image_1 = image_1.to(gpu) + image_2 = image_2.to(gpu) + + if reverse: + image_1, image_2 = image_2, image_1 + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=image_1.dtype, device=image_1.device) + frame_image = transition_images(image_1, image_2, alpha_tensor, transition_type, blur_radius, reverse) + frames.append(frame_image) + pbar.update(1) + + frames = torch.stack(frames).cpu() + images_list.append(frames) + images = torch.cat(images_list, dim=0) + + return images.cpu(), + +class ShuffleImageBatch: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "shuffle" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + }, + } + + def shuffle(self, images, seed): + torch.manual_seed(seed) + B, H, W, C = images.shape + indices = torch.randperm(B) + shuffled_images = images[indices] + + return shuffled_images, + +class GetImageRangeFromBatch: + + RETURN_TYPES = ("IMAGE", "MASK", ) + FUNCTION = "imagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns a range of images from a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "start_index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 4096, "step": 1}), + }, + "optional": { + "images": ("IMAGE",), + "masks": ("MASK",), + } + } + + def imagesfrombatch(self, start_index, num_frames, images=None, masks=None): + chosen_images = None + chosen_masks = None + + # Process images if provided + if images is not None: + if start_index == -1: + start_index = max(0, len(images) - num_frames) + if start_index < 0 or start_index >= len(images): + raise ValueError("Start index is out of range") + end_index = min(start_index + num_frames, len(images)) + chosen_images = images[start_index:end_index] + + # Process masks if provided + if masks is not None: + if start_index == -1: + start_index = max(0, len(masks) - num_frames) + if start_index < 0 or start_index >= len(masks): + raise ValueError("Start index is out of range for masks") + end_index = min(start_index + num_frames, len(masks)) + chosen_masks = masks[start_index:end_index] + + return (chosen_images, chosen_masks,) + +class GetLatentRangeFromBatch: + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "latentsfrombatch" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Returns a range of latents from a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "latents": ("LATENT",), + "start_index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": -1, "max": 4096, "step": 1}), + }, + } + + def latentsfrombatch(self, latents, start_index, num_frames): + chosen_latents = None + samples = latents["samples"] + if len(samples.shape) == 4: + B, C, H, W = samples.shape + num_latents = B + elif len(samples.shape) == 5: + B, C, T, H, W = samples.shape + num_latents = T + + if start_index == -1: + start_index = max(0, num_latents - num_frames) + if start_index < 0 or start_index >= num_latents: + raise ValueError("Start index is out of range") + + end_index = num_latents if num_frames == -1 else min(start_index + num_frames, num_latents) + + if len(samples.shape) == 4: + chosen_latents = samples[start_index:end_index] + elif len(samples.shape) == 5: + chosen_latents = samples[:, :, start_index:end_index] + + return ({"samples": chosen_latents.contiguous(),},) + +class InsertLatentToIndex: + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "insert" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Inserts a latent at the specified index into the original latent batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "source": ("LATENT",), + "destination": ("LATENT",), + "index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + }, + } + + def insert(self, source, destination, index): + samples_destination = destination["samples"] + samples_source = source["samples"].to(samples_destination) + + if len(samples_source.shape) == 4: + B, C, H, W = samples_source.shape + num_latents = B + elif len(samples_source.shape) == 5: + B, C, T, H, W = samples_source.shape + num_latents = T + + if index >= num_latents or index < 0: + raise ValueError(f"Index {index} out of bounds for tensor with {num_latents} latents") + + if len(samples_source.shape) == 4: + joined_latents = torch.cat([ + samples_destination[:index], + samples_source, + samples_destination[index+1:] + ], dim=0) + else: + joined_latents = torch.cat([ + samples_destination[:, :, :index], + samples_source, + samples_destination[:, :, index+1:] + ], dim=2) + + return ({"samples": joined_latents,},) + +class ImageBatchFilter: + + RETURN_TYPES = ("IMAGE", "STRING",) + RETURN_NAMES = ("images", "removed_indices",) + FUNCTION = "filter" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Removes empty images from a batch" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "empty_color": ("STRING", {"default": "0, 0, 0"}), + "empty_threshold": ("FLOAT", {"default": 0.01,"min": 0.0, "max": 1.0, "step": 0.01}), + }, + "optional": { + "replacement_image": ("IMAGE",), + } + } + + def filter(self, images, empty_color, empty_threshold, replacement_image=None): + B, H, W, C = images.shape + + input_images = images.clone() + + empty_color_list = [int(color.strip()) for color in empty_color.split(',')] + empty_color_tensor = torch.tensor(empty_color_list, dtype=torch.float32).to(input_images.device) + + color_diff = torch.abs(input_images - empty_color_tensor) + mean_diff = color_diff.mean(dim=(1, 2, 3)) + + empty_indices = mean_diff <= empty_threshold + empty_indices_string = ', '.join([str(i) for i in range(B) if empty_indices[i]]) + + if replacement_image is not None: + B_rep, H_rep, W_rep, C_rep = replacement_image.shape + replacement = replacement_image.clone() + if (H_rep != images.shape[1]) or (W_rep != images.shape[2]) or (C_rep != images.shape[3]): + replacement = common_upscale(replacement.movedim(-1, 1), W, H, "lanczos", "center").movedim(1, -1) + input_images[empty_indices] = replacement[0] + + return (input_images, empty_indices_string,) + else: + non_empty_images = input_images[~empty_indices] + return (non_empty_images, empty_indices_string,) + +class GetImagesFromBatchIndexed: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "indexedimagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Selects and returns the images at the specified indices as an image batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + }, + } + + def indexedimagesfrombatch(self, images, indexes): + + # Parse the indexes string into a list of integers + index_list = [int(index.strip()) for index in indexes.split(',')] + + # Convert list of indices to a PyTorch tensor + indices_tensor = torch.tensor(index_list, dtype=torch.long) + + # Select the images at the specified indices + chosen_images = images[indices_tensor] + + return (chosen_images,) + +class InsertImagesToBatchIndexed: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "insertimagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Inserts images at the specified indices into the original image batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "original_images": ("IMAGE",), + "images_to_insert": ("IMAGE",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + }, + "optional": { + "mode": (["replace", "insert"],), + } + } + + def insertimagesfrombatch(self, original_images, images_to_insert, indexes, mode="replace"): + if indexes == "": + return (original_images,) + + input_images = original_images.clone() + + # Parse the indexes string into a list of integers + index_list = [int(index.strip()) for index in indexes.split(',')] + + # Convert list of indices to a PyTorch tensor + indices_tensor = torch.tensor(index_list, dtype=torch.long) + + # Ensure the images_to_insert is a tensor + if not isinstance(images_to_insert, torch.Tensor): + images_to_insert = torch.tensor(images_to_insert) + + if mode == "replace": + # Replace the images at the specified indices + for index, image in zip(indices_tensor, images_to_insert): + input_images[index] = image + else: + # Create a list to hold the new image sequence + new_images = [] + insert_offset = 0 + + for i in range(len(input_images) + len(indices_tensor)): + if insert_offset < len(indices_tensor) and i == indices_tensor[insert_offset]: + # Use modulo to cycle through images_to_insert + new_images.append(images_to_insert[insert_offset % len(images_to_insert)]) + insert_offset += 1 + else: + new_images.append(input_images[i - insert_offset]) + + # Convert the list back to a tensor + input_images = torch.stack(new_images, dim=0) + + return (input_images,) + +class PadImageBatchInterleaved: + + RETURN_TYPES = ("IMAGE", "MASK",) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "pad" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Inserts empty frames between the images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "empty_frames_per_image": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "pad_frame_value": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 1.0, "step": 0.01}), + "add_after_last": ("BOOLEAN", {"default": False}), + }, + } + + def pad(self, images, empty_frames_per_image, pad_frame_value, add_after_last): + B, H, W, C = images.shape + + # Handle single frame case specifically + if B == 1: + total_frames = 1 + empty_frames_per_image if add_after_last else 1 + else: + # Original B images + (B-1) sets of empty frames between them + total_frames = B + (B-1) * empty_frames_per_image + # Add additional empty frames after the last image if requested + if add_after_last: + total_frames += empty_frames_per_image + + # Create new tensor with zeros (empty frames) + padded_batch = torch.ones((total_frames, H, W, C), + dtype=images.dtype, + device=images.device) * pad_frame_value + # Create mask tensor (1 for original frames, 0 for empty frames) + mask = torch.zeros((total_frames, H, W), + dtype=images.dtype, + device=images.device) + + # Fill in original images at their new positions + for i in range(B): + if B == 1: + # For single frame, just place it at the beginning + new_pos = 0 + else: + # Each image is separated by empty_frames_per_image blank frames + new_pos = i * (empty_frames_per_image + 1) + + padded_batch[new_pos] = images[i] + mask[new_pos] = 1.0 # Mark this as an original frame + + return (padded_batch, mask) + +class ReplaceImagesInBatch: + + RETURN_TYPES = ("IMAGE", "MASK",) + FUNCTION = "replace" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Replaces the images in a batch, starting from the specified start index, +with the replacement images. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "original_images": ("IMAGE",), + "replacement_images": ("IMAGE",), + "start_index": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "original_masks": ("MASK",), + "replacement_masks": ("MASK",), + } + } + + def replace(self, original_images, replacement_images, start_index, original_masks=None, replacement_masks=None): + images = None + if start_index >= len(original_images): + raise ValueError("GetImageRangeFromBatch: Start index is out of range") + end_index = start_index + len(replacement_images) + if end_index > len(original_images): + raise ValueError("GetImageRangeFromBatch: End index is out of range") + + if original_masks is not None and replacement_masks is not None: + original_masks_copy = original_masks.clone() + if original_masks_copy.shape[1] != replacement_masks.shape[1] or original_masks_copy.shape[2] != replacement_masks.shape[2]: + replacement_masks = common_upscale(replacement_masks.unsqueeze(1), original_masks_copy.shape[1], original_masks_copy.shape[2], "nearest-exact", "center").squeeze(0) + + original_masks_copy[start_index:end_index] = replacement_masks + masks = original_masks_copy + else: + masks = torch.zeros(1,64,64, device=original_images.device, dtype=original_images.dtype) + + original_images_copy = original_images.clone() + + if original_images_copy.shape[2] != replacement_images.shape[2] or original_images_copy.shape[3] != replacement_images.shape[3]: + replacement_images = common_upscale(replacement_images.movedim(-1, 1), original_images_copy.shape[1], original_images_copy.shape[2], "lanczos", "center").movedim(1, -1) + + original_images_copy[start_index:end_index] = replacement_images + images = original_images_copy + return (images, masks) + + +class ReverseImageBatch: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "reverseimagebatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Reverses the order of the images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + }, + } + + def reverseimagebatch(self, images): + reversed_images = torch.flip(images, [0]) + return (reversed_images, ) + +class ImageBatchMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + "image_2": ("IMAGE", ), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "combine" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image batch from multiple images. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, **kwargs): + from nodes import ImageBatch + image_batch_node = ImageBatch() + image = kwargs["image_1"] + for c in range(1, inputcount): + new_image = kwargs[f"image_{c + 1}"] + image, = image_batch_node.batch(image, new_image) + return (image,) + + +class ImageTensorList: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + #OUTPUT_IS_LIST = (True,) + FUNCTION = "append" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image list from the input images. +""" + + def append(self, image1, image2): + image_list = [] + if isinstance(image1, torch.Tensor) and isinstance(image2, torch.Tensor): + image_list = [image1, image2] + elif isinstance(image1, list) and isinstance(image2, torch.Tensor): + image_list = image1 + [image2] + elif isinstance(image1, torch.Tensor) and isinstance(image2, list): + image_list = [image1] + image2 + elif isinstance(image1, list) and isinstance(image2, list): + image_list = image1 + image2 + return image_list, + +class ImageAddMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + "image_2": ("IMAGE", ), + "blending": ( + [ 'add', + 'subtract', + 'multiply', + 'difference', + ], + { + "default": 'add' + }), + "blend_amount": ("FLOAT", {"default": 0.5, "min": 0, "max": 1, "step": 0.01}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "add" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Add blends multiple images together. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def add(self, inputcount, blending, blend_amount, **kwargs): + image = kwargs["image_1"] + for c in range(1, inputcount): + new_image = kwargs[f"image_{c + 1}"] + if blending == "add": + image = torch.add(image * blend_amount, new_image * blend_amount) + elif blending == "subtract": + image = torch.sub(image * blend_amount, new_image * blend_amount) + elif blending == "multiply": + image = torch.mul(image * blend_amount, new_image * blend_amount) + elif blending == "difference": + image = torch.sub(image, new_image) + return (image,) + +class ImageConcatMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + "image_2": ("IMAGE", ), + "direction": ( + [ 'right', + 'down', + 'left', + 'up', + ], + { + "default": 'right' + }), + "match_image_size": ("BOOLEAN", {"default": False}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "combine" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image from multiple images. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, direction, match_image_size, **kwargs): + image = kwargs["image_1"] + first_image_shape = None + if first_image_shape is None: + first_image_shape = image.shape + for c in range(1, inputcount): + new_image = kwargs[f"image_{c + 1}"] + image, = ImageConcanate.concatenate(self, image, new_image, direction, match_image_size, first_image_shape=first_image_shape) + first_image_shape = None + return (image,) + +class PreviewAnimation: + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 1 + + methods = {"default": 4, "fastest": 0, "slowest": 6} + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "fps": ("FLOAT", {"default": 8.0, "min": 0.01, "max": 1000.0, "step": 0.01}), + }, + "optional": { + "images": ("IMAGE", ), + "masks": ("MASK", ), + }, + } + + RETURN_TYPES = () + FUNCTION = "preview" + OUTPUT_NODE = True + CATEGORY = "KJNodes/image" + + def preview(self, fps, images=None, masks=None): + filename_prefix = "AnimPreview" + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + results = list() + + pil_images = [] + + if images is not None and masks is not None: + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + pil_images.append(img) + for mask in masks: + if pil_images: + mask_np = mask.cpu().numpy() + mask_np = np.clip(mask_np * 255, 0, 255).astype(np.uint8) # Convert to values between 0 and 255 + mask_img = Image.fromarray(mask_np, mode='L') + img = pil_images.pop(0) # Remove and get the first image + img = img.convert("RGBA") # Convert base image to RGBA + + # Create a new RGBA image based on the grayscale mask + rgba_mask_img = Image.new("RGBA", img.size, (255, 255, 255, 255)) + rgba_mask_img.putalpha(mask_img) # Use the mask image as the alpha channel + + # Composite the RGBA mask onto the base image + composited_img = Image.alpha_composite(img, rgba_mask_img) + pil_images.append(composited_img) # Add the composited image back + + elif images is not None and masks is None: + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + pil_images.append(img) + + elif masks is not None and images is None: + for mask in masks: + mask_np = 255. * mask.cpu().numpy() + mask_img = Image.fromarray(np.clip(mask_np, 0, 255).astype(np.uint8)) + pil_images.append(mask_img) + else: + print("PreviewAnimation: No images or masks provided") + return { "ui": { "images": results, "animated": (None,), "text": "empty" }} + + num_frames = len(pil_images) + + c = len(pil_images) + for i in range(0, c, num_frames): + file = f"{filename}_{counter:05}_.webp" + pil_images[i].save(os.path.join(full_output_folder, file), save_all=True, duration=int(1000.0/fps), append_images=pil_images[i + 1:i + num_frames], lossless=False, quality=50, method=0) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + counter += 1 + + animated = num_frames != 1 + return { "ui": { "images": results, "animated": (animated,), "text": [f"{num_frames}x{pil_images[0].size[0]}x{pil_images[0].size[1]}"] } } + +class ImageResizeKJ: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "upscale_method": (s.upscale_methods,), + "keep_proportion": ("BOOLEAN", { "default": False }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + }, + "optional" : { + #"width_input": ("INT", { "forceInput": True}), + #"height_input": ("INT", { "forceInput": True}), + "get_image_size": ("IMAGE",), + "crop": (["disabled","center", 0], { "tooltip": "0 will do the default center crop, this is a workaround for the widget order changing with the new frontend, as in old workflows the value of this widget becomes 0 automatically" }), + } + } + + RETURN_TYPES = ("IMAGE", "INT", "INT",) + RETURN_NAMES = ("IMAGE", "width", "height",) + FUNCTION = "resize" + CATEGORY = "KJNodes/image" + DEPRECATED = True + DESCRIPTION = """ +DEPRECATED! + +Due to ComfyUI frontend changes, this node should no longer be used, please check the +v2 of the node. This node is only kept to not completely break older workflows. + +""" + + def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, + width_input=None, height_input=None, get_image_size=None, crop="disabled"): + B, H, W, C = image.shape + + if width_input: + width = width_input + if height_input: + height = height_input + if get_image_size is not None: + _, height, width, _ = get_image_size.shape + + if keep_proportion and get_image_size is None: + # If one of the dimensions is zero, calculate it to maintain the aspect ratio + if width == 0 and height != 0: + ratio = height / H + width = round(W * ratio) + elif height == 0 and width != 0: + ratio = width / W + height = round(H * ratio) + elif width != 0 and height != 0: + # Scale based on which dimension is smaller in proportion to the desired dimensions + ratio = min(width / W, height / H) + width = round(W * ratio) + height = round(H * ratio) + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1 and get_image_size is None: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + + if crop == 0: #workaround for old workflows + crop = "center" + + image = image.movedim(-1,1) + image = common_upscale(image, width, height, upscale_method, crop) + image = image.movedim(1,-1) + + return(image, image.shape[2], image.shape[1],) + +class ImageResizeKJv2: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "upscale_method": (s.upscale_methods,), + "keep_proportion": (["stretch", "resize", "pad", "pad_edge", "crop"], { "default": False }), + "pad_color": ("STRING", { "default": "0, 0, 0", "tooltip": "Color to use for padding."}), + "crop_position": (["center", "top", "bottom", "left", "right"], { "default": "center" }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + }, + "optional" : { + "device": (["cpu", "gpu"],), + } + } + + RETURN_TYPES = ("IMAGE", "INT", "INT",) + RETURN_NAMES = ("IMAGE", "width", "height",) + FUNCTION = "resize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Resizes the image to the specified width and height. +Size can be retrieved from the input. + +Keep proportions keeps the aspect ratio of the image, by +highest dimension. +""" + + def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, pad_color, crop_position, device="cpu"): + B, H, W, C = image.shape + + if device == "gpu": + if upscale_method == "lanczos": + raise Exception("Lanczos is not supported on the GPU") + device = model_management.get_torch_device() + else: + device = torch.device("cpu") + + if width == 0: + width = W + if height == 0: + height = H + + if keep_proportion == "resize" or keep_proportion.startswith("pad"): + # If one of the dimensions is zero, calculate it to maintain the aspect ratio + if width == 0 and height != 0: + ratio = height / H + new_width = round(W * ratio) + elif height == 0 and width != 0: + ratio = width / W + new_height = round(H * ratio) + elif width != 0 and height != 0: + # Scale based on which dimension is smaller in proportion to the desired dimensions + ratio = min(width / W, height / H) + new_width = round(W * ratio) + new_height = round(H * ratio) + + if keep_proportion.startswith("pad"): + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + + width = new_width + height = new_height + + if divisible_by > 1: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + + out_image = image.clone().to(device) + + if keep_proportion == "crop": + old_width = W + old_height = H + old_aspect = old_width / old_height + new_aspect = width / height + + # Calculate dimensions to keep + if old_aspect > new_aspect: # Image is wider than target + crop_w = round(old_height * new_aspect) + crop_h = old_height + else: # Image is taller than target + crop_w = old_width + crop_h = round(old_width / new_aspect) + + # Calculate crop position + if crop_position == "center": + x = (old_width - crop_w) // 2 + y = (old_height - crop_h) // 2 + elif crop_position == "top": + x = (old_width - crop_w) // 2 + y = 0 + elif crop_position == "bottom": + x = (old_width - crop_w) // 2 + y = old_height - crop_h + elif crop_position == "left": + x = 0 + y = (old_height - crop_h) // 2 + elif crop_position == "right": + x = old_width - crop_w + y = (old_height - crop_h) // 2 + + # Apply crop + out_image = out_image.narrow(-2, x, crop_w).narrow(-3, y, crop_h) + + out_image = common_upscale(out_image.movedim(-1,1), width, height, upscale_method, crop="disabled").movedim(1,-1) + if keep_proportion.startswith("pad"): + if pad_left > 0 or pad_right > 0 or pad_top > 0 or pad_bottom > 0: + padded_width = width + pad_left + pad_right + padded_height = height + pad_top + pad_bottom + if divisible_by > 1: + width_remainder = padded_width % divisible_by + height_remainder = padded_height % divisible_by + if width_remainder > 0: + extra_width = divisible_by - width_remainder + pad_right += extra_width + if height_remainder > 0: + extra_height = divisible_by - height_remainder + pad_bottom += extra_height + out_image, _ = ImagePadKJ.pad(self, out_image, pad_left, pad_right, pad_top, pad_bottom, 0, pad_color, "edge" if keep_proportion == "pad_edge" else "color") + + + return(out_image.cpu(), out_image.shape[2], out_image.shape[1],) + +import pathlib +class LoadAndResizeImage: + _color_channels = ["alpha", "red", "green", "blue"] + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f.name for f in pathlib.Path(input_dir).iterdir() if f.is_file()] + return {"required": + { + "image": (sorted(files), {"image_upload": True}), + "resize": ("BOOLEAN", { "default": False }), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "repeat": ("INT", { "default": 1, "min": 1, "max": 4096, "step": 1, }), + "keep_proportion": ("BOOLEAN", { "default": False }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + "mask_channel": (s._color_channels, {"tooltip": "Channel to use for the mask output"}), + "background_color": ("STRING", { "default": "", "tooltip": "Fills the alpha channel with the specified color."}), + }, + } + + CATEGORY = "KJNodes/image" + RETURN_TYPES = ("IMAGE", "MASK", "INT", "INT", "STRING",) + RETURN_NAMES = ("image", "mask", "width", "height","image_path",) + FUNCTION = "load_image" + + def load_image(self, image, resize, width, height, repeat, keep_proportion, divisible_by, mask_channel, background_color): + from PIL import ImageColor, Image, ImageOps, ImageSequence + import numpy as np + import torch + image_path = folder_paths.get_annotated_filepath(image) + + import node_helpers + img = node_helpers.pillow(Image.open, image_path) + + # Process the background_color + if background_color: + try: + # Try to parse as RGB tuple + bg_color_rgba = tuple(int(x.strip()) for x in background_color.split(',')) + except ValueError: + # If parsing fails, it might be a hex color or named color + if background_color.startswith('#') or background_color.lower() in ImageColor.colormap: + bg_color_rgba = ImageColor.getrgb(background_color) + else: + raise ValueError(f"Invalid background color: {background_color}") + + bg_color_rgba += (255,) # Add alpha channel + else: + bg_color_rgba = None # No background color specified + + output_images = [] + output_masks = [] + w, h = None, None + + excluded_formats = ['MPO'] + + W, H = img.size + if resize: + if keep_proportion: + ratio = min(width / W, height / H) + width = round(W * ratio) + height = round(H * ratio) + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + else: + width, height = W, H + + for frame in ImageSequence.Iterator(img): + frame = node_helpers.pillow(ImageOps.exif_transpose, frame) + + if frame.mode == 'I': + frame = frame.point(lambda i: i * (1 / 255)) + + if frame.mode == 'P': + frame = frame.convert("RGBA") + elif 'A' in frame.getbands(): + frame = frame.convert("RGBA") + + # Extract alpha channel if it exists + if 'A' in frame.getbands() and bg_color_rgba: + alpha_mask = np.array(frame.getchannel('A')).astype(np.float32) / 255.0 + alpha_mask = 1. - torch.from_numpy(alpha_mask) + bg_image = Image.new("RGBA", frame.size, bg_color_rgba) + # Composite the frame onto the background + frame = Image.alpha_composite(bg_image, frame) + else: + alpha_mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") + + image = frame.convert("RGB") + + if len(output_images) == 0: + w = image.size[0] + h = image.size[1] + + if image.size[0] != w or image.size[1] != h: + continue + if resize: + image = image.resize((width, height), Image.Resampling.BILINEAR) + + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + + c = mask_channel[0].upper() + if c in frame.getbands(): + if resize: + frame = frame.resize((width, height), Image.Resampling.BILINEAR) + mask = np.array(frame.getchannel(c)).astype(np.float32) / 255.0 + mask = torch.from_numpy(mask) + if c == 'A' and bg_color_rgba: + mask = alpha_mask + elif c == 'A': + mask = 1. - mask + else: + mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") + + output_images.append(image) + output_masks.append(mask.unsqueeze(0)) + + if len(output_images) > 1 and img.format not in excluded_formats: + output_image = torch.cat(output_images, dim=0) + output_mask = torch.cat(output_masks, dim=0) + else: + output_image = output_images[0] + output_mask = output_masks[0] + if repeat > 1: + output_image = output_image.repeat(repeat, 1, 1, 1) + output_mask = output_mask.repeat(repeat, 1, 1) + + return (output_image, output_mask, width, height, image_path) + + + # @classmethod + # def IS_CHANGED(s, image, **kwargs): + # image_path = folder_paths.get_annotated_filepath(image) + # m = hashlib.sha256() + # with open(image_path, 'rb') as f: + # m.update(f.read()) + # return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + +import hashlib +class LoadImagesFromFolderKJ: + # Dictionary to store folder hashes + folder_hashes = {} + + @classmethod + def IS_CHANGED(cls, folder, **kwargs): + if not os.path.isdir(folder): + return float("NaN") + + valid_extensions = ['.jpg', '.jpeg', '.png', '.webp', '.tga'] + include_subfolders = kwargs.get('include_subfolders', False) + + file_data = [] + if include_subfolders: + for root, _, files in os.walk(folder): + for file in files: + if any(file.lower().endswith(ext) for ext in valid_extensions): + path = os.path.join(root, file) + try: + mtime = os.path.getmtime(path) + file_data.append((path, mtime)) + except OSError: + pass + else: + for file in os.listdir(folder): + if any(file.lower().endswith(ext) for ext in valid_extensions): + path = os.path.join(folder, file) + try: + mtime = os.path.getmtime(path) + file_data.append((path, mtime)) + except OSError: + pass + + file_data.sort() + + combined_hash = hashlib.md5() + combined_hash.update(folder.encode('utf-8')) + combined_hash.update(str(len(file_data)).encode('utf-8')) + + for path, mtime in file_data: + combined_hash.update(f"{path}:{mtime}".encode('utf-8')) + + current_hash = combined_hash.hexdigest() + + old_hash = cls.folder_hashes.get(folder) + cls.folder_hashes[folder] = current_hash + + if old_hash == current_hash: + return old_hash + + return current_hash + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "folder": ("STRING", {"default": ""}), + "width": ("INT", {"default": 1024, "min": -1, "step": 1}), + "height": ("INT", {"default": 1024, "min": -1, "step": 1}), + "keep_aspect_ratio": (["crop", "pad", "stretch",],), + }, + "optional": { + "image_load_cap": ("INT", {"default": 0, "min": 0, "step": 1}), + "start_index": ("INT", {"default": 0, "min": 0, "step": 1}), + "include_subfolders": ("BOOLEAN", {"default": False}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", "INT", "STRING",) + RETURN_NAMES = ("image", "mask", "count", "image_path",) + FUNCTION = "load_images" + CATEGORY = "KJNodes/image" + DESCRIPTION = """Loads images from a folder into a batch, images are resized and loaded into a batch.""" + + def load_images(self, folder, width, height, image_load_cap, start_index, keep_aspect_ratio, include_subfolders=False): + if not os.path.isdir(folder): + raise FileNotFoundError(f"Folder '{folder} cannot be found.'") + + valid_extensions = ['.jpg', '.jpeg', '.png', '.webp', '.tga'] + image_paths = [] + if include_subfolders: + for root, _, files in os.walk(folder): + for file in files: + if any(file.lower().endswith(ext) for ext in valid_extensions): + image_paths.append(os.path.join(root, file)) + else: + for file in os.listdir(folder): + if any(file.lower().endswith(ext) for ext in valid_extensions): + image_paths.append(os.path.join(folder, file)) + + dir_files = sorted(image_paths) + + if len(dir_files) == 0: + raise FileNotFoundError(f"No files in directory '{folder}'.") + + # start at start_index + dir_files = dir_files[start_index:] + + images = [] + masks = [] + image_path_list = [] + + limit_images = False + if image_load_cap > 0: + limit_images = True + image_count = 0 + + for image_path in dir_files: + if os.path.isdir(image_path): + continue + if limit_images and image_count >= image_load_cap: + break + i = Image.open(image_path) + i = ImageOps.exif_transpose(i) + + # Resize image to maximum dimensions + if width == -1 and height == -1: + width = i.size[0] + height = i.size[1] + if i.size != (width, height): + i = self.resize_with_aspect_ratio(i, width, height, keep_aspect_ratio) + + + image = i.convert("RGB") + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + + if 'A' in i.getbands(): + mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + if mask.shape != (height, width): + mask = torch.nn.functional.interpolate(mask.unsqueeze(0).unsqueeze(0), + size=(height, width), + mode='bilinear', + align_corners=False).squeeze() + else: + mask = torch.zeros((height, width), dtype=torch.float32, device="cpu") + + images.append(image) + masks.append(mask) + image_path_list.append(image_path) + image_count += 1 + + if len(images) == 1: + return (images[0], masks[0], 1, image_path_list) + + elif len(images) > 1: + image1 = images[0] + mask1 = masks[0].unsqueeze(0) + + for image2 in images[1:]: + image1 = torch.cat((image1, image2), dim=0) + + for mask2 in masks[1:]: + mask1 = torch.cat((mask1, mask2.unsqueeze(0)), dim=0) + + return (image1, mask1, len(images), image_path_list) + def resize_with_aspect_ratio(self, img, width, height, mode): + if mode == "stretch": + return img.resize((width, height), Image.Resampling.LANCZOS) + + img_width, img_height = img.size + aspect_ratio = img_width / img_height + target_ratio = width / height + + if mode == "crop": + # Calculate dimensions for center crop + if aspect_ratio > target_ratio: + # Image is wider - crop width + new_width = int(height * aspect_ratio) + img = img.resize((new_width, height), Image.Resampling.LANCZOS) + left = (new_width - width) // 2 + return img.crop((left, 0, left + width, height)) + else: + # Image is taller - crop height + new_height = int(width / aspect_ratio) + img = img.resize((width, new_height), Image.Resampling.LANCZOS) + top = (new_height - height) // 2 + return img.crop((0, top, width, top + height)) + + elif mode == "pad": + pad_color = self.get_edge_color(img) + # Calculate dimensions for padding + if aspect_ratio > target_ratio: + # Image is wider - pad height + new_height = int(width / aspect_ratio) + img = img.resize((width, new_height), Image.Resampling.LANCZOS) + padding = (height - new_height) // 2 + padded = Image.new('RGBA', (width, height), pad_color) + padded.paste(img, (0, padding)) + return padded + else: + # Image is taller - pad width + new_width = int(height * aspect_ratio) + img = img.resize((new_width, height), Image.Resampling.LANCZOS) + padding = (width - new_width) // 2 + padded = Image.new('RGBA', (width, height), pad_color) + padded.paste(img, (padding, 0)) + return padded + def get_edge_color(self, img): + from PIL import ImageStat + """Sample edges and return dominant color""" + width, height = img.size + img = img.convert('RGBA') + + # Create 1-pixel high/wide images from edges + top = img.crop((0, 0, width, 1)) + bottom = img.crop((0, height-1, width, height)) + left = img.crop((0, 0, 1, height)) + right = img.crop((width-1, 0, width, height)) + + # Combine edges into single image + edges = Image.new('RGBA', (width*2 + height*2, 1)) + edges.paste(top, (0, 0)) + edges.paste(bottom, (width, 0)) + edges.paste(left.resize((height, 1)), (width*2, 0)) + edges.paste(right.resize((height, 1)), (width*2 + height, 0)) + + # Get median color + stat = ImageStat.Stat(edges) + median = tuple(map(int, stat.median)) + return median + + +class ImageGridtoBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "columns": ("INT", {"default": 3, "min": 1, "max": 8, "tooltip": "The number of columns in the grid."}), + "rows": ("INT", {"default": 0, "min": 1, "max": 8, "tooltip": "The number of rows in the grid. Set to 0 for automatic calculation."}), + } + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "decompose" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Converts a grid of images to a batch of images." + + def decompose(self, image, columns, rows): + B, H, W, C = image.shape + print("input size: ", image.shape) + + # Calculate cell width, rounding down + cell_width = W // columns + + if rows == 0: + # If rows is 0, calculate number of full rows + rows = H // cell_height + else: + # If rows is specified, adjust cell_height + cell_height = H // rows + + # Crop the image to fit full cells + image = image[:, :rows*cell_height, :columns*cell_width, :] + + # Reshape and permute the image to get the grid + image = image.view(B, rows, cell_height, columns, cell_width, C) + image = image.permute(0, 1, 3, 2, 4, 5).contiguous() + image = image.view(B, rows * columns, cell_height, cell_width, C) + + # Reshape to the final batch tensor + img_tensor = image.view(-1, cell_height, cell_width, C) + + return (img_tensor,) + +class SaveImageKJ: + def __init__(self): + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE", {"tooltip": "The images to save."}), + "filename_prefix": ("STRING", {"default": "ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."}), + "output_folder": ("STRING", {"default": "output", "tooltip": "The folder to save the images to."}), + }, + "optional": { + "caption_file_extension": ("STRING", {"default": ".txt", "tooltip": "The extension for the caption file."}), + "caption": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), + }, + "hidden": { + "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO" + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("filename",) + FUNCTION = "save_images" + + OUTPUT_NODE = True + + CATEGORY = "KJNodes/image" + DESCRIPTION = "Saves the input images to your ComfyUI output directory." + + def save_images(self, images, output_folder, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None, caption=None, caption_file_extension=".txt"): + filename_prefix += self.prefix_append + + if os.path.isabs(output_folder): + if not os.path.exists(output_folder): + os.makedirs(output_folder, exist_ok=True) + full_output_folder = output_folder + _, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, output_folder, images[0].shape[1], images[0].shape[0]) + else: + self.output_dir = folder_paths.get_output_directory() + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + + results = list() + for (batch_number, image) in enumerate(images): + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + base_file_name = f"{filename_with_batch_num}_{counter:05}_" + file = f"{base_file_name}.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + if caption is not None: + txt_file = base_file_name + caption_file_extension + file_path = os.path.join(full_output_folder, txt_file) + with open(file_path, 'w') as f: + f.write(caption) + + counter += 1 + + return file, + +class SaveStringKJ: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "string": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), + "filename_prefix": ("STRING", {"default": "text", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."}), + "output_folder": ("STRING", {"default": "output", "tooltip": "The folder to save the images to."}), + }, + "optional": { + "file_extension": ("STRING", {"default": ".txt", "tooltip": "The extension for the caption file."}), + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("filename",) + FUNCTION = "save_string" + + OUTPUT_NODE = True + + CATEGORY = "KJNodes/misc" + DESCRIPTION = "Saves the input string to your ComfyUI output directory." + + def save_string(self, string, output_folder, filename_prefix="text", file_extension=".txt"): + filename_prefix += self.prefix_append + + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + if output_folder != "output": + if not os.path.exists(output_folder): + os.makedirs(output_folder, exist_ok=True) + full_output_folder = output_folder + + base_file_name = f"{filename_prefix}_{counter:05}_" + results = list() + + txt_file = base_file_name + file_extension + file_path = os.path.join(full_output_folder, txt_file) + with open(file_path, 'w') as f: + f.write(string) + + return results, + +to_pil_image = T.ToPILImage() + +class FastPreview: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image": ("IMAGE", ), + "format": (["JPEG", "PNG", "WEBP"], {"default": "JPEG"}), + "quality" : ("INT", {"default": 75, "min": 1, "max": 100, "step": 1}), + }, + } + + RETURN_TYPES = () + FUNCTION = "preview" + CATEGORY = "KJNodes/experimental" + OUTPUT_NODE = True + DESCRIPTION = "Experimental node for faster image previews by displaying through base64 it without saving to disk." + + def preview(self, image, format, quality): + pil_image = to_pil_image(image[0].permute(2, 0, 1)) + + with io.BytesIO() as buffered: + pil_image.save(buffered, format=format, quality=quality) + img_bytes = buffered.getvalue() + + img_base64 = base64.b64encode(img_bytes).decode('utf-8') + + return { + "ui": {"bg_image": [img_base64]}, + "result": () + } + +class ImageCropByMaskAndResize: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE", ), + "mask": ("MASK", ), + "base_resolution": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "padding": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "min_crop_resolution": ("INT", { "default": 128, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "max_crop_resolution": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + + }, + } + + RETURN_TYPES = ("IMAGE", "MASK", "BBOX", ) + RETURN_NAMES = ("images", "masks", "bbox",) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + + def crop_by_mask(self, mask, padding=0, min_crop_resolution=None, max_crop_resolution=None): + iy, ix = (mask == 1).nonzero(as_tuple=True) + h0, w0 = mask.shape + + if iy.numel() == 0: + x_c = w0 / 2.0 + y_c = h0 / 2.0 + width = 0 + height = 0 + else: + x_min = ix.min().item() + x_max = ix.max().item() + y_min = iy.min().item() + y_max = iy.max().item() + + width = x_max - x_min + height = y_max - y_min + + if width > w0 or height > h0: + raise Exception("Masked area out of bounds") + + x_c = (x_min + x_max) / 2.0 + y_c = (y_min + y_max) / 2.0 + + if min_crop_resolution: + width = max(width, min_crop_resolution) + height = max(height, min_crop_resolution) + + if max_crop_resolution: + width = min(width, max_crop_resolution) + height = min(height, max_crop_resolution) + + if w0 <= width: + x0 = 0 + w = w0 + else: + x0 = max(0, x_c - width / 2 - padding) + w = width + 2 * padding + if x0 + w > w0: + x0 = w0 - w + + if h0 <= height: + y0 = 0 + h = h0 + else: + y0 = max(0, y_c - height / 2 - padding) + h = height + 2 * padding + if y0 + h > h0: + y0 = h0 - h + + return (int(x0), int(y0), int(w), int(h)) + + def crop(self, image, mask, base_resolution, padding=0, min_crop_resolution=128, max_crop_resolution=512): + mask = mask.round() + image_list = [] + mask_list = [] + bbox_list = [] + + # First, collect all bounding boxes + bbox_params = [] + aspect_ratios = [] + for i in range(image.shape[0]): + x0, y0, w, h = self.crop_by_mask(mask[i], padding, min_crop_resolution, max_crop_resolution) + bbox_params.append((x0, y0, w, h)) + aspect_ratios.append(w / h) + + # Find maximum width and height + max_w = max([w for x0, y0, w, h in bbox_params]) + max_h = max([h for x0, y0, w, h in bbox_params]) + max_aspect_ratio = max(aspect_ratios) + + # Ensure dimensions are divisible by 16 + max_w = (max_w + 15) // 16 * 16 + max_h = (max_h + 15) // 16 * 16 + # Calculate common target dimensions + if max_aspect_ratio > 1: + target_width = base_resolution + target_height = int(base_resolution / max_aspect_ratio) + else: + target_height = base_resolution + target_width = int(base_resolution * max_aspect_ratio) + + for i in range(image.shape[0]): + x0, y0, w, h = bbox_params[i] + + # Adjust cropping to use maximum width and height + x_center = x0 + w / 2 + y_center = y0 + h / 2 + + x0_new = int(max(0, x_center - max_w / 2)) + y0_new = int(max(0, y_center - max_h / 2)) + x1_new = int(min(x0_new + max_w, image.shape[2])) + y1_new = int(min(y0_new + max_h, image.shape[1])) + x0_new = x1_new - max_w + y0_new = y1_new - max_h + + cropped_image = image[i][y0_new:y1_new, x0_new:x1_new, :] + cropped_mask = mask[i][y0_new:y1_new, x0_new:x1_new] + + # Ensure dimensions are divisible by 16 + target_width = (target_width + 15) // 16 * 16 + target_height = (target_height + 15) // 16 * 16 + + cropped_image = cropped_image.unsqueeze(0).movedim(-1, 1) # Move C to the second position (B, C, H, W) + cropped_image = common_upscale(cropped_image, target_width, target_height, "lanczos", "disabled") + cropped_image = cropped_image.movedim(1, -1).squeeze(0) + + cropped_mask = cropped_mask.unsqueeze(0).unsqueeze(0) + cropped_mask = common_upscale(cropped_mask, target_width, target_height, 'bilinear', "disabled") + cropped_mask = cropped_mask.squeeze(0).squeeze(0) + + image_list.append(cropped_image) + mask_list.append(cropped_mask) + bbox_list.append((x0_new, y0_new, x1_new, y1_new)) + + + return (torch.stack(image_list), torch.stack(mask_list), bbox_list) + +class ImageCropByMask: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE", ), + "mask": ("MASK", ), + }, + } + + RETURN_TYPES = ("IMAGE", ) + RETURN_NAMES = ("image", ) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Crops the input images based on the provided mask." + + def crop(self, image, mask): + B, H, W, C = image.shape + mask = mask.round() + + # Find bounding box for each batch + crops = [] + + for b in range(B): + # Get coordinates of non-zero elements + rows = torch.any(mask[min(b, mask.shape[0]-1)] > 0, dim=1) + cols = torch.any(mask[min(b, mask.shape[0]-1)] > 0, dim=0) + + # Find boundaries + y_min, y_max = torch.where(rows)[0][[0, -1]] + x_min, x_max = torch.where(cols)[0][[0, -1]] + + # Crop image and mask + crop = image[b:b+1, y_min:y_max+1, x_min:x_max+1, :] + crops.append(crop) + + # Stack results back together + cropped_images = torch.cat(crops, dim=0) + + return (cropped_images, ) + + + +class ImageUncropByMask: + + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "destination": ("IMAGE",), + "source": ("IMAGE",), + "mask": ("MASK",), + "bbox": ("BBOX",), + }, + } + + CATEGORY = "KJNodes/image" + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "uncrop" + + def uncrop(self, destination, source, mask, bbox=None): + + output_list = [] + + B, H, W, C = destination.shape + + for i in range(source.shape[0]): + x0, y0, x1, y1 = bbox[i] + bbox_height = y1 - y0 + bbox_width = x1 - x0 + + # Resize source image to match the bounding box dimensions + #resized_source = F.interpolate(source[i].unsqueeze(0).movedim(-1, 1), size=(bbox_height, bbox_width), mode='bilinear', align_corners=False) + resized_source = common_upscale(source[i].unsqueeze(0).movedim(-1, 1), bbox_width, bbox_height, "lanczos", "disabled") + resized_source = resized_source.movedim(1, -1).squeeze(0) + + # Resize mask to match the bounding box dimensions + resized_mask = common_upscale(mask[i].unsqueeze(0).unsqueeze(0), bbox_width, bbox_height, "bilinear", "disabled") + resized_mask = resized_mask.squeeze(0).squeeze(0) + + # Calculate padding values + pad_left = x0 + pad_right = W - x1 + pad_top = y0 + pad_bottom = H - y1 + + # Pad the resized source image and mask to fit the destination dimensions + padded_source = F.pad(resized_source, pad=(0, 0, pad_left, pad_right, pad_top, pad_bottom), mode='constant', value=0) + padded_mask = F.pad(resized_mask, pad=(pad_left, pad_right, pad_top, pad_bottom), mode='constant', value=0) + + # Ensure the padded mask has the correct shape + padded_mask = padded_mask.unsqueeze(2).expand(-1, -1, destination[i].shape[2]) + # Ensure the padded source has the correct shape + padded_source = padded_source.unsqueeze(2).expand(-1, -1, -1, destination[i].shape[2]).squeeze(2) + + # Combine the destination and padded source images using the mask + result = destination[i] * (1.0 - padded_mask) + padded_source * padded_mask + + output_list.append(result) + + + return (torch.stack(output_list),) + +class ImageCropByMaskBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "masks": ("MASK", ), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "padding": ("INT", {"default": 0, "min": 0, "max": 4096, "step": 1, }), + "preserve_size": ("BOOLEAN", {"default": False}), + "bg_color": ("STRING", {"default": "0, 0, 0", "tooltip": "Color as RGB values in range 0-255, separated by commas."}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", ) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Crops the input images based on the provided masks." + + def crop(self, image, masks, width, height, bg_color, padding, preserve_size): + B, H, W, C = image.shape + BM, HM, WM = masks.shape + mask_count = BM + if HM != H or WM != W: + masks = F.interpolate(masks.unsqueeze(1), size=(H, W), mode='nearest-exact').squeeze(1) + print(masks.shape) + output_images = [] + output_masks = [] + + bg_color = [int(x.strip())/255.0 for x in bg_color.split(",")] + + # For each mask + for i in range(mask_count): + curr_mask = masks[i] + + # Find bounds + y_indices, x_indices = torch.nonzero(curr_mask, as_tuple=True) + if len(y_indices) == 0 or len(x_indices) == 0: + continue + + # Get exact bounds with padding + min_y = max(0, y_indices.min().item() - padding) + max_y = min(H, y_indices.max().item() + 1 + padding) + min_x = max(0, x_indices.min().item() - padding) + max_x = min(W, x_indices.max().item() + 1 + padding) + + # Ensure mask has correct shape for multiplication + curr_mask = curr_mask.unsqueeze(-1).expand(-1, -1, C) + + # Crop image and mask together + cropped_img = image[0, min_y:max_y, min_x:max_x, :] + cropped_mask = curr_mask[min_y:max_y, min_x:max_x, :] + + crop_h, crop_w = cropped_img.shape[0:2] + new_w = crop_w + new_h = crop_h + + if not preserve_size or crop_w > width or crop_h > height: + scale = min(width/crop_w, height/crop_h) + new_w = int(crop_w * scale) + new_h = int(crop_h * scale) + + # Resize RGB + resized_img = common_upscale(cropped_img.permute(2,0,1).unsqueeze(0), new_w, new_h, "lanczos", "disabled").squeeze(0).permute(1,2,0) + resized_mask = torch.nn.functional.interpolate( + cropped_mask.permute(2,0,1).unsqueeze(0), + size=(new_h, new_w), + mode='nearest' + ).squeeze(0).permute(1,2,0) + else: + resized_img = cropped_img + resized_mask = cropped_mask + + # Create empty tensors + new_img = torch.zeros((height, width, 3), dtype=image.dtype) + new_mask = torch.zeros((height, width), dtype=image.dtype) + + # Pad both + pad_x = (width - new_w) // 2 + pad_y = (height - new_h) // 2 + new_img[pad_y:pad_y+new_h, pad_x:pad_x+new_w, :] = resized_img + if len(resized_mask.shape) == 3: + resized_mask = resized_mask[:,:,0] # Take first channel if 3D + new_mask[pad_y:pad_y+new_h, pad_x:pad_x+new_w] = resized_mask + + output_images.append(new_img) + output_masks.append(new_mask) + + if not output_images: + return (torch.zeros((0, height, width, 3), dtype=image.dtype),) + + out_rgb = torch.stack(output_images, dim=0) + out_masks = torch.stack(output_masks, dim=0) + + # Apply mask to RGB + mask_expanded = out_masks.unsqueeze(-1).expand(-1, -1, -1, 3) + background_color = torch.tensor(bg_color, dtype=torch.float32, device=image.device) + out_rgb = out_rgb * mask_expanded + background_color * (1 - mask_expanded) + + return (out_rgb, out_masks) + +class ImagePadKJ: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "extra_padding": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "pad_mode": (["edge", "color"],), + "color": ("STRING", {"default": "0, 0, 0", "tooltip": "Color as RGB values in range 0-255, separated by commas."}), + }, + "optional": { + "mask": ("MASK", ), + "target_width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, "forceInput": True}), + "target_height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, "forceInput": True}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", ) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "pad" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Pad the input image and optionally mask with the specified padding." + + def pad(self, image, left, right, top, bottom, extra_padding, color, pad_mode, mask=None, target_width=None, target_height=None): + B, H, W, C = image.shape + + # Resize masks to image dimensions if necessary + if mask is not None: + BM, HM, WM = mask.shape + if HM != H or WM != W: + mask = F.interpolate(mask.unsqueeze(1), size=(H, W), mode='nearest-exact').squeeze(1) + + # Parse background color + bg_color = [int(x.strip())/255.0 for x in color.split(",")] + if len(bg_color) == 1: + bg_color = bg_color * 3 # Grayscale to RGB + bg_color = torch.tensor(bg_color, dtype=image.dtype, device=image.device) + + # Calculate padding sizes with extra padding + if target_width is not None and target_height is not None: + if extra_padding > 0: + image = common_upscale(image.movedim(-1, 1), W - extra_padding, H - extra_padding, "lanczos", "disabled").movedim(1, -1) + B, H, W, C = image.shape + + padded_width = target_width + padded_height = target_height + pad_left = (padded_width - W) // 2 + pad_right = padded_width - W - pad_left + pad_top = (padded_height - H) // 2 + pad_bottom = padded_height - H - pad_top + else: + pad_left = left + extra_padding + pad_right = right + extra_padding + pad_top = top + extra_padding + pad_bottom = bottom + extra_padding + + padded_width = W + pad_left + pad_right + padded_height = H + pad_top + pad_bottom + out_image = torch.zeros((B, padded_height, padded_width, C), dtype=image.dtype, device=image.device) + + # Fill padded areas + for b in range(B): + if pad_mode == "edge": + # Pad with edge color + # Define edge pixels + top_edge = image[b, 0, :, :] + bottom_edge = image[b, H-1, :, :] + left_edge = image[b, :, 0, :] + right_edge = image[b, :, W-1, :] + + # Fill borders with edge colors + out_image[b, :pad_top, :, :] = top_edge.mean(dim=0) + out_image[b, pad_top+H:, :, :] = bottom_edge.mean(dim=0) + out_image[b, :, :pad_left, :] = left_edge.mean(dim=0) + out_image[b, :, pad_left+W:, :] = right_edge.mean(dim=0) + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + else: + # Pad with specified background color + out_image[b, :, :, :] = bg_color.unsqueeze(0).unsqueeze(0) # Expand for H and W dimensions + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + + + if mask is not None: + out_masks = torch.nn.functional.pad( + mask, + (pad_left, pad_right, pad_top, pad_bottom), + mode='replicate' + ) + else: + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + for m in range(B): + out_masks[m, pad_top:pad_top+H, pad_left:pad_left+W] = 0.0 + + return (out_image, out_masks) diff --git a/docs/hel-892/resize-compare-reference/layer-tree.json b/docs/hel-892/resize-compare-reference/layer-tree.json new file mode 100644 index 00000000..c76735aa --- /dev/null +++ b/docs/hel-892/resize-compare-reference/layer-tree.json @@ -0,0 +1 @@ +{"sha":"89014d833d2ad0998d724090eff1456692692a1d","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/89014d833d2ad0998d724090eff1456692692a1d","tree":[{"path":".gitignore","mode":"100644","type":"blob","sha":"868a782e6ab6b8f889a936ee11843a011641377d","size":46,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/868a782e6ab6b8f889a936ee11843a011641377d"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"e2568121d079845a006a2935286b89d1721e9559","size":1067,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e2568121d079845a006a2935286b89d1721e9559"},{"path":"README.MD","mode":"100644","type":"blob","sha":"0a964c51c611447a5c2537e9e4c4367f387867c1","size":150213,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0a964c51c611447a5c2537e9e4c4367f387867c1"},{"path":"README_CN.MD","mode":"100644","type":"blob","sha":"1ec4a0e199286fb8fad96a15f9e87e9742700595","size":133695,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ec4a0e199286fb8fad96a15f9e87e9742700595"},{"path":"__init__.py","mode":"100644","type":"blob","sha":"fd50801f4dfafb2049c6755b14d5474f19cefa7a","size":1572,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fd50801f4dfafb2049c6755b14d5474f19cefa7a"},{"path":"custom_size.ini.example","mode":"100644","type":"blob","sha":"fc8de0cabc541f55e914228bf8c91c52df9c0e49","size":123,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fc8de0cabc541f55e914228bf8c91c52df9c0e49"},{"path":"font","mode":"040000","type":"tree","sha":"16c301154c20a2f246324587251f5994fef19ed2","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/16c301154c20a2f246324587251f5994fef19ed2"},{"path":"font/Alibaba-PuHuiTi-Heavy.ttf","mode":"100644","type":"blob","sha":"7eb047f4fa407b63012947b3651e5cb0f3394c75","size":2167400,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7eb047f4fa407b63012947b3651e5cb0f3394c75"},{"path":"image","mode":"040000","type":"tree","sha":"ee1898acbe25e456e690fe635816ee8ef91ccc46","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/ee1898acbe25e456e690fe635816ee8ef91ccc46"},{"path":"image/HSV_node.jpg","mode":"100644","type":"blob","sha":"17e151399dfaab44a193ccc3bde55417cc345222","size":80138,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/17e151399dfaab44a193ccc3bde55417cc345222"},{"path":"image/LAB_node.jpg","mode":"100644","type":"blob","sha":"9ca4ceea42ee6947488d79f82091f5cb507e709f","size":78829,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9ca4ceea42ee6947488d79f82091f5cb507e709f"},{"path":"image/RGB_node.jpg","mode":"100644","type":"blob","sha":"7c4ec5abbf90d9079c2aed2cd21139f01cdc94fe","size":53451,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7c4ec5abbf90d9079c2aed2cd21139f01cdc94fe"},{"path":"image/RGB_value_example.jpg","mode":"100644","type":"blob","sha":"c6e15951542264b565b9a9caacee8403900552ae","size":81237,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c6e15951542264b565b9a9caacee8403900552ae"},{"path":"image/YUV_node.jpg","mode":"100644","type":"blob","sha":"112979872d2592be447fb677d23a952422420f4b","size":56478,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/112979872d2592be447fb677d23a952422420f4b"},{"path":"image/add_grain_example.jpg","mode":"100644","type":"blob","sha":"cfd54ae298332cc46ccc12a7b7f9a394aa9972a8","size":141123,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cfd54ae298332cc46ccc12a7b7f9a394aa9972a8"},{"path":"image/add_grain_node.jpg","mode":"100644","type":"blob","sha":"bd73a6dc69863c33f8d62c838aa1158af7fe167e","size":40515,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bd73a6dc69863c33f8d62c838aa1158af7fe167e"},{"path":"image/any_rerouter_node.jpg","mode":"100644","type":"blob","sha":"6e9020d438d7f9153e8166139eb5b21db753f210","size":44415,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6e9020d438d7f9153e8166139eb5b21db753f210"},{"path":"image/auto_adjust_example.jpg","mode":"100644","type":"blob","sha":"ccec70e355aa85e23d4ad92f49e5671144579383","size":115842,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ccec70e355aa85e23d4ad92f49e5671144579383"},{"path":"image/auto_adjust_node.jpg","mode":"100644","type":"blob","sha":"3ac9828238738586e01539acf7cd02ae7bc39ff6","size":59389,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3ac9828238738586e01539acf7cd02ae7bc39ff6"},{"path":"image/auto_adjust_v2_example.jpg","mode":"100644","type":"blob","sha":"9bf2e899cad201d9301dc48f7353a45d48abfb71","size":142588,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9bf2e899cad201d9301dc48f7353a45d48abfb71"},{"path":"image/auto_adjust_v2_node.jpg","mode":"100644","type":"blob","sha":"909ac779fa993fbecec3b0cf18f5e10aaa904f26","size":56167,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/909ac779fa993fbecec3b0cf18f5e10aaa904f26"},{"path":"image/auto_brightness_example.jpg","mode":"100644","type":"blob","sha":"368ca93164eeea9f2a77a081c04d8d49b603cdf8","size":169827,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/368ca93164eeea9f2a77a081c04d8d49b603cdf8"},{"path":"image/auto_brightness_node.jpg","mode":"100644","type":"blob","sha":"0d108b3a50f734e383deb2b619cdc5e0a180159b","size":62531,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0d108b3a50f734e383deb2b619cdc5e0a180159b"},{"path":"image/batch_selector_example.jpg","mode":"100644","type":"blob","sha":"04f07867f0c003508c503e441de228f6725c6b8e","size":95731,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04f07867f0c003508c503e441de228f6725c6b8e"},{"path":"image/batch_selector_node.jpg","mode":"100644","type":"blob","sha":"66c007e9ded6cd1bac1f8f35167858febc538dd2","size":41824,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/66c007e9ded6cd1bac1f8f35167858febc538dd2"},{"path":"image/ben_ultra_example.jpg","mode":"100644","type":"blob","sha":"b7901c6af19e9461b74acd401aa968779fb1b24f","size":342254,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7901c6af19e9461b74acd401aa968779fb1b24f"},{"path":"image/ben_ultra_node.jpg","mode":"100644","type":"blob","sha":"80a94c23230a8fbeb6c8559447356220437c4a59","size":107033,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80a94c23230a8fbeb6c8559447356220437c4a59"},{"path":"image/blend_mode_result.jpg","mode":"100644","type":"blob","sha":"732d7b8f7fbe50301ea0da97a46c2cceef8ce096","size":460297,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/732d7b8f7fbe50301ea0da97a46c2cceef8ce096"},{"path":"image/blend_mode_v2_example.jpg","mode":"100644","type":"blob","sha":"b2fbaadfa1d9ae0b15538648cf5211eff96f214b","size":862386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b2fbaadfa1d9ae0b15538648cf5211eff96f214b"},{"path":"image/blendif_mask_example.jpg","mode":"100644","type":"blob","sha":"fc712398e7d21fc9486a5c0ae2d103311b824e48","size":190602,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fc712398e7d21fc9486a5c0ae2d103311b824e48"},{"path":"image/blendif_mask_node.jpg","mode":"100644","type":"blob","sha":"2e6b974ed92722d558eb1753b4c4943e9dee49f4","size":45491,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2e6b974ed92722d558eb1753b4c4943e9dee49f4"},{"path":"image/boolean_node.jpg","mode":"100644","type":"blob","sha":"8acd4b9a064dc2e5c693138e744b3aa2688968b0","size":33514,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8acd4b9a064dc2e5c693138e744b3aa2688968b0"},{"path":"image/boolean_operator_node.jpg","mode":"100644","type":"blob","sha":"3b734d5d4bd1bf69543aabeb0212ff84d69c2ee5","size":36364,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3b734d5d4bd1bf69543aabeb0212ff84d69c2ee5"},{"path":"image/boolean_operator_v2_node.jpg","mode":"100644","type":"blob","sha":"5ecca287620565006582f776e97923c1f09805fa","size":36228,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5ecca287620565006582f776e97923c1f09805fa"},{"path":"image/boolean_oprator_v2_node.jpg","mode":"100644","type":"blob","sha":"5e539b6084c1a7aac28eea09573d3916e68b521c","size":43322,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5e539b6084c1a7aac28eea09573d3916e68b521c"},{"path":"image/brightness_&_contrast_node.jpg","mode":"100644","type":"blob","sha":"f32c9d8c72a1e79df1343a46d04da7e5364c4364","size":96254,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f32c9d8c72a1e79df1343a46d04da7e5364c4364"},{"path":"image/channel_shake_example.jpg","mode":"100644","type":"blob","sha":"f76f904ca5aa50908b398d93f38ce773e24c5310","size":173676,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f76f904ca5aa50908b398d93f38ce773e24c5310"},{"path":"image/channel_shake_node.jpg","mode":"100644","type":"blob","sha":"2879dea91e0edb076fac580ef04ee83262675c26","size":87458,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2879dea91e0edb076fac580ef04ee83262675c26"},{"path":"image/check_mask_node.jpg","mode":"100644","type":"blob","sha":"368a6c0934761692a7c7851c71d4c1993c7ca767","size":34796,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/368a6c0934761692a7c7851c71d4c1993c7ca767"},{"path":"image/check_mask_v2_node.jpg","mode":"100644","type":"blob","sha":"be3a0911d8b85a204758ad90f40d5c5bb3c8bd67","size":36550,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/be3a0911d8b85a204758ad90f40d5c5bb3c8bd67"},{"path":"image/chioce_text_preset_node.jpg","mode":"100644","type":"blob","sha":"3cd675afbfbf854c18b56234c688778c9ca64643","size":117818,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3cd675afbfbf854c18b56234c688778c9ca64643"},{"path":"image/choice_text_preset_example.jpg","mode":"100644","type":"blob","sha":"b69730a6841ecea8d3a543b4464ba6fc3fbcc74a","size":343516,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b69730a6841ecea8d3a543b4464ba6fc3fbcc74a"},{"path":"image/color_adapter_example.jpg","mode":"100644","type":"blob","sha":"08a17e35086f3bd1d9b2fe673f0755729c157763","size":251383,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/08a17e35086f3bd1d9b2fe673f0755729c157763"},{"path":"image/color_adapter_node.jpg","mode":"100644","type":"blob","sha":"3c41662e7001edc5044a4359c97a1782a0c75fca","size":71876,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3c41662e7001edc5044a4359c97a1782a0c75fca"},{"path":"image/color_balance_example.jpg","mode":"100644","type":"blob","sha":"e019e68bc921d0bc660da929cc08e7af74de2e91","size":179559,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e019e68bc921d0bc660da929cc08e7af74de2e91"},{"path":"image/color_balance_node.jpg","mode":"100644","type":"blob","sha":"aeaa81e58724d3c1079e54c37b4d29aeb9f0ad36","size":69029,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/aeaa81e58724d3c1079e54c37b4d29aeb9f0ad36"},{"path":"image/color_image_example.jpg","mode":"100644","type":"blob","sha":"fe6567a32b3c297f1af07b7b8893f2d67ba1a7cf","size":110027,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fe6567a32b3c297f1af07b7b8893f2d67ba1a7cf"},{"path":"image/color_image_node.jpg","mode":"100644","type":"blob","sha":"38b44779c3aad2521a95569af4a660f8e37c7e4d","size":98559,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/38b44779c3aad2521a95569af4a660f8e37c7e4d"},{"path":"image/color_image_v2_node.jpg","mode":"100644","type":"blob","sha":"c343475097a3103db5297d63c770af5821a44d06","size":53412,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c343475097a3103db5297d63c770af5821a44d06"},{"path":"image/color_map_node.jpg","mode":"100644","type":"blob","sha":"99fd5f9a268d347c9521be8c3afd4bd1c4c0fd8a","size":91518,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/99fd5f9a268d347c9521be8c3afd4bd1c4c0fd8a"},{"path":"image/color_name_example.jpg","mode":"100644","type":"blob","sha":"c5c672190504e68599d66a5ca26d999d2dd16039","size":92839,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c5c672190504e68599d66a5ca26d999d2dd16039"},{"path":"image/color_name_node.jpg","mode":"100644","type":"blob","sha":"cce4e76a523b8c07b9ee6c9b8f95ffbb2c1840d1","size":75857,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cce4e76a523b8c07b9ee6c9b8f95ffbb2c1840d1"},{"path":"image/color_negative_example.jpg","mode":"100644","type":"blob","sha":"c6c8a8a6fef053c73af3e513229e5a0735df561f","size":525053,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c6c8a8a6fef053c73af3e513229e5a0735df561f"},{"path":"image/color_negative_node.jpg","mode":"100644","type":"blob","sha":"dae46332d238de5a36125b3c2a6a138add9b26ba","size":91433,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dae46332d238de5a36125b3c2a6a138add9b26ba"},{"path":"image/color_of_shadow_and_highlight_example.jpg","mode":"100644","type":"blob","sha":"49973b9b1b8642ce55ab2898e3bce5a7ee5d35aa","size":244182,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/49973b9b1b8642ce55ab2898e3bce5a7ee5d35aa"},{"path":"image/color_of_shadow_and_highlight_node.jpg","mode":"100644","type":"blob","sha":"b7e695a4f95d86e8e110b694bccf2dd69799d4a9","size":115832,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7e695a4f95d86e8e110b694bccf2dd69799d4a9"},{"path":"image/color_overlay_example.jpg","mode":"100644","type":"blob","sha":"99c2ef1723d72fef1842f95df4343fef3746f9ce","size":122452,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/99c2ef1723d72fef1842f95df4343fef3746f9ce"},{"path":"image/color_overlay_node.jpg","mode":"100644","type":"blob","sha":"2a9b38a29ec2edc1d5845b9f7cbdad7c765086fa","size":65828,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2a9b38a29ec2edc1d5845b9f7cbdad7c765086fa"},{"path":"image/color_picker.jpg","mode":"100644","type":"blob","sha":"7323337f14fb88e97b91e1b54f14333dfbcf534e","size":63421,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7323337f14fb88e97b91e1b54f14333dfbcf534e"},{"path":"image/color_temperature_example.jpg","mode":"100644","type":"blob","sha":"3e93e0e99f034b66fa8e9209ec12483ae9042583","size":193365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e93e0e99f034b66fa8e9209ec12483ae9042583"},{"path":"image/color_temperature_node.jpg","mode":"100644","type":"blob","sha":"faa7f7843230f22cb8906e6f7f8f02090e953e18","size":54916,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/faa7f7843230f22cb8906e6f7f8f02090e953e18"},{"path":"image/colormap_result.jpg","mode":"100644","type":"blob","sha":"2a7ea280982136f83976c8aeebe41dbbe187d354","size":531623,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2a7ea280982136f83976c8aeebe41dbbe187d354"},{"path":"image/corp_box_resolve_node.jpg","mode":"100644","type":"blob","sha":"66fe0d35d59cdb43b416d94adaf6e3f6c30def08","size":48400,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/66fe0d35d59cdb43b416d94adaf6e3f6c30def08"},{"path":"image/corp_by_mask_example.jpg","mode":"100644","type":"blob","sha":"43e1efba93aec0b4a4bea503d8dbb2c255c25b8e","size":355941,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/43e1efba93aec0b4a4bea503d8dbb2c255c25b8e"},{"path":"image/corp_by_mask_node.jpg","mode":"100644","type":"blob","sha":"a02cefeb6ca4de31d6179af3d1a6fa637fa418a8","size":113028,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a02cefeb6ca4de31d6179af3d1a6fa637fa418a8"},{"path":"image/corp_by_mask_v2_node.jpg","mode":"100644","type":"blob","sha":"e68209f2a4d965908d8baed7f20746ca5929a1fd","size":81957,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e68209f2a4d965908d8baed7f20746ca5929a1fd"},{"path":"image/create_gradient_mask_example.jpg","mode":"100644","type":"blob","sha":"df04384258c44c01ba9e4ad4ace222e9558d8e92","size":297079,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/df04384258c44c01ba9e4ad4ace222e9558d8e92"},{"path":"image/create_gradient_mask_example2.jpg","mode":"100644","type":"blob","sha":"d3a7876324d5eb49511bcd5ac44dc7021396c171","size":215489,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d3a7876324d5eb49511bcd5ac44dc7021396c171"},{"path":"image/create_gradient_mask_node.jpg","mode":"100644","type":"blob","sha":"16e01dbbc414fe1d6609cc1ca96c32b9f4206651","size":89451,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/16e01dbbc414fe1d6609cc1ca96c32b9f4206651"},{"path":"image/data_nodes_example.jpg","mode":"100644","type":"blob","sha":"6995c0905e23ce2c596a970e2a193b3bbb0a7b65","size":164108,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6995c0905e23ce2c596a970e2a193b3bbb0a7b65"},{"path":"image/drop_shadow_example.jpg","mode":"100644","type":"blob","sha":"f21fe1838c84590109a1bac231d79896826442c6","size":148107,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f21fe1838c84590109a1bac231d79896826442c6"},{"path":"image/drop_shadow_node.jpg","mode":"100644","type":"blob","sha":"04c85893f8d732a373a1303f9508e73e1f290b67","size":84208,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04c85893f8d732a373a1303f9508e73e1f290b67"},{"path":"image/exposure_example.jpg","mode":"100644","type":"blob","sha":"79f6bc2c2d7ab420e04f32b69f43e3e32fa44dca","size":227556,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/79f6bc2c2d7ab420e04f32b69f43e3e32fa44dca"},{"path":"image/extend_canvas_example.jpg","mode":"100644","type":"blob","sha":"7e15756f6c3014e9c0d5f6602849b17935c158c3","size":220537,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7e15756f6c3014e9c0d5f6602849b17935c158c3"},{"path":"image/extend_canvas_node.jpg","mode":"100644","type":"blob","sha":"743b68d3a3b379b2417e0d540e5867fa746db8c8","size":110845,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/743b68d3a3b379b2417e0d540e5867fa746db8c8"},{"path":"image/extend_canvas_v2_node.jpg","mode":"100644","type":"blob","sha":"99873a70839d2af048da71b3745ee3e7b22fdd5c","size":94489,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/99873a70839d2af048da71b3745ee3e7b22fdd5c"},{"path":"image/film_example.jpg","mode":"100644","type":"blob","sha":"1e59ce7fab8de325546cac4a3fa44189c8536c9a","size":494998,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1e59ce7fab8de325546cac4a3fa44189c8536c9a"},{"path":"image/film_node.jpg","mode":"100644","type":"blob","sha":"19e8312636ec208452035c7c26ff1538d40704e7","size":121613,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19e8312636ec208452035c7c26ff1538d40704e7"},{"path":"image/film_v2_node.jpg","mode":"100644","type":"blob","sha":"35a22224a043c82f03091f6d3d4ec13ad91ea3db","size":85623,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/35a22224a043c82f03091f6d3d4ec13ad91ea3db"},{"path":"image/float_node.jpg","mode":"100644","type":"blob","sha":"17106da8703bd7024ca1a8fe6ea8ad915fb7c720","size":36567,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/17106da8703bd7024ca1a8fe6ea8ad915fb7c720"},{"path":"image/flux_kontext_image_scale_node.jpg","mode":"100644","type":"blob","sha":"d9b5c98771c635403fdb3cc976d835bde5185815","size":55682,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d9b5c98771c635403fdb3cc976d835bde5185815"},{"path":"image/flux_kontext_image_scale_node_example.jpg","mode":"100644","type":"blob","sha":"d623c63404a68ce43c0aa18ea35b88bfb0080f6d","size":829717,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d623c63404a68ce43c0aa18ea35b88bfb0080f6d"},{"path":"image/gamma_node.jpg","mode":"100644","type":"blob","sha":"9c34762bcaec56a3d1c102494800277a519a3f2a","size":68141,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9c34762bcaec56a3d1c102494800277a519a3f2a"},{"path":"image/gaussian_blur_example.jpg","mode":"100644","type":"blob","sha":"1fc3533de9982f27fcd5437afeda543aaebb1a4c","size":125072,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1fc3533de9982f27fcd5437afeda543aaebb1a4c"},{"path":"image/gaussian_blur_v2_node.jpg","mode":"100644","type":"blob","sha":"29c12e86a861d67b92f2e944c5b64cbf7080043c","size":70890,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/29c12e86a861d67b92f2e944c5b64cbf7080043c"},{"path":"image/get_image_size_node.jpg","mode":"100644","type":"blob","sha":"419e0bf90f77384b7c36537cf6f69eda8f57f62f","size":50114,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/419e0bf90f77384b7c36537cf6f69eda8f57f62f"},{"path":"image/get_main_color_and_color_name_example.jpg","mode":"100644","type":"blob","sha":"96c80196218fa21c056cb365ddeeaa0ea1c3ff02","size":441626,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/96c80196218fa21c056cb365ddeeaa0ea1c3ff02"},{"path":"image/get_main_color_node.jpg","mode":"100644","type":"blob","sha":"485ad3efbdbbccbf24a539a965fcc720afdf2eb5","size":98875,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/485ad3efbdbbccbf24a539a965fcc720afdf2eb5"},{"path":"image/get_main_color_v2_example.jpg","mode":"100644","type":"blob","sha":"6a9d73a629f467950fa46e828d67d45944f3564f","size":210798,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6a9d73a629f467950fa46e828d67d45944f3564f"},{"path":"image/get_main_colors_example.jpg","mode":"100644","type":"blob","sha":"3379e75c26b0d4c26ca20ac4bb38ad140f3acbfc","size":478389,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3379e75c26b0d4c26ca20ac4bb38ad140f3acbfc"},{"path":"image/gradient_image_example.jpg","mode":"100644","type":"blob","sha":"c8ced063a0a85e1e4b347d5e4a3f2254f2c2d6bb","size":136260,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c8ced063a0a85e1e4b347d5e4a3f2254f2c2d6bb"},{"path":"image/gradient_image_node.jpg","mode":"100644","type":"blob","sha":"e86c33259ea00ff6b7571e380cf3b50d04e08c2b","size":92762,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e86c33259ea00ff6b7571e380cf3b50d04e08c2b"},{"path":"image/gradient_image_node_v2.jpg","mode":"100644","type":"blob","sha":"ba2a31383d6c03b7e958343a36713476fa5f2d28","size":66171,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ba2a31383d6c03b7e958343a36713476fa5f2d28"},{"path":"image/gradient_overlay_example.jpg","mode":"100644","type":"blob","sha":"7bcb141f032fc9e893c654b65091b71f7b19aa01","size":131113,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7bcb141f032fc9e893c654b65091b71f7b19aa01"},{"path":"image/gradient_overlay_node.jpg","mode":"100644","type":"blob","sha":"59d4d6392e293e51aa05aa5fc5a43f2bed330da0","size":88365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/59d4d6392e293e51aa05aa5fc5a43f2bed330da0"},{"path":"image/gray_value_node.jpg","mode":"100644","type":"blob","sha":"244dc18cb83d0f132aaa839cb2fb97fff393028a","size":34411,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/244dc18cb83d0f132aaa839cb2fb97fff393028a"},{"path":"image/halftone_example.jpg","mode":"100644","type":"blob","sha":"9ca20e1e012b4a22515bcee4c669b0a54daa89bc","size":617473,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9ca20e1e012b4a22515bcee4c669b0a54daa89bc"},{"path":"image/halftone_node.jpg","mode":"100644","type":"blob","sha":"1dc0ebe42f1bd7865f141f5e236b946422b233b8","size":132065,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1dc0ebe42f1bd7865f141f5e236b946422b233b8"},{"path":"image/hdr_effects_example.jpg","mode":"100644","type":"blob","sha":"bc0961110b7f555a63d7e71f1693456756105a51","size":261380,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bc0961110b7f555a63d7e71f1693456756105a51"},{"path":"image/hdr_effects_node.jpg","mode":"100644","type":"blob","sha":"7460d41cd7e755ed698b65502ca842715caf852e","size":84344,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7460d41cd7e755ed698b65502ca842715caf852e"},{"path":"image/hl_frequency_detail_restore_example.jpg","mode":"100644","type":"blob","sha":"a8c635dedc9191b21e9d7401e5df09783b5b6e02","size":140184,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a8c635dedc9191b21e9d7401e5df09783b5b6e02"},{"path":"image/hl_frequency_detail_restore_node.jpg","mode":"100644","type":"blob","sha":"0d80665b05db155aa90a74fa1885a17944dd6492","size":43524,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0d80665b05db155aa90a74fa1885a17944dd6492"},{"path":"image/hsv_value_node.jpg","mode":"100644","type":"blob","sha":"c28baf9c83ced105f48e8a9c76a97518beb981c6","size":27047,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c28baf9c83ced105f48e8a9c76a97518beb981c6"},{"path":"image/icmask_crop_back_node.jpg","mode":"100644","type":"blob","sha":"af43cbfa3a994537dbe6f258fe7c3036112843fd","size":48582,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af43cbfa3a994537dbe6f258fe7c3036112843fd"},{"path":"image/icmask_example.jpg","mode":"100644","type":"blob","sha":"19b7f4c195cbfd203efe4a4b3750dcb5dec08365","size":1014401,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19b7f4c195cbfd203efe4a4b3750dcb5dec08365"},{"path":"image/icmask_node.jpg","mode":"100644","type":"blob","sha":"3a15f27565e695922603915e8fef32fbfd959f4c","size":83801,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3a15f27565e695922603915e8fef32fbfd959f4c"},{"path":"image/if_example.jpg","mode":"100644","type":"blob","sha":"2573daf794f12235e1a3343285a599c0fc1d1944","size":175656,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2573daf794f12235e1a3343285a599c0fc1d1944"},{"path":"image/if_node.jpg","mode":"100644","type":"blob","sha":"2632acc486134ef98fa75ce153ce57e3df7b9e3f","size":33843,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2632acc486134ef98fa75ce153ce57e3df7b9e3f"},{"path":"image/image_auto_crop_example.jpg","mode":"100644","type":"blob","sha":"59377b905af335a1d7394759c57c67f20f522ad6","size":270386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/59377b905af335a1d7394759c57c67f20f522ad6"},{"path":"image/image_auto_crop_node.jpg","mode":"100644","type":"blob","sha":"d3d2f831e132c3afb5120cdd63fbc6813eaf13e9","size":166305,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d3d2f831e132c3afb5120cdd63fbc6813eaf13e9"},{"path":"image/image_auto_crop_v2_node.jpg","mode":"100644","type":"blob","sha":"8420c78b95b3823db2cd32991d4c70e5026542ea","size":155630,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8420c78b95b3823db2cd32991d4c70e5026542ea"},{"path":"image/image_auto_crop_v3_node.jpg","mode":"100644","type":"blob","sha":"4bd168315502fba6ccc3c61ac67df37d580e2e1c","size":105364,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4bd168315502fba6ccc3c61ac67df37d580e2e1c"},{"path":"image/image_blend_advance_example.jpg","mode":"100644","type":"blob","sha":"a28a6aba3ab2640ac5f6ff34e1b3469e5f7b966b","size":289180,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a28a6aba3ab2640ac5f6ff34e1b3469e5f7b966b"},{"path":"image/image_blend_advance_node.jpg","mode":"100644","type":"blob","sha":"88c33e65fb2a9b615f5825e3afa328bafdff22b2","size":167996,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/88c33e65fb2a9b615f5825e3afa328bafdff22b2"},{"path":"image/image_blend_example.jpg","mode":"100644","type":"blob","sha":"ee8751dca573f5568a9c4fff96e746c15d1a3808","size":244283,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ee8751dca573f5568a9c4fff96e746c15d1a3808"},{"path":"image/image_blend_node.jpg","mode":"100644","type":"blob","sha":"e6a32feaea79adf8cff0114030ec4af018e1e0a0","size":58657,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e6a32feaea79adf8cff0114030ec4af018e1e0a0"},{"path":"image/image_channel_merge_example.jpg","mode":"100644","type":"blob","sha":"f7ba6767565e1d31e12802fe38577cf3aa6d2f2d","size":227492,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f7ba6767565e1d31e12802fe38577cf3aa6d2f2d"},{"path":"image/image_channel_merge_node.jpg","mode":"100644","type":"blob","sha":"7607ae741ac3cd31f8829f391ac4b0d2cd0d6fb2","size":75788,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7607ae741ac3cd31f8829f391ac4b0d2cd0d6fb2"},{"path":"image/image_channel_split_example.jpg","mode":"100644","type":"blob","sha":"9410d4cf0670734872f759346b1ae01c05329361","size":138349,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9410d4cf0670734872f759346b1ae01c05329361"},{"path":"image/image_channel_split_node.jpg","mode":"100644","type":"blob","sha":"e2e694f1d37cf7b17b376ce90c2426c50ee689d3","size":92365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e2e694f1d37cf7b17b376ce90c2426c50ee689d3"},{"path":"image/image_combine_alpha_node.jpg","mode":"100644","type":"blob","sha":"95445534514b651cb6c222a4caeabca68bd7b24a","size":44476,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/95445534514b651cb6c222a4caeabca68bd7b24a"},{"path":"image/image_hub_example.jpg","mode":"100644","type":"blob","sha":"f3506b0d9cd2eb7d742b7cf60caa46d876edd157","size":291955,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f3506b0d9cd2eb7d742b7cf60caa46d876edd157"},{"path":"image/image_hub_node.jpg","mode":"100644","type":"blob","sha":"f3156184837e2c6d73607880ca83249028c9dc15","size":107412,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f3156184837e2c6d73607880ca83249028c9dc15"},{"path":"image/image_mask_scale_as_example.jpg","mode":"100644","type":"blob","sha":"43710e011b2da458d013a19e69c3a2a34205adbc","size":237180,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/43710e011b2da458d013a19e69c3a2a34205adbc"},{"path":"image/image_mask_scale_as_node.jpg","mode":"100644","type":"blob","sha":"d008110d6e3961b4858dee43eac79335215c5b6f","size":42988,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d008110d6e3961b4858dee43eac79335215c5b6f"},{"path":"image/image_mask_scale_as_v2_example.jpg","mode":"100644","type":"blob","sha":"fb4635a8a1065874ad07dfd8c51ad70aa861afef","size":268182,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fb4635a8a1065874ad07dfd8c51ad70aa861afef"},{"path":"image/image_mask_scale_as_v2_node.jpg","mode":"100644","type":"blob","sha":"ec3c4279609d9c705b325bca09f82c72c03c5163","size":104215,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ec3c4279609d9c705b325bca09f82c72c03c5163"},{"path":"image/image_opacity_example.jpg","mode":"100644","type":"blob","sha":"a0212ea91cc7b26f72ce55680330643798b9bae5","size":87838,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a0212ea91cc7b26f72ce55680330643798b9bae5"},{"path":"image/image_reel_composit_node.jpg","mode":"100644","type":"blob","sha":"78f37ee7b33cb6ff887e6e59f8c115d72805c32e","size":118640,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/78f37ee7b33cb6ff887e6e59f8c115d72805c32e"},{"path":"image/image_reel_example.jpg","mode":"100644","type":"blob","sha":"a27162febf01a63672bb27b5e704b9ff03ee56ed","size":334910,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a27162febf01a63672bb27b5e704b9ff03ee56ed"},{"path":"image/image_reel_node.jpg","mode":"100644","type":"blob","sha":"c96c12d4ffd912ada5282e1c60729dc794909524","size":67714,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c96c12d4ffd912ada5282e1c60729dc794909524"},{"path":"image/image_remove_alpha_example.jpg","mode":"100644","type":"blob","sha":"7d25b4910b76885d255ff086fcc0f06cf125e475","size":293085,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7d25b4910b76885d255ff086fcc0f06cf125e475"},{"path":"image/image_remove_alpha_node.jpg","mode":"100644","type":"blob","sha":"95b6c256fa2dc62834265c05f9e4d84bd281827c","size":38440,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/95b6c256fa2dc62834265c05f9e4d84bd281827c"},{"path":"image/image_scale_by_aspect_ratio_example.jpg","mode":"100644","type":"blob","sha":"fefc5bb79b3dae6935f40a28f72d529a03ae8361","size":180781,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fefc5bb79b3dae6935f40a28f72d529a03ae8361"},{"path":"image/image_scale_by_aspect_ratio_node.jpg","mode":"100644","type":"blob","sha":"5101253d0548494ca43e288d8509c85265e82669","size":68082,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5101253d0548494ca43e288d8509c85265e82669"},{"path":"image/image_scale_by_aspect_ratio_v2_node.jpg","mode":"100644","type":"blob","sha":"ff990f725596497662dfe8c145cf2999a4bc297c","size":77275,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ff990f725596497662dfe8c145cf2999a4bc297c"},{"path":"image/image_scale_restore_example.jpg","mode":"100644","type":"blob","sha":"f9f49929d992f2f319104ef545592ef5868b8579","size":292384,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f9f49929d992f2f319104ef545592ef5868b8579"},{"path":"image/image_scale_restore_node.jpg","mode":"100644","type":"blob","sha":"76ee428a606fd31253ad2f0afa9a23c5a0e11105","size":51037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/76ee428a606fd31253ad2f0afa9a23c5a0e11105"},{"path":"image/image_scale_restore_v2_node.jpg","mode":"100644","type":"blob","sha":"af76907ff1fceb665c26cb0c0c836e68c3c0671d","size":51412,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af76907ff1fceb665c26cb0c0c836e68c3c0671d"},{"path":"image/image_shift_example.jpg","mode":"100644","type":"blob","sha":"3f2c04ea7669f3d5411e8cdc2b79f5a49c313767","size":143592,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3f2c04ea7669f3d5411e8cdc2b79f5a49c313767"},{"path":"image/image_shift_node.jpg","mode":"100644","type":"blob","sha":"3213b05bcc20f7630b71c894786ba5aa32419b86","size":112821,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3213b05bcc20f7630b71c894786ba5aa32419b86"},{"path":"image/image_tagger_save_example.jpg","mode":"100644","type":"blob","sha":"79e6bd3ffdd45493e9056d8ec54832c0e055afaf","size":300867,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/79e6bd3ffdd45493e9056d8ec54832c0e055afaf"},{"path":"image/image_tagger_save_node.jpg","mode":"100644","type":"blob","sha":"04ddb17c8e02be229ae506a14ac30955d392e154","size":95050,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04ddb17c8e02be229ae506a14ac30955d392e154"},{"path":"image/image_tagger_save_v2_node.jpg","mode":"100644","type":"blob","sha":"84aef56681832c891f19ead204973804ec0bfbbf","size":172439,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/84aef56681832c891f19ead204973804ec0bfbbf"},{"path":"image/image_to_mask_example.jpg","mode":"100644","type":"blob","sha":"0772242c9f7a21ddbe3ec79d21c4c3f2825cb28f","size":105436,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0772242c9f7a21ddbe3ec79d21c4c3f2825cb28f"},{"path":"image/image_to_mask_node.jpg","mode":"100644","type":"blob","sha":"fd70f9d246c349037d3c9a76944e68da0571123d","size":52874,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fd70f9d246c349037d3c9a76944e68da0571123d"},{"path":"image/inner_glow_example.jpg","mode":"100644","type":"blob","sha":"97f24f766460c354b70a4d97e619e21553005092","size":144004,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/97f24f766460c354b70a4d97e619e21553005092"},{"path":"image/inner_glow_node.jpg","mode":"100644","type":"blob","sha":"edbe125afcbd86af0c47742d194c82be97baae9b","size":88043,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/edbe125afcbd86af0c47742d194c82be97baae9b"},{"path":"image/inner_shadow_example.jpg","mode":"100644","type":"blob","sha":"a56312b2f1a8af8e2b22ddb17d9f0b3dd992d1b5","size":145357,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a56312b2f1a8af8e2b22ddb17d9f0b3dd992d1b5"},{"path":"image/inner_shadow_node.jpg","mode":"100644","type":"blob","sha":"7650221a548c4372b10473d8b172b7b630670a58","size":76697,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7650221a548c4372b10473d8b172b7b630670a58"},{"path":"image/integer_node.jpg","mode":"100644","type":"blob","sha":"4b1f37ea7fc0d846fd87f28575b71634379c6b06","size":35101,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4b1f37ea7fc0d846fd87f28575b71634379c6b06"},{"path":"image/layer_image_transform_example.jpg","mode":"100644","type":"blob","sha":"6252b6c20bb9385a223e2df109084119bf951be8","size":278572,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6252b6c20bb9385a223e2df109084119bf951be8"},{"path":"image/layer_image_transform_node.jpg","mode":"100644","type":"blob","sha":"f1d9c611c20d39bdcce60491d41408b22c5ab6b3","size":113630,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f1d9c611c20d39bdcce60491d41408b22c5ab6b3"},{"path":"image/layer_mask_transform_node.jpg","mode":"100644","type":"blob","sha":"5cb73177c725df6b85256139a1a1b08603c47f2c","size":114113,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5cb73177c725df6b85256139a1a1b08603c47f2c"},{"path":"image/layercolor_nodes.jpg","mode":"100644","type":"blob","sha":"1ada38433645156660d73a2c9c50fd4d20b75e08","size":175500,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ada38433645156660d73a2c9c50fd4d20b75e08"},{"path":"image/layercolor_title.jpg","mode":"100644","type":"blob","sha":"96b0ac0d06745dbd7d92eb7b904d69f8621f0590","size":299618,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/96b0ac0d06745dbd7d92eb7b904d69f8621f0590"},{"path":"image/layerfilter_nodes.jpg","mode":"100644","type":"blob","sha":"4c281f62a348989c0ade060b3ba6474ac0ab26ec","size":132248,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4c281f62a348989c0ade060b3ba6474ac0ab26ec"},{"path":"image/layermask_nodes.jpg","mode":"100644","type":"blob","sha":"89743ee21ceb4f0a59538c344c631bb5b821fe92","size":270257,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/89743ee21ceb4f0a59538c344c631bb5b821fe92"},{"path":"image/layerstyle_nodes.jpg","mode":"100644","type":"blob","sha":"01ee85e9fcadf3b7682b800a1d9297b33387ad53","size":149709,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/01ee85e9fcadf3b7682b800a1d9297b33387ad53"},{"path":"image/layerstyle_title.jpg","mode":"100644","type":"blob","sha":"d034b76922ac1bfd8f364c727f66d7f23de83205","size":300036,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d034b76922ac1bfd8f364c727f66d7f23de83205"},{"path":"image/layerutility_nodes.jpg","mode":"100644","type":"blob","sha":"2cf27537c78b7796bfd1cea0db8fe3216ba90ecb","size":495450,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2cf27537c78b7796bfd1cea0db8fe3216ba90ecb"},{"path":"image/levels_example.jpg","mode":"100644","type":"blob","sha":"0c292ad84b640d6b347275a38ca7c52b1d18c986","size":115797,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0c292ad84b640d6b347275a38ca7c52b1d18c986"},{"path":"image/levels_node.jpg","mode":"100644","type":"blob","sha":"d222c28a34d4649355a1fed32055387d4b062b1e","size":53236,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d222c28a34d4649355a1fed32055387d4b062b1e"},{"path":"image/light_leak_example.jpg","mode":"100644","type":"blob","sha":"bff5535cf51949ef5f7cf9edd5c1f32c4320673c","size":172469,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bff5535cf51949ef5f7cf9edd5c1f32c4320673c"},{"path":"image/light_leak_node.jpg","mode":"100644","type":"blob","sha":"597e1dd3ba05eafb107a4fddaf28fa5f94dedb02","size":95881,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/597e1dd3ba05eafb107a4fddaf28fa5f94dedb02"},{"path":"image/load_ben_model_node.jpg","mode":"100644","type":"blob","sha":"95d0dc79ee62e1ab6f05e2d57fae99a586c52f69","size":72100,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/95d0dc79ee62e1ab6f05e2d57fae99a586c52f69"},{"path":"image/load_images_from_path_node.jpg","mode":"100644","type":"blob","sha":"ba35004afc4c65ecb70cfc383862e43b8a6f155d","size":97080,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ba35004afc4c65ecb70cfc383862e43b8a6f155d"},{"path":"image/load_segfromer_model_node.jpg","mode":"100644","type":"blob","sha":"2484eb518c6f6ee808574bc31104c108fcd0072d","size":70049,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2484eb518c6f6ee808574bc31104c108fcd0072d"},{"path":"image/load_vqa_model_node.jpg","mode":"100644","type":"blob","sha":"b28fe27ff3cf76097a14cd8092c488928a3531b2","size":89372,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b28fe27ff3cf76097a14cd8092c488928a3531b2"},{"path":"image/lut_apply_example.jpg","mode":"100644","type":"blob","sha":"5c61f39d75eeee0e6915001656df554275ecb334","size":127316,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5c61f39d75eeee0e6915001656df554275ecb334"},{"path":"image/lut_apply_node.jpg","mode":"100644","type":"blob","sha":"7f2747dbb109c48ca91c1b206f7ce9b785f2102c","size":41290,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7f2747dbb109c48ca91c1b206f7ce9b785f2102c"},{"path":"image/mask_box_detect_example.jpg","mode":"100644","type":"blob","sha":"8d5c4c9d97d633d87f88bd8f42afa88964fd4717","size":277984,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8d5c4c9d97d633d87f88bd8f42afa88964fd4717"},{"path":"image/mask_box_detect_node.jpg","mode":"100644","type":"blob","sha":"46c586fa453018dfc187f6895210a3900d52298d","size":99142,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/46c586fa453018dfc187f6895210a3900d52298d"},{"path":"image/mask_box_extend_example.jpg","mode":"100644","type":"blob","sha":"8147a93508d2b53b737e73053b786524706fcc6a","size":444112,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8147a93508d2b53b737e73053b786524706fcc6a"},{"path":"image/mask_box_extend_node.jpg","mode":"100644","type":"blob","sha":"45fc4a24616596b0b218833c1d5f09f7d36164d5","size":146879,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/45fc4a24616596b0b218833c1d5f09f7d36164d5"},{"path":"image/mask_by_color_example.jpg","mode":"100644","type":"blob","sha":"a7688dbd16c22cd5e338f1ddecda0f670dc380dc","size":105262,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a7688dbd16c22cd5e338f1ddecda0f670dc380dc"},{"path":"image/mask_by_color_node.jpg","mode":"100644","type":"blob","sha":"fc6561a90f381fa8034bcfb07084d2513f2bbeee","size":64046,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fc6561a90f381fa8034bcfb07084d2513f2bbeee"},{"path":"image/mask_edge_compare.jpg","mode":"100644","type":"blob","sha":"fb52eb1ab5cdcbe387811e878a3a769c9a7f75dd","size":219591,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fb52eb1ab5cdcbe387811e878a3a769c9a7f75dd"},{"path":"image/mask_edge_shrink_example.jpg","mode":"100644","type":"blob","sha":"e74bc831186edf8a2a5dcfbc4d9da9a986826049","size":140488,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e74bc831186edf8a2a5dcfbc4d9da9a986826049"},{"path":"image/mask_edge_shrink_node.jpg","mode":"100644","type":"blob","sha":"e10296b6cc1d7ad234e5b4e1c2c6769f4ee8c36a","size":101524,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e10296b6cc1d7ad234e5b4e1c2c6769f4ee8c36a"},{"path":"image/mask_edge_ultra_detail_example.jpg","mode":"100644","type":"blob","sha":"16332d43a0cb019640aa0c4759e71c4a02f4f1c8","size":253635,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/16332d43a0cb019640aa0c4759e71c4a02f4f1c8"},{"path":"image/mask_edge_ultra_detail_node.jpg","mode":"100644","type":"blob","sha":"7361f345b45d9a0471fc4969556dcb7eac1e5f06","size":105896,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7361f345b45d9a0471fc4969556dcb7eac1e5f06"},{"path":"image/mask_edge_ultra_detail_v2_example.jpg","mode":"100644","type":"blob","sha":"a888b6bc9d447cb017bb58c137c9421c5bf1fa3c","size":355382,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a888b6bc9d447cb017bb58c137c9421c5bf1fa3c"},{"path":"image/mask_edge_ultra_detail_v2_node.jpg","mode":"100644","type":"blob","sha":"3d06041afc85ae5cb10ca569eb5e6977b3918589","size":61626,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d06041afc85ae5cb10ca569eb5e6977b3918589"},{"path":"image/mask_gradient_example.jpg","mode":"100644","type":"blob","sha":"078a15656dca84954bb94099b1367e741d05f5fc","size":318668,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/078a15656dca84954bb94099b1367e741d05f5fc"},{"path":"image/mask_gradient_node.jpg","mode":"100644","type":"blob","sha":"3d01978069fe1894268e49170cde014a929498b4","size":94669,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d01978069fe1894268e49170cde014a929498b4"},{"path":"image/mask_grain_example.jpg","mode":"100644","type":"blob","sha":"7472bf719080a160b793c67472bcde65a5263060","size":72218,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7472bf719080a160b793c67472bcde65a5263060"},{"path":"image/mask_grain_node.jpg","mode":"100644","type":"blob","sha":"2bd5b75779a8e16e377d63a0b7d4febf8af72d33","size":35256,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2bd5b75779a8e16e377d63a0b7d4febf8af72d33"},{"path":"image/mask_grow_example.jpg","mode":"100644","type":"blob","sha":"be89c6d04487ba7cba5e1ed7f83af60c96c173c9","size":125273,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/be89c6d04487ba7cba5e1ed7f83af60c96c173c9"},{"path":"image/mask_grow_node.jpg","mode":"100644","type":"blob","sha":"35b83f8f51e11f2645d8fd0a04d3b7b5a3311d30","size":99806,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/35b83f8f51e11f2645d8fd0a04d3b7b5a3311d30"},{"path":"image/mask_invert.jpg","mode":"100644","type":"blob","sha":"98f8a542c95bc3da976965c37633a36dc45def45","size":118640,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/98f8a542c95bc3da976965c37633a36dc45def45"},{"path":"image/mask_invert_node.jpg","mode":"100644","type":"blob","sha":"b340f8c1094aa58dd84b8ded81016bbfd9bb8df3","size":34590,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b340f8c1094aa58dd84b8ded81016bbfd9bb8df3"},{"path":"image/mask_motion_blur_example.jpg","mode":"100644","type":"blob","sha":"2e5dabe98dd7449b306cc67434077315b6716e43","size":150480,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2e5dabe98dd7449b306cc67434077315b6716e43"},{"path":"image/mask_motion_blur_node.jpg","mode":"100644","type":"blob","sha":"a7ef18ca1b32d1a95c85137dfe203be4e2d6c715","size":79980,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a7ef18ca1b32d1a95c85137dfe203be4e2d6c715"},{"path":"image/mask_preview_example.jpg","mode":"100644","type":"blob","sha":"653b056513b124d445179c7c315dfaccad1b9720","size":83535,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/653b056513b124d445179c7c315dfaccad1b9720"},{"path":"image/mask_stroke_example.jpg","mode":"100644","type":"blob","sha":"cb998e2c5eb8d8fdfb3dec4648ca05b7c95215b4","size":138265,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cb998e2c5eb8d8fdfb3dec4648ca05b7c95215b4"},{"path":"image/mask_stroke_node.jpg","mode":"100644","type":"blob","sha":"923a2c97ea4740d514d0404e87f04957585571a9","size":94318,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/923a2c97ea4740d514d0404e87f04957585571a9"},{"path":"image/menu_layer_color.jpg","mode":"100644","type":"blob","sha":"b5b74e6e568d4d4a3cd26ee5dd5d0cebb5ce1f0c","size":75224,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b5b74e6e568d4d4a3cd26ee5dd5d0cebb5ce1f0c"},{"path":"image/menu_layer_filter.jpg","mode":"100644","type":"blob","sha":"40278c88acf591e9decf8521f6dca75e967d63be","size":74662,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/40278c88acf591e9decf8521f6dca75e967d63be"},{"path":"image/menu_layer_mask.jpg","mode":"100644","type":"blob","sha":"e75329c1843a5dc47eb7e700800059a3d665e3bb","size":87215,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e75329c1843a5dc47eb7e700800059a3d665e3bb"},{"path":"image/menu_layer_style.jpg","mode":"100644","type":"blob","sha":"82c804073fc168f01db8c73078aeab37595e5751","size":68277,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/82c804073fc168f01db8c73078aeab37595e5751"},{"path":"image/menu_layer_utility.jpg","mode":"100644","type":"blob","sha":"7b69ece9949421f59697b3798f7cf6036bdf9fa2","size":140079,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7b69ece9949421f59697b3798f7cf6036bdf9fa2"},{"path":"image/motion_blur_example.jpg","mode":"100644","type":"blob","sha":"8f29ed815a32e9a3c107770ad17423cf7c34075b","size":94053,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8f29ed815a32e9a3c107770ad17423cf7c34075b"},{"path":"image/name_to_color_example.jpg","mode":"100644","type":"blob","sha":"f0e17b7e042f12162a8a8e572d549868a0613f81","size":109324,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f0e17b7e042f12162a8a8e572d549868a0613f81"},{"path":"image/name_to_color_node.jpg","mode":"100644","type":"blob","sha":"ab80bae0fab66715b575d42f982c4b53209fa213","size":145074,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ab80bae0fab66715b575d42f982c4b53209fa213"},{"path":"image/node-menu.jpg","mode":"100644","type":"blob","sha":"8edcf7f9cbe24a36565205e46d12a398ef0fc61b","size":70767,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8edcf7f9cbe24a36565205e46d12a398ef0fc61b"},{"path":"image/node-search.jpg","mode":"100644","type":"blob","sha":"47ac2173cc21008e2077bd0bd90c6fd3b6be79f9","size":98091,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/47ac2173cc21008e2077bd0bd90c6fd3b6be79f9"},{"path":"image/number_calculator_node.jpg","mode":"100644","type":"blob","sha":"80c424ef93274c6ad5acaba715b27108507f7491","size":40476,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80c424ef93274c6ad5acaba715b27108507f7491"},{"path":"image/number_calculator_v2_node.jpg","mode":"100644","type":"blob","sha":"d13a018ccc3714a6ef47bdc9ff3036d62e3180b5","size":50037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d13a018ccc3714a6ef47bdc9ff3036d62e3180b5"},{"path":"image/outer_glow_example.jpg","mode":"100644","type":"blob","sha":"29555876d98b4e11d8fbae3ffe4ed50e2b4e0c41","size":149618,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/29555876d98b4e11d8fbae3ffe4ed50e2b4e0c41"},{"path":"image/outer_glow_node.jpg","mode":"100644","type":"blob","sha":"196af9e3f3c0d498764749340bac9c8a16328277","size":92824,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/196af9e3f3c0d498764749340bac9c8a16328277"},{"path":"image/pixel_spread_example.jpg","mode":"100644","type":"blob","sha":"753ef9fa726ff832bad498fa755d2063e6380351","size":229790,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/753ef9fa726ff832bad498fa755d2063e6380351"},{"path":"image/pixel_spread_node.jpg","mode":"100644","type":"blob","sha":"6367910f1186578c3bb26686a36983c87498548a","size":66488,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6367910f1186578c3bb26686a36983c87498548a"},{"path":"image/print_info_node.jpg","mode":"100644","type":"blob","sha":"31fcf7af1ab7933383620b6825ea58dbc558f5b8","size":33148,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/31fcf7af1ab7933383620b6825ea58dbc558f5b8"},{"path":"image/purge_vram_example.jpg","mode":"100644","type":"blob","sha":"981dfff26833ea31d761fc6dc98c6339cfde0478","size":122548,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/981dfff26833ea31d761fc6dc98c6339cfde0478"},{"path":"image/purge_vram_v2_example.jpg","mode":"100644","type":"blob","sha":"ad6d44b8ff3cb953ba2284d575828d8ae91d6f9c","size":68807,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ad6d44b8ff3cb953ba2284d575828d8ae91d6f9c"},{"path":"image/queue_stop_example.jpg","mode":"100644","type":"blob","sha":"131522d2282889fe5d433ec0a37f586ff455056c","size":102397,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/131522d2282889fe5d433ec0a37f586ff455056c"},{"path":"image/queue_stop_node.jpg","mode":"100644","type":"blob","sha":"0d3a7781d2aeb0198bd17b78072087e05a32b36f","size":41132,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0d3a7781d2aeb0198bd17b78072087e05a32b36f"},{"path":"image/random_generator_example.jpg","mode":"100644","type":"blob","sha":"0ee8f643e789af19253f2c115422b09a94137eff","size":370992,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0ee8f643e789af19253f2c115422b09a94137eff"},{"path":"image/random_generator_node.jpg","mode":"100644","type":"blob","sha":"205f8a199fb7c015e23712f5c412b184490cac64","size":130888,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/205f8a199fb7c015e23712f5c412b184490cac64"},{"path":"image/random_generator_v2_node.jpg","mode":"100644","type":"blob","sha":"dcb80cd975109b45bc1bfa410609a93f77579434","size":105368,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dcb80cd975109b45bc1bfa410609a93f77579434"},{"path":"image/rembg_ultra_example.jpg","mode":"100644","type":"blob","sha":"dae672c04b11f5a2e2b1b67df3229effcf125767","size":444259,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dae672c04b11f5a2e2b1b67df3229effcf125767"},{"path":"image/rembg_ultra_node.jpg","mode":"100644","type":"blob","sha":"1ae3d784b48718096f19ec6c73dff6c7cfbd9452","size":94085,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ae3d784b48718096f19ec6c73dff6c7cfbd9452"},{"path":"image/restore_crop_box_node.jpg","mode":"100644","type":"blob","sha":"80861423fd2a12e66b6b76cbfac697c6ecc02dce","size":89709,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80861423fd2a12e66b6b76cbfac697c6ecc02dce"},{"path":"image/rmbg_ultra_v2_node.jpg","mode":"100644","type":"blob","sha":"98c55c77a9f674127f6de1d7cb5efc4cbee0c494","size":55133,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/98c55c77a9f674127f6de1d7cb5efc4cbee0c494"},{"path":"image/rounded_rectangle_example.jpg","mode":"100644","type":"blob","sha":"65f78cfde9e79ec72fb414578ee5f73c97b1c5a0","size":559367,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/65f78cfde9e79ec72fb414578ee5f73c97b1c5a0"},{"path":"image/rounded_rectangle_node.jpg","mode":"100644","type":"blob","sha":"eae315a679bc572ed7249c9abaa8228cfa2eb241","size":118558,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/eae315a679bc572ed7249c9abaa8228cfa2eb241"},{"path":"image/segformer_clothes_example.jpg","mode":"100644","type":"blob","sha":"6a34981479858c3caef3d3fb56de985786609c7e","size":188037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6a34981479858c3caef3d3fb56de985786609c7e"},{"path":"image/segformer_clothes_pipeline_node.jpg","mode":"100644","type":"blob","sha":"1b3febd61a0f11941d1353f878c78d3d4f66823d","size":102560,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1b3febd61a0f11941d1353f878c78d3d4f66823d"},{"path":"image/segformer_clothes_setting_node.jpg","mode":"100644","type":"blob","sha":"f4d82cffdb57fc51cb10f9054be9a788086d95a6","size":161356,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f4d82cffdb57fc51cb10f9054be9a788086d95a6"},{"path":"image/segformer_fashion_example.jpg","mode":"100644","type":"blob","sha":"28028fef3c166fc4693676c399c1fe27e5182d29","size":216951,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/28028fef3c166fc4693676c399c1fe27e5182d29"},{"path":"image/segformer_fashion_pipeline_node.jpg","mode":"100644","type":"blob","sha":"b0a8309dee1dd26815cab20444e5c4315eed6999","size":182387,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b0a8309dee1dd26815cab20444e5c4315eed6999"},{"path":"image/segformer_fashion_setting_node.jpg","mode":"100644","type":"blob","sha":"cc26a04794c0e2b0ceb9698263c5745591c7b76a","size":290052,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cc26a04794c0e2b0ceb9698263c5745591c7b76a"},{"path":"image/segformer_ultra_example.jpg","mode":"100644","type":"blob","sha":"8d31cd1aecf7954edffa5d4f8f0359b425ff92df","size":175909,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8d31cd1aecf7954edffa5d4f8f0359b425ff92df"},{"path":"image/segformer_ultra_node.jpg","mode":"100644","type":"blob","sha":"1232a9274ea74df885ce1e8d9e2b7333aa67f3d2","size":102140,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1232a9274ea74df885ce1e8d9e2b7333aa67f3d2"},{"path":"image/segformer_ultra_v2_node.jpg","mode":"100644","type":"blob","sha":"526c0018aba68e471344a69265f9f7045dff3c8f","size":66481,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/526c0018aba68e471344a69265f9f7045dff3c8f"},{"path":"image/segfromer_ultra_v3_node.jpg","mode":"100644","type":"blob","sha":"b7c323f1c60cdbeadeee167e04867e80afea116d","size":116196,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7c323f1c60cdbeadeee167e04867e80afea116d"},{"path":"image/segment_anything_ultra_compare.jpg","mode":"100644","type":"blob","sha":"550df2cc66edcc866d6d892ac623bdaf6263273a","size":264019,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/550df2cc66edcc866d6d892ac623bdaf6263273a"},{"path":"image/segment_anything_ultra_example.jpg","mode":"100644","type":"blob","sha":"e816dc2c6cd0ba11c40a5f4cba9229bbf060ab25","size":262563,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e816dc2c6cd0ba11c40a5f4cba9229bbf060ab25"},{"path":"image/segment_anything_ultra_node.jpg","mode":"100644","type":"blob","sha":"9a9e7fce23bfe887a5b59a52fd66c2487f161c87","size":126428,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9a9e7fce23bfe887a5b59a52fd66c2487f161c87"},{"path":"image/segment_anything_ultra_v2_node.jpg","mode":"100644","type":"blob","sha":"ea31e86fa11ceaec839000dde32b45c7df8f6c19","size":166556,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ea31e86fa11ceaec839000dde32b45c7df8f6c19"},{"path":"image/shadow_and_highlight_mask_example.jpg","mode":"100644","type":"blob","sha":"6f275d0f98d8f8f99607bfb7165ef9a3f8047ad4","size":251532,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6f275d0f98d8f8f99607bfb7165ef9a3f8047ad4"},{"path":"image/shadow_and_highlight_mask_node.jpg","mode":"100644","type":"blob","sha":"b2eb6bfc259adc338eb801a0325c211d57cd5550","size":75219,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b2eb6bfc259adc338eb801a0325c211d57cd5550"},{"path":"image/sharp_and_soft_example.jpg","mode":"100644","type":"blob","sha":"6aff6a9d7eb7f4b7bc2d282ea24def19d7362b42","size":293791,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6aff6a9d7eb7f4b7bc2d282ea24def19d7362b42"},{"path":"image/sharp_and_soft_node.jpg","mode":"100644","type":"blob","sha":"7e2b0929dc604463ec8228971b543b2a0048cef1","size":77351,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7e2b0929dc604463ec8228971b543b2a0048cef1"},{"path":"image/show_blind_watermark_node.jpg","mode":"100644","type":"blob","sha":"166ffa528e3aa6593f4b466a9b4a003dfbac6798","size":32269,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/166ffa528e3aa6593f4b466a9b4a003dfbac6798"},{"path":"image/simple_text_image_example.jpg","mode":"100644","type":"blob","sha":"882313f32a1ff4db3a8e680d3b9cd0430dc7f882","size":362969,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/882313f32a1ff4db3a8e680d3b9cd0430dc7f882"},{"path":"image/simple_text_image_node.jpg","mode":"100644","type":"blob","sha":"e402cb67620891e2cec7c81fc8f597097cbb11cd","size":136323,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e402cb67620891e2cec7c81fc8f597097cbb11cd"},{"path":"image/skin_beauty_example.jpg","mode":"100644","type":"blob","sha":"96ee143269b98b09f0635fc385447e0568948557","size":181458,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/96ee143269b98b09f0635fc385447e0568948557"},{"path":"image/skin_beauty_node.jpg","mode":"100644","type":"blob","sha":"f81788d453bfe25a798eb3914e9e59b2cc2b0f69","size":73324,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f81788d453bfe25a798eb3914e9e59b2cc2b0f69"},{"path":"image/soft_light_example.jpg","mode":"100644","type":"blob","sha":"bd8558561c17649e8083efd4ccc9fe6774de0a9d","size":158617,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bd8558561c17649e8083efd4ccc9fe6774de0a9d"},{"path":"image/soft_light_node.jpg","mode":"100644","type":"blob","sha":"af736dd7d1ded943a8b2c54842ee1f1bd8e20ee0","size":55976,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af736dd7d1ded943a8b2c54842ee1f1bd8e20ee0"},{"path":"image/string_condition_example.jpg","mode":"100644","type":"blob","sha":"7ce4b44835658245938eff8432084f4564ac741e","size":123855,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7ce4b44835658245938eff8432084f4564ac741e"},{"path":"image/string_condition_node.jpg","mode":"100644","type":"blob","sha":"8754725efc822ec422b032fc09b60d9a43c5b24e","size":34197,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8754725efc822ec422b032fc09b60d9a43c5b24e"},{"path":"image/string_node.jpg","mode":"100644","type":"blob","sha":"59dee0c06565d389deec37a9647a534b451df2d6","size":39212,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/59dee0c06565d389deec37a9647a534b451df2d6"},{"path":"image/stroke_example.jpg","mode":"100644","type":"blob","sha":"ac382b3c040c267c90405a2f437c20d66074b499","size":138205,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ac382b3c040c267c90405a2f437c20d66074b499"},{"path":"image/stroke_node.jpg","mode":"100644","type":"blob","sha":"8e485bf5d67e60a53a6a0c333086ac8960bff2ac","size":92201,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8e485bf5d67e60a53a6a0c333086ac8960bff2ac"},{"path":"image/switch_case_example.jpg","mode":"100644","type":"blob","sha":"250b651b292a263e8d0ab015a2671ddc161234be","size":185706,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/250b651b292a263e8d0ab015a2671ddc161234be"},{"path":"image/switch_case_node.jpg","mode":"100644","type":"blob","sha":"3a58ca713df6a689410f8898ee9db83ac773eec4","size":46657,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3a58ca713df6a689410f8898ee9db83ac773eec4"},{"path":"image/text_box_node.jpg","mode":"100644","type":"blob","sha":"62e107c43405ba2336f231f1c9a85cbfb09dce17","size":47699,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62e107c43405ba2336f231f1c9a85cbfb09dce17"},{"path":"image/text_image_example.jpg","mode":"100644","type":"blob","sha":"35f62c3c4db1dc04f05501ea6dfbecd724c23a02","size":277353,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/35f62c3c4db1dc04f05501ea6dfbecd724c23a02"},{"path":"image/text_image_node.jpg","mode":"100644","type":"blob","sha":"3b17fdde4d9c02ae0984d5bbdd520044c7363823","size":230645,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3b17fdde4d9c02ae0984d5bbdd520044c7363823"},{"path":"image/text_image_v2_node.jpg","mode":"100644","type":"blob","sha":"8c8619516c82177fd2515a37ff4e54e8b21140f2","size":131487,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8c8619516c82177fd2515a37ff4e54e8b21140f2"},{"path":"image/text_join_example.jpg","mode":"100644","type":"blob","sha":"0c97dd6858293d9d447de852b5e8eb2203433de2","size":106731,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0c97dd6858293d9d447de852b5e8eb2203433de2"},{"path":"image/text_join_v2_node.jpg","mode":"100644","type":"blob","sha":"bcb2a241613f45d256fd6b58541271f2460a33f7","size":47383,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bcb2a241613f45d256fd6b58541271f2460a33f7"},{"path":"image/text_preseter_node.jpg","mode":"100644","type":"blob","sha":"19126e84dd04f7a626da35292b7e8b443b39b912","size":105252,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19126e84dd04f7a626da35292b7e8b443b39b912"},{"path":"image/title.jpg","mode":"100644","type":"blob","sha":"854647ec8ed7b707225930713768a07fc0d74244","size":392262,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/854647ec8ed7b707225930713768a07fc0d74244"},{"path":"image/ultra_nodes.jpg","mode":"100644","type":"blob","sha":"4c5e16ea7cd2fd34ca0ba0be5c69ef308fb21f47","size":194763,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4c5e16ea7cd2fd34ca0ba0be5c69ef308fb21f47"},{"path":"image/ultra_v2_nodes_example.jpg","mode":"100644","type":"blob","sha":"d9b06c4a4298d063d062093a829e17bdb5bce679","size":330442,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d9b06c4a4298d063d062093a829e17bdb5bce679"},{"path":"image/vqa_prompt_example.jpg","mode":"100644","type":"blob","sha":"0a1b7ffda47c478096cb0ece506c15ee22e949cc","size":232045,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0a1b7ffda47c478096cb0ece506c15ee22e949cc"},{"path":"image/vqa_prompt_node.jpg","mode":"100644","type":"blob","sha":"1ba0223d5a67517cee99e5c1c2191a991e53c6ff","size":116402,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ba0223d5a67517cee99e5c1c2191a991e53c6ff"},{"path":"image/water_color_example.jpg","mode":"100644","type":"blob","sha":"36429724d5a01a4bdb51e8fe585421989ee0ddd3","size":149740,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/36429724d5a01a4bdb51e8fe585421989ee0ddd3"},{"path":"image/water_color_node.jpg","mode":"100644","type":"blob","sha":"8a66baa9f859b24e03008aa1a2f578e697b64a97","size":77141,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8a66baa9f859b24e03008aa1a2f578e697b64a97"},{"path":"image/xy2percent_example.jpg","mode":"100644","type":"blob","sha":"ec377513f1e442ae0b222be12d152c5227e480e3","size":288864,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ec377513f1e442ae0b222be12d152c5227e480e3"},{"path":"image/xy2percent_node.jpg","mode":"100644","type":"blob","sha":"20a1f4adcd6c25ad4e67faacf55d1c9ae94dcba9","size":66026,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/20a1f4adcd6c25ad4e67faacf55d1c9ae94dcba9"},{"path":"install_requirements.bat","mode":"100644","type":"blob","sha":"0b219eb5545bfb3bcb62e5e5be75c65470c4f278","size":657,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0b219eb5545bfb3bcb62e5e5be75c65470c4f278"},{"path":"install_requirements_aki.bat","mode":"100644","type":"blob","sha":"77773d2a1ae39208dc0bb68a5830369d07555129","size":645,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/77773d2a1ae39208dc0bb68a5830369d07555129"},{"path":"js","mode":"040000","type":"tree","sha":"51c549f4861a25911ed7bb69666aec04d60dd9c6","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/51c549f4861a25911ed7bb69666aec04d60dd9c6"},{"path":"js/dz_comfy_shared.js","mode":"100644","type":"blob","sha":"381b462111576487d7abca9e2a82d1d68084691c","size":9649,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/381b462111576487d7abca9e2a82d1d68084691c"},{"path":"js/dz_mtb_widgets.js","mode":"100644","type":"blob","sha":"e44133b1137857bf1c18bf529aee8b87800a0ccb","size":29907,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e44133b1137857bf1c18bf529aee8b87800a0ccb"},{"path":"js/dz_node_palette.js","mode":"100644","type":"blob","sha":"6356500554fc8521ebab833fa5c3cd4bfdd09c3d","size":1178,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6356500554fc8521ebab833fa5c3cd4bfdd09c3d"},{"path":"js/dz_parse-css.js","mode":"100644","type":"blob","sha":"1ae53b044a046d1dc4e151a7b95bca52ce3f730b","size":10252,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ae53b044a046d1dc4e151a7b95bca52ce3f730b"},{"path":"locales","mode":"040000","type":"tree","sha":"7c7b124b1df5a9ca896449bc89fe5f3ba900d4fb","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/7c7b124b1df5a9ca896449bc89fe5f3ba900d4fb"},{"path":"locales/fr","mode":"040000","type":"tree","sha":"a3fa1b3cc44c7c2585c356d9a16ccdd8ab45a1a2","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/a3fa1b3cc44c7c2585c356d9a16ccdd8ab45a1a2"},{"path":"locales/fr/nodeDefs.json","mode":"100644","type":"blob","sha":"4da7545a5cb2aa6461c91d98ce2b4170cf67eecf","size":92999,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4da7545a5cb2aa6461c91d98ce2b4170cf67eecf"},{"path":"locales/ja","mode":"040000","type":"tree","sha":"80d40f9b6cc4a8dc3d316344be96fc6740758633","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/80d40f9b6cc4a8dc3d316344be96fc6740758633"},{"path":"locales/ja/nodeDefs.json","mode":"100644","type":"blob","sha":"a2b990e90d0d4f91c23ade68e552292946912664","size":92386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a2b990e90d0d4f91c23ade68e552292946912664"},{"path":"locales/ko","mode":"040000","type":"tree","sha":"2e9b9f31a57d0a7d9c7da1738ea0ee9b7f0261fb","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/2e9b9f31a57d0a7d9c7da1738ea0ee9b7f0261fb"},{"path":"locales/ko/nodeDefs.json","mode":"100644","type":"blob","sha":"cb961f1f61492beb824c22ca6369ee6e9931af00","size":93642,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cb961f1f61492beb824c22ca6369ee6e9931af00"},{"path":"locales/ru","mode":"040000","type":"tree","sha":"179735a7a80bd11464ec555f83bc63d33dca18c4","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/179735a7a80bd11464ec555f83bc63d33dca18c4"},{"path":"locales/ru/nodeDefs.json","mode":"100644","type":"blob","sha":"98389ccaf03cba2a2460055304220737a8560820","size":101659,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/98389ccaf03cba2a2460055304220737a8560820"},{"path":"locales/zh","mode":"040000","type":"tree","sha":"6909082d81fe4dfda3453807c5d2cfd34ae6055f","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/6909082d81fe4dfda3453807c5d2cfd34ae6055f"},{"path":"locales/zh/nodeDefs.json","mode":"100644","type":"blob","sha":"fef37287a721b448795c315e3c912427312e4a92","size":91201,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fef37287a721b448795c315e3c912427312e4a92"},{"path":"lut","mode":"040000","type":"tree","sha":"6dc2b99f89d542a3c043fb20791c7bfe3fe78a92","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/6dc2b99f89d542a3c043fb20791c7bfe3fe78a92"},{"path":"lut/BlueArchitecture.cube","mode":"100644","type":"blob","sha":"858e350fa7f9a17f4d417e2c205af958fe8d34fd","size":970410,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/858e350fa7f9a17f4d417e2c205af958fe8d34fd"},{"path":"py","mode":"040000","type":"tree","sha":"5bce905f9764c9b83c18e56970b49bb0b99f32a7","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/5bce905f9764c9b83c18e56970b49bb0b99f32a7"},{"path":"py/add_grain.py","mode":"100644","type":"blob","sha":"b7d4c10334061d508c05aaf0a104e03d1e6e3c61","size":1449,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7d4c10334061d508c05aaf0a104e03d1e6e3c61"},{"path":"py/any_rerouter.py","mode":"100644","type":"blob","sha":"1e80079a91aa6f650e479b4e07c84c6d69b046fe","size":704,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1e80079a91aa6f650e479b4e07c84c6d69b046fe"},{"path":"py/batch_selector.py","mode":"100644","type":"blob","sha":"3d9ed66b114f4dc556ed205626c3c34807b56349","size":1929,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d9ed66b114f4dc556ed205626c3c34807b56349"},{"path":"py/blend_if_mask.py","mode":"100644","type":"blob","sha":"c5eca0b0bb546a9897d2afd8ba4c3f66ef0352a3","size":3477,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c5eca0b0bb546a9897d2afd8ba4c3f66ef0352a3"},{"path":"py/blendmodes.py","mode":"100644","type":"blob","sha":"fac31af2b8e6a907d0d819456b7987bade44b1b4","size":12590,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fac31af2b8e6a907d0d819456b7987bade44b1b4"},{"path":"py/briarmbg.py","mode":"100644","type":"blob","sha":"647bdc0c81b5326554f722e04a6c7f396274ea85","size":12912,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/647bdc0c81b5326554f722e04a6c7f396274ea85"},{"path":"py/channel_shake.py","mode":"100644","type":"blob","sha":"6f57f152de08b3b294a0d576f4da98772d516e63","size":2322,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6f57f152de08b3b294a0d576f4da98772d516e63"},{"path":"py/check_mask.py","mode":"100644","type":"blob","sha":"bfefaa6605010d9db687a5c3cc995e125047f17d","size":1669,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bfefaa6605010d9db687a5c3cc995e125047f17d"},{"path":"py/check_mask_v2.py","mode":"100644","type":"blob","sha":"e9984ddffe4945a7b467dccb3c87f753e38e96a7","size":2034,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e9984ddffe4945a7b467dccb3c87f753e38e96a7"},{"path":"py/color_adapter.py","mode":"100644","type":"blob","sha":"e54301fb963a35acb69aae6bcb71e008b36dccd2","size":1935,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e54301fb963a35acb69aae6bcb71e008b36dccd2"},{"path":"py/color_correct_HSV.py","mode":"100644","type":"blob","sha":"abcf9083dc922e33304ad5e83238b133491b84eb","size":1827,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/abcf9083dc922e33304ad5e83238b133491b84eb"},{"path":"py/color_correct_LAB.py","mode":"100644","type":"blob","sha":"62495d2b3245f4593b81050704e5046e8f165f74","size":1811,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62495d2b3245f4593b81050704e5046e8f165f74"},{"path":"py/color_correct_LUTapply.py","mode":"100644","type":"blob","sha":"5294c2ed70bb0f8a5fe00a5a4baa68aec2aa1ebf","size":1792,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5294c2ed70bb0f8a5fe00a5a4baa68aec2aa1ebf"},{"path":"py/color_correct_RGB.py","mode":"100644","type":"blob","sha":"6cd6710e8a1dd77e9e777e713617c941e9545caa","size":1810,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6cd6710e8a1dd77e9e777e713617c941e9545caa"},{"path":"py/color_correct_YUV.py","mode":"100644","type":"blob","sha":"824c2ede0fa7b37362d6bedc70a7ac47f9dd4141","size":1815,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/824c2ede0fa7b37362d6bedc70a7ac47f9dd4141"},{"path":"py/color_correct_auto_adjust.py","mode":"100644","type":"blob","sha":"9a0de9cf43dd24d9a0ab0464d6d7e2dfc98df152","size":4195,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9a0de9cf43dd24d9a0ab0464d6d7e2dfc98df152"},{"path":"py/color_correct_auto_adjust_v2.py","mode":"100644","type":"blob","sha":"796f4377ed07a94a6acf47c8d7f926bbf816b391","size":6122,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/796f4377ed07a94a6acf47c8d7f926bbf816b391"},{"path":"py/color_correct_auto_brightness.py","mode":"100644","type":"blob","sha":"4580338703c8bb2bfa651ba30216f468088892e0","size":2727,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4580338703c8bb2bfa651ba30216f468088892e0"},{"path":"py/color_correct_brightness_and_contrast.py","mode":"100644","type":"blob","sha":"1a48e10ca275e55db896b5c3b45649482299663d","size":4086,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1a48e10ca275e55db896b5c3b45649482299663d"},{"path":"py/color_correct_color_balance.py","mode":"100644","type":"blob","sha":"8ae2971f31236c1434cb7176bc90af4779c12c4a","size":2385,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8ae2971f31236c1434cb7176bc90af4779c12c4a"},{"path":"py/color_correct_color_temperature.py","mode":"100644","type":"blob","sha":"62b6e70b9431a09410f84ffc0c1fa5c409f2bd6d","size":2011,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62b6e70b9431a09410f84ffc0c1fa5c409f2bd6d"},{"path":"py/color_correct_exposure.py","mode":"100644","type":"blob","sha":"b51a5f8b045f3ed50bd7381304fba9152a32b174","size":1707,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b51a5f8b045f3ed50bd7381304fba9152a32b174"},{"path":"py/color_correct_gamma.py","mode":"100644","type":"blob","sha":"346898540a8091f68c7307127c39829c8a4e2052","size":1350,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/346898540a8091f68c7307127c39829c8a4e2052"},{"path":"py/color_correct_levels.py","mode":"100644","type":"blob","sha":"ff91776fede6a0c2ff5336ad570d901e940f8166","size":3500,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ff91776fede6a0c2ff5336ad570d901e940f8166"},{"path":"py/color_correct_shadow_and_highlight.py","mode":"100644","type":"blob","sha":"0eff8e7dd3c8eeaac1645f26a7458040874a029a","size":12920,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0eff8e7dd3c8eeaac1645f26a7458040874a029a"},{"path":"py/color_image.py","mode":"100644","type":"blob","sha":"0aedd74bfbf5c5f30ad8639bed6b681485acef19","size":1005,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0aedd74bfbf5c5f30ad8639bed6b681485acef19"},{"path":"py/color_image_v2.py","mode":"100644","type":"blob","sha":"6d214531830e69adaa6d0850d7d996e4b53aa596","size":2036,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6d214531830e69adaa6d0850d7d996e4b53aa596"},{"path":"py/color_map.py","mode":"100644","type":"blob","sha":"fa674006d946c901416afd5f0b449ee15f120cf0","size":1649,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fa674006d946c901416afd5f0b449ee15f120cf0"},{"path":"py/color_name.py","mode":"100644","type":"blob","sha":"c3440d931c124f1af536cf06458a4344ea6f5c55","size":73580,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c3440d931c124f1af536cf06458a4344ea6f5c55"},{"path":"py/color_negative.py","mode":"100644","type":"blob","sha":"51e704a7685c52b03d5dd144d8d973a4df8d9498","size":2852,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/51e704a7685c52b03d5dd144d8d973a4df8d9498"},{"path":"py/color_overlay _v2.py","mode":"100644","type":"blob","sha":"6710dcd764272f0d6bf1b982028727645c466bbb","size":3315,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6710dcd764272f0d6bf1b982028727645c466bbb"},{"path":"py/color_overlay.py","mode":"100644","type":"blob","sha":"2a896c123ad6206cc35a53a8249377d42113afca","size":3371,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2a896c123ad6206cc35a53a8249377d42113afca"},{"path":"py/color_picker.py","mode":"100644","type":"blob","sha":"4d19dfa079f7f0bc1bc2ded1ad828487dd1aae0d","size":869,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4d19dfa079f7f0bc1bc2ded1ad828487dd1aae0d"},{"path":"py/color_to_HSVvalue.py","mode":"100644","type":"blob","sha":"207f99e6087b50ce303c9c15b151633482531764","size":1137,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/207f99e6087b50ce303c9c15b151633482531764"},{"path":"py/color_to_RGBvalue.py","mode":"100644","type":"blob","sha":"7694ecfa7eb210703d1184be770e8e50822c1391","size":1171,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7694ecfa7eb210703d1184be770e8e50822c1391"},{"path":"py/color_to_gray_value.py","mode":"100644","type":"blob","sha":"19e0c36feb1c0ed4bf622b583d8fa19c262ff913","size":841,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19e0c36feb1c0ed4bf622b583d8fa19c262ff913"},{"path":"py/create_gradient_mask.py","mode":"100644","type":"blob","sha":"03e5441efe04d7b0bb61b4d86203906974e2fe28","size":6037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/03e5441efe04d7b0bb61b4d86203906974e2fe28"},{"path":"py/crop_box_resolve.py","mode":"100644","type":"blob","sha":"bca827e4bb4740b3f5fbf0e8f6365d643e2ec1b5","size":864,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bca827e4bb4740b3f5fbf0e8f6365d643e2ec1b5"},{"path":"py/crop_by_mask.py","mode":"100644","type":"blob","sha":"d2f38ac20c6eb1d95b1daf89c645486f9b69e45c","size":4363,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d2f38ac20c6eb1d95b1daf89c645486f9b69e45c"},{"path":"py/crop_by_mask_v2.py","mode":"100644","type":"blob","sha":"9f994a206341a0544bb57e10d87cf52ab8c02483","size":4968,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9f994a206341a0544bb57e10d87cf52ab8c02483"},{"path":"py/crop_by_mask_v3.py","mode":"100644","type":"blob","sha":"f4056151fbef89c84fb35ec62a637eec5755a53a","size":4971,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f4056151fbef89c84fb35ec62a637eec5755a53a"},{"path":"py/data_nodes.py","mode":"100644","type":"blob","sha":"e0f510646442eaa2ee2b51c2c5803b92363fd852","size":15133,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e0f510646442eaa2ee2b51c2c5803b92363fd852"},{"path":"py/drop_shadow.py","mode":"100644","type":"blob","sha":"4d346b9ec3082640c24ed63f765c4262c45b0de5","size":4312,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4d346b9ec3082640c24ed63f765c4262c45b0de5"},{"path":"py/drop_shadow_v2.py","mode":"100644","type":"blob","sha":"e67ec8c71949eb8131f00dfec9ac77a5efe87c99","size":4252,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e67ec8c71949eb8131f00dfec9ac77a5efe87c99"},{"path":"py/drop_shadow_v3.py","mode":"100644","type":"blob","sha":"53cd7385e339ee5565ff068ccc050a14e81624c7","size":4586,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/53cd7385e339ee5565ff068ccc050a14e81624c7"},{"path":"py/extend_canvas.py","mode":"100644","type":"blob","sha":"c64c4c6e5a7a7c9533be540e4d2edb5093e13ff1","size":2997,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c64c4c6e5a7a7c9533be540e4d2edb5093e13ff1"},{"path":"py/extend_canvas_v2.py","mode":"100644","type":"blob","sha":"09759ef3160846eb32f3f579aed4b3f31bdb501f","size":3145,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/09759ef3160846eb32f3f579aed4b3f31bdb501f"},{"path":"py/film_post.py","mode":"100644","type":"blob","sha":"2fdca4abc9888ab12044c57c93b1623243c90f95","size":3892,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2fdca4abc9888ab12044c57c93b1623243c90f95"},{"path":"py/film_post_v2.py","mode":"100644","type":"blob","sha":"de1e0ef243712645345d6e90ed09e6be9301bdbf","size":4289,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/de1e0ef243712645345d6e90ed09e6be9301bdbf"},{"path":"py/filmgrainer","mode":"040000","type":"tree","sha":"8a6349a0866d2222284e0fdcf1bfe78877a8e615","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/8a6349a0866d2222284e0fdcf1bfe78877a8e615"},{"path":"py/filmgrainer/__init__.py","mode":"100644","type":"blob","sha":"bb35ee1578af7e0a2aed9b5768b6d64dcf40a707","size":21,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bb35ee1578af7e0a2aed9b5768b6d64dcf40a707"},{"path":"py/filmgrainer/filmgrainer.py","mode":"100644","type":"blob","sha":"67092128f6104a8f5c3593a760b9d21287c17571","size":4388,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/67092128f6104a8f5c3593a760b9d21287c17571"},{"path":"py/filmgrainer/graingamma.py","mode":"100644","type":"blob","sha":"0f3cc6e4e2439093426685b50bbe1df82a7eac3e","size":3486,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0f3cc6e4e2439093426685b50bbe1df82a7eac3e"},{"path":"py/filmgrainer/graingen.py","mode":"100644","type":"blob","sha":"c3ea62ea4aa204722d6bcfaba5ac0af24045d826","size":2309,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c3ea62ea4aa204722d6bcfaba5ac0af24045d826"},{"path":"py/filmgrainer/processing.py","mode":"100644","type":"blob","sha":"4c48e8e58509895fe0f18561df4264516122217a","size":1419,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4c48e8e58509895fe0f18561df4264516122217a"},{"path":"py/flux_kontext_image_scale.py","mode":"100644","type":"blob","sha":"d5c3c462fd36e251940ee63f6f44277e00d4882a","size":2413,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d5c3c462fd36e251940ee63f6f44277e00d4882a"},{"path":"py/gaussian_blur.py","mode":"100644","type":"blob","sha":"f1d6fb26a17704d83efe24f86a6f7c41317640d9","size":2318,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f1d6fb26a17704d83efe24f86a6f7c41317640d9"},{"path":"py/get_image_size.py","mode":"100644","type":"blob","sha":"c43a1eded68689a261497002b42757d4caffb96f","size":939,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c43a1eded68689a261497002b42757d4caffb96f"},{"path":"py/get_main_colors.py","mode":"100644","type":"blob","sha":"783a2569fca0a5131ce7b025d5fadacd411c8b3a","size":9083,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/783a2569fca0a5131ce7b025d5fadacd411c8b3a"},{"path":"py/gradient_image.py","mode":"100644","type":"blob","sha":"da6070c66720681ccf3f8033c78d966ac1b0fc53","size":1242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/da6070c66720681ccf3f8033c78d966ac1b0fc53"},{"path":"py/gradient_image_v2.py","mode":"100644","type":"blob","sha":"9db41549a78638f98b1781c0f09debe3eaac1c83","size":2254,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9db41549a78638f98b1781c0f09debe3eaac1c83"},{"path":"py/gradient_map.py","mode":"100644","type":"blob","sha":"a8e07a1fa31aa780349a3d4bd6991368bf3ae724","size":3458,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a8e07a1fa31aa780349a3d4bd6991368bf3ae724"},{"path":"py/gradient_overlay.py","mode":"100644","type":"blob","sha":"a2120420b451944a5cf4f4f2096ddb5f8d9036ad","size":4310,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a2120420b451944a5cf4f4f2096ddb5f8d9036ad"},{"path":"py/gradient_overlay_v2.py","mode":"100644","type":"blob","sha":"90c3883359b2df150544bf276ef1b3cf25e19170","size":4242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/90c3883359b2df150544bf276ef1b3cf25e19170"},{"path":"py/halftone.py","mode":"100644","type":"blob","sha":"fa1f3d089b752d8353313604f764d9aa95229b35","size":6931,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fa1f3d089b752d8353313604f764d9aa95229b35"},{"path":"py/hdr_effects.py","mode":"100644","type":"blob","sha":"650e528d651a04abe21c5ba1722e26fb8543dab7","size":7385,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/650e528d651a04abe21c5ba1722e26fb8543dab7"},{"path":"py/hl_frequency_detail_restore.py","mode":"100644","type":"blob","sha":"03750089c506e160a20aa86a11712f1f62729bbd","size":3330,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/03750089c506e160a20aa86a11712f1f62729bbd"},{"path":"py/ic_mask.py","mode":"100644","type":"blob","sha":"b8976413e73e9177ef4fa5024338c3af656e7536","size":8565,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b8976413e73e9177ef4fa5024338c3af656e7536"},{"path":"py/image_blend.py","mode":"100644","type":"blob","sha":"d6ba755c26e477319c8b98054a0a96a57447891a","size":3067,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d6ba755c26e477319c8b98054a0a96a57447891a"},{"path":"py/image_blend_advance.py","mode":"100644","type":"blob","sha":"109b38f38752940ee7058d049c86eba4bab51064","size":5775,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/109b38f38752940ee7058d049c86eba4bab51064"},{"path":"py/image_blend_advance_v2.py","mode":"100644","type":"blob","sha":"b291d96d6edf730755238b1b4a14fa17a30d7c75","size":5674,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b291d96d6edf730755238b1b4a14fa17a30d7c75"},{"path":"py/image_blend_advance_v3.py","mode":"100644","type":"blob","sha":"1a92de3b6c20c68549abf5ba8c6777bf36be9a5d","size":5943,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1a92de3b6c20c68549abf5ba8c6777bf36be9a5d"},{"path":"py/image_blend_v2.py","mode":"100644","type":"blob","sha":"8e94d63b9ee05c6a39fdd0abfd9cec9ea807af8e","size":3038,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8e94d63b9ee05c6a39fdd0abfd9cec9ea807af8e"},{"path":"py/image_channel_merge.py","mode":"100644","type":"blob","sha":"62abd7f762eddd5e7d8e29826ce2d4bc6c872bf2","size":2529,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62abd7f762eddd5e7d8e29826ce2d4bc6c872bf2"},{"path":"py/image_channel_split.py","mode":"100644","type":"blob","sha":"7ff629c9e530b8e36b62b0a05977222a7ef287ed","size":1715,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7ff629c9e530b8e36b62b0a05977222a7ef287ed"},{"path":"py/image_combine_alpha.py","mode":"100644","type":"blob","sha":"0de6f6d17aa2e0f9d3396480aac8a8e1a7dd8e1a","size":1831,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0de6f6d17aa2e0f9d3396480aac8a8e1a7dd8e1a"},{"path":"py/image_hub.py","mode":"100644","type":"blob","sha":"327004118c1340c228735c61302cf122fead9094","size":5690,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/327004118c1340c228735c61302cf122fead9094"},{"path":"py/image_mask_scale_as.py","mode":"100644","type":"blob","sha":"1170884de14913006f3d1a9bf48fe56839ea8ca7","size":8108,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1170884de14913006f3d1a9bf48fe56839ea8ca7"},{"path":"py/image_opacity.py","mode":"100644","type":"blob","sha":"b215d848a72bd5f2d4ebe45688298e00e9dd11c5","size":2881,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b215d848a72bd5f2d4ebe45688298e00e9dd11c5"},{"path":"py/image_reel.py","mode":"100644","type":"blob","sha":"936b46df7c1f8ee69bc34b654142b4ef9de3be6a","size":9118,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/936b46df7c1f8ee69bc34b654142b4ef9de3be6a"},{"path":"py/image_remove_alpha.py","mode":"100644","type":"blob","sha":"d85b6f1971a567a2c288f4cdd04c2bc8c7da28cf","size":2069,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d85b6f1971a567a2c288f4cdd04c2bc8c7da28cf"},{"path":"py/image_scale_by_aspect_ratio.py","mode":"100644","type":"blob","sha":"bbb83e60afce99f476f966a9dbf96ba84275ecec","size":6897,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bbb83e60afce99f476f966a9dbf96ba84275ecec"},{"path":"py/image_scale_by_aspect_ratio_v2.py","mode":"100644","type":"blob","sha":"c6e573c19cfa5a1e862cff779cace72bf298a3d5","size":8734,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c6e573c19cfa5a1e862cff779cace72bf298a3d5"},{"path":"py/image_scale_restore.py","mode":"100644","type":"blob","sha":"cde16ecd6bf51011c25e5714931e04d80140ff0c","size":4242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cde16ecd6bf51011c25e5714931e04d80140ff0c"},{"path":"py/image_scale_restore_v2.py","mode":"100644","type":"blob","sha":"3007676cbee5c8d3db21b5000ce05588aadd5f13","size":5247,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3007676cbee5c8d3db21b5000ce05588aadd5f13"},{"path":"py/image_shift.py","mode":"100644","type":"blob","sha":"f91d56f074d353ba4f82242b8893fd028ad738b2","size":3363,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f91d56f074d353ba4f82242b8893fd028ad738b2"},{"path":"py/image_tagger_save.py","mode":"100644","type":"blob","sha":"1d8864764566cba6a85db48a00a98435b2ec2861","size":12165,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1d8864764566cba6a85db48a00a98435b2ec2861"},{"path":"py/image_to_mask.py","mode":"100644","type":"blob","sha":"5264b0d83dfca7dc6ae3534f5adcf3a3b823a2c5","size":4371,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5264b0d83dfca7dc6ae3534f5adcf3a3b823a2c5"},{"path":"py/imagefunc.py","mode":"100644","type":"blob","sha":"f9ec0adfb653837a96802584b5ef36dfce4034ce","size":107560,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f9ec0adfb653837a96802584b5ef36dfce4034ce"},{"path":"py/inner_glow.py","mode":"100644","type":"blob","sha":"992c0f350e1ce8cb962d6bcdfe6ca1dfc19f44eb","size":4793,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/992c0f350e1ce8cb962d6bcdfe6ca1dfc19f44eb"},{"path":"py/inner_glow_v2.py","mode":"100644","type":"blob","sha":"9916bb49b019fb537ee78b49897c81578271c7f1","size":4719,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9916bb49b019fb537ee78b49897c81578271c7f1"},{"path":"py/inner_shadow.py","mode":"100644","type":"blob","sha":"34580da36085a19c987458316d5eb15bf35d6c93","size":4317,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/34580da36085a19c987458316d5eb15bf35d6c93"},{"path":"py/inner_shadow_v2.py","mode":"100644","type":"blob","sha":"2e0108b01334bc7b7a565350188c93f9e8abadbe","size":4250,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2e0108b01334bc7b7a565350188c93f9e8abadbe"},{"path":"py/layer_image_transform.py","mode":"100644","type":"blob","sha":"e8ecb255e29bb3933b97ec54c6be11fe5a43e392","size":3976,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e8ecb255e29bb3933b97ec54c6be11fe5a43e392"},{"path":"py/layer_mask_transform.py","mode":"100644","type":"blob","sha":"6b3ce60e5ae2042b2071279de3b947d6d3a7b98b","size":3229,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6b3ce60e5ae2042b2071279de3b947d6d3a7b98b"},{"path":"py/light_leak.py","mode":"100644","type":"blob","sha":"806f4993206f744b8e9ab2c9cf4a2d4ef7090005","size":3272,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/806f4993206f744b8e9ab2c9cf4a2d4ef7090005"},{"path":"py/load_images_from_path.py","mode":"100644","type":"blob","sha":"4a7bf500cfe26f1c9e5d1cec752322988dab3d56","size":4036,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4a7bf500cfe26f1c9e5d1cec752322988dab3d56"},{"path":"py/mask_box_detect.py","mode":"100644","type":"blob","sha":"ba189e8404f88038b81afd03381b457be1f5079d","size":5893,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ba189e8404f88038b81afd03381b457be1f5079d"},{"path":"py/mask_by_color.py","mode":"100644","type":"blob","sha":"af7ea5c525436207065ecd8ee4322903061acf75","size":2758,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af7ea5c525436207065ecd8ee4322903061acf75"},{"path":"py/mask_edge_shrink.py","mode":"100644","type":"blob","sha":"833f513a03b9fa0d7c158d54da7ec0a8419493f0","size":3059,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/833f513a03b9fa0d7c158d54da7ec0a8419493f0"},{"path":"py/mask_edge_ultra_detail.py","mode":"100644","type":"blob","sha":"244df20bfe41afd3454a1e8cf1b993a9df850921","size":3365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/244df20bfe41afd3454a1e8cf1b993a9df850921"},{"path":"py/mask_edge_ultra_detail_v2.py","mode":"100644","type":"blob","sha":"f289d6d9486ed488b02257e94e3c495be36d74c1","size":4386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f289d6d9486ed488b02257e94e3c495be36d74c1"},{"path":"py/mask_gradient.py","mode":"100644","type":"blob","sha":"62de2af00607f496269ea2945b2ebb86e8ce442f","size":7572,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62de2af00607f496269ea2945b2ebb86e8ce442f"},{"path":"py/mask_grain.py","mode":"100644","type":"blob","sha":"887aac70521161990e71e9eccb7c7ac3899a392e","size":2001,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/887aac70521161990e71e9eccb7c7ac3899a392e"},{"path":"py/mask_grow.py","mode":"100644","type":"blob","sha":"723c80f7503fc3163acbce9c8e722a7a5b613e3c","size":1558,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/723c80f7503fc3163acbce9c8e722a7a5b613e3c"},{"path":"py/mask_invert.py","mode":"100644","type":"blob","sha":"fae815e70d1007c5ae31ee46b4fe13d2fd5043c3","size":1130,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fae815e70d1007c5ae31ee46b4fe13d2fd5043c3"},{"path":"py/mask_motion_blur.py","mode":"100644","type":"blob","sha":"6ecf51dacac9e947ea15850b3e14c03aa138a363","size":1645,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6ecf51dacac9e947ea15850b3e14c03aa138a363"},{"path":"py/mask_preview.py","mode":"100644","type":"blob","sha":"04a0d5335dc72069ed364e1dac20fe6bdaf2370e","size":1047,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04a0d5335dc72069ed364e1dac20fe6bdaf2370e"},{"path":"py/mask_stroke.py","mode":"100644","type":"blob","sha":"4471b35aaac68346af2535657700857c379a913b","size":2087,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4471b35aaac68346af2535657700857c379a913b"},{"path":"py/motion_blur.py","mode":"100644","type":"blob","sha":"a9d2cade86f489ff1b2f45c4a0f61a17b19b75ae","size":1293,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a9d2cade86f489ff1b2f45c4a0f61a17b19b75ae"},{"path":"py/nano_banana_image_scale.py","mode":"100644","type":"blob","sha":"f0e55ac363965b178a40c44e23b97b729954a943","size":2117,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f0e55ac363965b178a40c44e23b97b729954a943"},{"path":"py/outer_glow.py","mode":"100644","type":"blob","sha":"72dbcc0cb589fc8d593775b13c6bffe7c1f1bf66","size":4713,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/72dbcc0cb589fc8d593775b13c6bffe7c1f1bf66"},{"path":"py/outer_glow_v2.py","mode":"100644","type":"blob","sha":"470b1060c917835afef7ac6f67b128a5ba4ead45","size":4637,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/470b1060c917835afef7ac6f67b128a5ba4ead45"},{"path":"py/pixel_spread.py","mode":"100644","type":"blob","sha":"3760fb5dc5e1a554218fb8d0a393947ff07b0953","size":2479,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3760fb5dc5e1a554218fb8d0a393947ff07b0953"},{"path":"py/print_info.py","mode":"100644","type":"blob","sha":"13060da15843eb5dc5ac17cf232d600a6d04451d","size":1665,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/13060da15843eb5dc5ac17cf232d600a6d04451d"},{"path":"py/purge_vram.py","mode":"100644","type":"blob","sha":"2777233ea435d3d32da7db12eda83700cae71365","size":2039,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2777233ea435d3d32da7db12eda83700cae71365"},{"path":"py/random_generator.py","mode":"100644","type":"blob","sha":"2dded714f7c6a6fea100b5b06140bed212e9abdd","size":5087,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2dded714f7c6a6fea100b5b06140bed212e9abdd"},{"path":"py/restore_crop_box.py","mode":"100644","type":"blob","sha":"40cc07e77110bc6285de160f7b5e1ff1f25a38d5","size":2835,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/40cc07e77110bc6285de160f7b5e1ff1f25a38d5"},{"path":"py/rmbg_ultra.py","mode":"100644","type":"blob","sha":"dc45ac7b7c287c5543af33428c4e8bde1c6e5f62","size":1911,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dc45ac7b7c287c5543af33428c4e8bde1c6e5f62"},{"path":"py/rmbg_ultra_v2.py","mode":"100644","type":"blob","sha":"794831cc346e4d6063ee9435449da71208d04709","size":3479,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/794831cc346e4d6063ee9435449da71208d04709"},{"path":"py/rounded_rectangle.py","mode":"100644","type":"blob","sha":"8ac7243f928ce988a0f5e9995c0672e27b3b1479","size":4570,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8ac7243f928ce988a0f5e9995c0672e27b3b1479"},{"path":"py/segformer_ultra.py","mode":"100644","type":"blob","sha":"62f7d5dbc986697f27b1cb2e8b2e9acf5f414fb3","size":46748,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62f7d5dbc986697f27b1cb2e8b2e9acf5f414fb3"},{"path":"py/shadow_highlight_mask.py","mode":"100644","type":"blob","sha":"e20f46c7da413e566ebc71a075e6e79e18ca97df","size":8178,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e20f46c7da413e566ebc71a075e6e79e18ca97df"},{"path":"py/sharp_soft.py","mode":"100644","type":"blob","sha":"ca63e15d4aa944275c6c0826aafdc58847400932","size":2052,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ca63e15d4aa944275c6c0826aafdc58847400932"},{"path":"py/simple_text_image.py","mode":"100644","type":"blob","sha":"1d9b6ccee565a127bffdf9cdd6af8fbaae99dc27","size":4973,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1d9b6ccee565a127bffdf9cdd6af8fbaae99dc27"},{"path":"py/skin_beauty.py","mode":"100644","type":"blob","sha":"406dd561c40a66f82082f55a45d9baa0cb27c5ad","size":2365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/406dd561c40a66f82082f55a45d9baa0cb27c5ad"},{"path":"py/soft_light.py","mode":"100644","type":"blob","sha":"23b75e43c10bdd8a27b912f0c66c6022ab73e7a7","size":2467,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/23b75e43c10bdd8a27b912f0c66c6022ab73e7a7"},{"path":"py/stroke.py","mode":"100644","type":"blob","sha":"c5254e45cb291e0a0fa9de946951f0c7d4df5b8c","size":4133,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c5254e45cb291e0a0fa9de946951f0c7d4df5b8c"},{"path":"py/stroke_v2.py","mode":"100644","type":"blob","sha":"e452ac81f8db747ebab9de39fa97a98ff4c4a112","size":4064,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e452ac81f8db747ebab9de39fa97a98ff4c4a112"},{"path":"py/text_image.py","mode":"100644","type":"blob","sha":"c31fc7fa84eb22cc90c0c79fdbb4b866b22b5dfa","size":6514,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c31fc7fa84eb22cc90c0c79fdbb4b866b22b5dfa"},{"path":"py/text_image_v2.py","mode":"100644","type":"blob","sha":"d6b0a4552a1d14200c8b8592537dba43ae693d9f","size":6886,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d6b0a4552a1d14200c8b8592537dba43ae693d9f"},{"path":"py/text_join.py","mode":"100644","type":"blob","sha":"5b50235e1e87af838c2cb58e561d8f3680a87ff7","size":2852,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5b50235e1e87af838c2cb58e561d8f3680a87ff7"},{"path":"py/text_node.py","mode":"100644","type":"blob","sha":"6bf0f48d40485b8122b78a126c40dbdc2d957f94","size":2957,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6bf0f48d40485b8122b78a126c40dbdc2d957f94"},{"path":"py/vqa_prompt.py","mode":"100644","type":"blob","sha":"6d8cce1114f9d98596d4393145d19aafc412be05","size":4545,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6d8cce1114f9d98596d4393145d19aafc412be05"},{"path":"py/water_color.py","mode":"100644","type":"blob","sha":"697a99b7f380ee7ef5274ecfbcd7d73f0c725e0a","size":1440,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/697a99b7f380ee7ef5274ecfbcd7d73f0c725e0a"},{"path":"py/xy2percent.py","mode":"100644","type":"blob","sha":"81eab6e260b25b6dee102a2b333a3b977d2339c4","size":1259,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/81eab6e260b25b6dee102a2b333a3b977d2339c4"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"0dbed25a63895acc99935c10087c7ae90d775911","size":707,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0dbed25a63895acc99935c10087c7ae90d775911"},{"path":"repair_dependency.bat","mode":"100644","type":"blob","sha":"b57581ff481360c0a1ec419f56de8dacc8835a01","size":519,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b57581ff481360c0a1ec419f56de8dacc8835a01"},{"path":"repair_dependency_aki.bat","mode":"100644","type":"blob","sha":"3e6b3528a8cfe1bb38e8a71824ff996682decbf1","size":508,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e6b3528a8cfe1bb38e8a71824ff996682decbf1"},{"path":"repair_dependency_list.txt","mode":"100644","type":"blob","sha":"55da1bf2045aa5e05e1729872ff0f27d5e2269c5","size":31,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/55da1bf2045aa5e05e1729872ff0f27d5e2269c5"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"3950f3ba0a97f8981b40af48f7ccff330d03ed35","size":178,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3950f3ba0a97f8981b40af48f7ccff330d03ed35"},{"path":"resource_dir.ini.example","mode":"100644","type":"blob","sha":"ca39fad6ae273c48268eb2d53eb9a98642dfc0cc","size":58,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ca39fad6ae273c48268eb2d53eb9a98642dfc0cc"},{"path":"workflow","mode":"040000","type":"tree","sha":"256969c827185b7e81b77e150a244d0a10e0da1f","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/256969c827185b7e81b77e150a244d0a10e0da1f"},{"path":"workflow/1280x720_seven_person.jpg","mode":"100644","type":"blob","sha":"29ac5f6ed364c516fba80001439ba6cdb81a18bc","size":253009,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/29ac5f6ed364c516fba80001439ba6cdb81a18bc"},{"path":"workflow/1280x720car.jpg","mode":"100644","type":"blob","sha":"7b6f14042eefa66a042c0de9a8a133c7fe400893","size":391161,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7b6f14042eefa66a042c0de9a8a133c7fe400893"},{"path":"workflow/1280x768_city.png","mode":"100644","type":"blob","sha":"0dd87fedfb83ddf2b5c43299f215e2796d4196ab","size":1608184,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0dd87fedfb83ddf2b5c43299f215e2796d4196ab"},{"path":"workflow/1344x768_beach.png","mode":"100644","type":"blob","sha":"cdc1b6969c882c699c367ab439fae84a4429d1a5","size":1155964,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cdc1b6969c882c699c367ab439fae84a4429d1a5"},{"path":"workflow/1344x768_girl2.png","mode":"100644","type":"blob","sha":"c9f70cfcdfb58a7c28b60df23ce0e7c692330184","size":911172,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c9f70cfcdfb58a7c28b60df23ce0e7c692330184"},{"path":"workflow/1344x768_hair.png","mode":"100644","type":"blob","sha":"48a9d93d2e39d2edc2e54901ae0dd9c169b2ead1","size":1109656,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/48a9d93d2e39d2edc2e54901ae0dd9c169b2ead1"},{"path":"workflow/1344x768_redcar.png","mode":"100644","type":"blob","sha":"8352809a5899520a9006708c909234ac9d5a6bf7","size":975009,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8352809a5899520a9006708c909234ac9d5a6bf7"},{"path":"workflow/1920x1080table.png","mode":"100644","type":"blob","sha":"3d69c1b90721ee1926b37881ffd5d3d411c2bf17","size":624815,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d69c1b90721ee1926b37881ffd5d3d411c2bf17"},{"path":"workflow/3840x2160car.jpg","mode":"100644","type":"blob","sha":"1680966841968aa37ca33bad660907c25ad289b9","size":396098,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1680966841968aa37ca33bad660907c25ad289b9"},{"path":"workflow/512x512.png","mode":"100644","type":"blob","sha":"334b79bf3a97164d776660c40bb76507e85f7527","size":129720,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/334b79bf3a97164d776660c40bb76507e85f7527"},{"path":"workflow/512x512bkgd.jpg","mode":"100644","type":"blob","sha":"3003d5b5e04d07a97520edd890b49d0b63772e3c","size":58684,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3003d5b5e04d07a97520edd890b49d0b63772e3c"},{"path":"workflow/768x1344_beach.png","mode":"100644","type":"blob","sha":"1a7449aff325fb4b4cac5f0edd69b5394d7680bd","size":1120132,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1a7449aff325fb4b4cac5f0edd69b5394d7680bd"},{"path":"workflow/768x1344_dress.png","mode":"100644","type":"blob","sha":"2714ce4526d96ae2249ecbb115ac23c624e812ec","size":1129534,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2714ce4526d96ae2249ecbb115ac23c624e812ec"},{"path":"workflow/auto_adjust_v2_example.json","mode":"100644","type":"blob","sha":"ca0ca1cadb2039fbb2412b2f1d1ba620528c9b94","size":4037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ca0ca1cadb2039fbb2412b2f1d1ba620528c9b94"},{"path":"workflow/auto_brightness_example.json","mode":"100644","type":"blob","sha":"51dd40c9bcd634d8e2313de6d8876c84600294e6","size":3371,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/51dd40c9bcd634d8e2313de6d8876c84600294e6"},{"path":"workflow/blend_mode_v2_example.json","mode":"100644","type":"blob","sha":"2bc2639380b991b0a189cb0f171b0bb63f3285e5","size":53715,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2bc2639380b991b0a189cb0f171b0bb63f3285e5"},{"path":"workflow/blendif_mask_example.json","mode":"100644","type":"blob","sha":"f807c50424feb80045a5d101fab00c871da15f89","size":4148,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f807c50424feb80045a5d101fab00c871da15f89"},{"path":"workflow/choice_text_preset_example.json","mode":"100644","type":"blob","sha":"dd49a94e6597f48da6aa859aae9b4597a146292b","size":6010,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dd49a94e6597f48da6aa859aae9b4597a146292b"},{"path":"workflow/color_of_shadow_and_highlight_example.json","mode":"100644","type":"blob","sha":"b087eedd984b52ca4fad0cde09e8ed71b37ce98a","size":2402,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b087eedd984b52ca4fad0cde09e8ed71b37ce98a"},{"path":"workflow/color_overlay_example.json","mode":"100644","type":"blob","sha":"4232f8257fac4b00f6770e30e36d6f23dcd925da","size":3290,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4232f8257fac4b00f6770e30e36d6f23dcd925da"},{"path":"workflow/create_gradient_mask_example.json","mode":"100644","type":"blob","sha":"6a9c48b7fe5d613caf078e091d9623f1e904753e","size":4577,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6a9c48b7fe5d613caf078e091d9623f1e904753e"},{"path":"workflow/crop_by_mask_&_restore_crop_box_example.json","mode":"100644","type":"blob","sha":"2d81ffe70b4a467db59e9dad18cbed76dc3f0104","size":10000,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2d81ffe70b4a467db59e9dad18cbed76dc3f0104"},{"path":"workflow/data_nodes_example.json","mode":"100644","type":"blob","sha":"3978381ff8acf231d84217ef72ed132d64a5e5e1","size":5725,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3978381ff8acf231d84217ef72ed132d64a5e5e1"},{"path":"workflow/drop_shadow_example.json","mode":"100644","type":"blob","sha":"ed143ca39b5b08c95b0781abe391f6b17c710163","size":3332,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ed143ca39b5b08c95b0781abe391f6b17c710163"},{"path":"workflow/extend_canvas_example.json","mode":"100644","type":"blob","sha":"8de1f2ff409384d1713f91afc62560544b11fbc3","size":3118,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8de1f2ff409384d1713f91afc62560544b11fbc3"},{"path":"workflow/flux_kontext_image_scale_example.json","mode":"100644","type":"blob","sha":"53aac612351e1d04b0f5f6d0ae7b334b936fc2a8","size":19336,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/53aac612351e1d04b0f5f6d0ae7b334b936fc2a8"},{"path":"workflow/fox_512x512.png","mode":"100644","type":"blob","sha":"d907bf7d1fdbfe3ba6088ba78896638c72d1c5e4","size":362483,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d907bf7d1fdbfe3ba6088ba78896638c72d1c5e4"},{"path":"workflow/get_main_color_and_color_name_example.json","mode":"100644","type":"blob","sha":"90f46b19340de385dfcc9c343807cc5c81d1c07e","size":8318,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/90f46b19340de385dfcc9c343807cc5c81d1c07e"},{"path":"workflow/get_main_color_example.json","mode":"100644","type":"blob","sha":"87b800487c5482464ff37423576485e819198311","size":7925,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/87b800487c5482464ff37423576485e819198311"},{"path":"workflow/girl_dino_1024.png","mode":"100644","type":"blob","sha":"d41ef001a4e5178706b5a1fc5e16771f3ee9080b","size":1036673,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d41ef001a4e5178706b5a1fc5e16771f3ee9080b"},{"path":"workflow/gradident_overlay_example.json","mode":"100644","type":"blob","sha":"22e3d9fe2c498a1418baccc66e337c68e057c441","size":3351,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/22e3d9fe2c498a1418baccc66e337c68e057c441"},{"path":"workflow/hl_frequency_detail_restore_example.json","mode":"100644","type":"blob","sha":"4ed8770283e03d39bae120944d792fa80d19ca2a","size":5742,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4ed8770283e03d39bae120944d792fa80d19ca2a"},{"path":"workflow/icmask_example.json","mode":"100644","type":"blob","sha":"37d9df58cb474bc60acb6f3efd212489fd72d102","size":24315,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/37d9df58cb474bc60acb6f3efd212489fd72d102"},{"path":"workflow/if_example.json","mode":"100644","type":"blob","sha":"c551d426d37b0273501a5c60c76bb9347fa410aa","size":6281,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c551d426d37b0273501a5c60c76bb9347fa410aa"},{"path":"workflow/image_blend_advance_example.json","mode":"100644","type":"blob","sha":"3ff2a5b542a40145260a917b00af064e01e363f0","size":4124,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3ff2a5b542a40145260a917b00af064e01e363f0"},{"path":"workflow/image_blend_example.json","mode":"100644","type":"blob","sha":"34f1873ab2e42cfd41863cee54eb7e7f9687d5fb","size":6661,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/34f1873ab2e42cfd41863cee54eb7e7f9687d5fb"},{"path":"workflow/image_hub_example.json","mode":"100644","type":"blob","sha":"08f75891639061ac65672c118c9ddffdc7c35ba6","size":6496,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/08f75891639061ac65672c118c9ddffdc7c35ba6"},{"path":"workflow/image_mask_scale_as_example.json","mode":"100644","type":"blob","sha":"eddb054f0036b9cd9e69b2fa863d09a027513858","size":5028,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/eddb054f0036b9cd9e69b2fa863d09a027513858"},{"path":"workflow/image_reel_example.json","mode":"100644","type":"blob","sha":"e8dcb6222117f6518197501d66af7c1208db3c4f","size":7884,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e8dcb6222117f6518197501d66af7c1208db3c4f"},{"path":"workflow/image_remove_alpha & image_combine_alpha_example.json","mode":"100644","type":"blob","sha":"d9516e5ca0433d4e9622b9f4ec7e542ebbba265f","size":5812,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d9516e5ca0433d4e9622b9f4ec7e542ebbba265f"},{"path":"workflow/image_scale_restore_example.json","mode":"100644","type":"blob","sha":"b522752e6dfa387ab441f9cdb4c0ccd9875f45cf","size":7242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b522752e6dfa387ab441f9cdb4c0ccd9875f45cf"},{"path":"workflow/image_tagger_save_example.json","mode":"100644","type":"blob","sha":"6aaf2c6297addfca107ee29cabc12503bacf5a72","size":9326,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6aaf2c6297addfca107ee29cabc12503bacf5a72"},{"path":"workflow/image_to_mask_example.json","mode":"100644","type":"blob","sha":"9d890e1daad2645074aa9252a328f1f9306979ef","size":3487,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9d890e1daad2645074aa9252a328f1f9306979ef"},{"path":"workflow/inner_glow_example.json","mode":"100644","type":"blob","sha":"3331eb940ba8ee3873cb1c507b8c53e133d7af7e","size":3304,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3331eb940ba8ee3873cb1c507b8c53e133d7af7e"},{"path":"workflow/inner_shadow_example.json","mode":"100644","type":"blob","sha":"0e8ac9f4a766fa0082556a1bf6e3e16b2daa4d2b","size":3298,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0e8ac9f4a766fa0082556a1bf6e3e16b2daa4d2b"},{"path":"workflow/layer_color_title.json","mode":"100644","type":"blob","sha":"977aaea5b9c11eacf468d6537b8761e43a6ca8fd","size":14207,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/977aaea5b9c11eacf468d6537b8761e43a6ca8fd"},{"path":"workflow/layer_image_transform_example.json","mode":"100644","type":"blob","sha":"6ad0e1650fd50e4c9e814bb2222953462679f59a","size":7145,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6ad0e1650fd50e4c9e814bb2222953462679f59a"},{"path":"workflow/layerstyle_all_nodes.json","mode":"100644","type":"blob","sha":"7ce4264a34e003f61bc2941466c8ef0576c8d1af","size":90562,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7ce4264a34e003f61bc2941466c8ef0576c8d1af"},{"path":"workflow/mask_box_detect_example.json","mode":"100644","type":"blob","sha":"1ffba5f9f7b0df662a021519b3cfc3e5606a06d7","size":6705,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ffba5f9f7b0df662a021519b3cfc3e5606a06d7"},{"path":"workflow/mask_by_color_example.json","mode":"100644","type":"blob","sha":"fccc72c82d949b8dcf01cf36261e839e815e7f4f","size":3526,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fccc72c82d949b8dcf01cf36261e839e815e7f4f"},{"path":"workflow/mask_edge_ultra_detail_example.json","mode":"100644","type":"blob","sha":"70879d9a7ff918699c0ffeda963fbfb5e7ae62fc","size":4276,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/70879d9a7ff918699c0ffeda963fbfb5e7ae62fc"},{"path":"workflow/mask_edge_ultra_detail_v2_example.json","mode":"100644","type":"blob","sha":"6d34acbf9c8957a0602db5572bb30b6bc91205f0","size":9515,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6d34acbf9c8957a0602db5572bb30b6bc91205f0"},{"path":"workflow/mask_gradient_example.json","mode":"100644","type":"blob","sha":"5e3d2ee9032e912cec85f8b6a8020db21258afcd","size":7086,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5e3d2ee9032e912cec85f8b6a8020db21258afcd"},{"path":"workflow/outer_glow_example.json","mode":"100644","type":"blob","sha":"2828cac794a9a79c9270aa9c93a2aeaae69a1488","size":3338,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2828cac794a9a79c9270aa9c93a2aeaae69a1488"},{"path":"workflow/pixel_spread_example.json","mode":"100644","type":"blob","sha":"19ccb1deb0a86e9b79fd9332da3c084f196c7f43","size":3763,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19ccb1deb0a86e9b79fd9332da3c084f196c7f43"},{"path":"workflow/queue_stop_example.json","mode":"100644","type":"blob","sha":"350652716e5e4eae114c8969552461724f3c7788","size":5560,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/350652716e5e4eae114c8969552461724f3c7788"},{"path":"workflow/rembg_ultra_example.json","mode":"100644","type":"blob","sha":"0a251f062a175e6386a8503ce893be1549c8e866","size":11287,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0a251f062a175e6386a8503ce893be1549c8e866"},{"path":"workflow/rounded_rectangle_example.json","mode":"100644","type":"blob","sha":"d64c8fcd1815f7810be94569fc37ff79c4151be7","size":9842,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d64c8fcd1815f7810be94569fc37ff79c4151be7"},{"path":"workflow/segformet_clothes_example.json","mode":"100644","type":"blob","sha":"70fe34654518c6a0c41b96e996c494b688f6b40b","size":4201,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/70fe34654518c6a0c41b96e996c494b688f6b40b"},{"path":"workflow/segformet_fashion_example.json","mode":"100644","type":"blob","sha":"b228863b58c35d3dc9751fe71ba7df03eecab924","size":4634,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b228863b58c35d3dc9751fe71ba7df03eecab924"},{"path":"workflow/simple_text_example.json","mode":"100644","type":"blob","sha":"b662baae45b1ebecf30c54d7d8e8486efdc3706e","size":6015,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b662baae45b1ebecf30c54d7d8e8486efdc3706e"},{"path":"workflow/stroke_example.json","mode":"100644","type":"blob","sha":"2c3af9ec6806bf7132e74b71ee35c5859c76b6de","size":3276,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2c3af9ec6806bf7132e74b71ee35c5859c76b6de"},{"path":"workflow/switch_case_example.json","mode":"100644","type":"blob","sha":"2c236b35cd0f348511a3e8df222bde6a218bc864","size":4893,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2c236b35cd0f348511a3e8df222bde6a218bc864"},{"path":"workflow/text_image_example.json","mode":"100644","type":"blob","sha":"0771d254e99a1f02c804b251ed838f3190694de9","size":3689,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0771d254e99a1f02c804b251ed838f3190694de9"},{"path":"workflow/title_example_workflow.json","mode":"100644","type":"blob","sha":"80dd23a33cc45286e1e054edf87a05a66c9cd033","size":15620,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80dd23a33cc45286e1e054edf87a05a66c9cd033"},{"path":"workflow/ultra_v2_nodes_example.json","mode":"100644","type":"blob","sha":"9b2c06fc47c4c3988a9830fed15664b18134d58b","size":7687,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9b2c06fc47c4c3988a9830fed15664b18134d58b"},{"path":"workflow/vqa_example.json","mode":"100644","type":"blob","sha":"5bd5155fbfaac812c6e0beb0901d5850b5966669","size":3749,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5bd5155fbfaac812c6e0beb0901d5850b5966669"},{"path":"workflow/xy2percent_example.json","mode":"100644","type":"blob","sha":"3e08328e72c3284f44d265b7315b7dd9d4ceec8b","size":6148,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e08328e72c3284f44d265b7315b7dd9d4ceec8b"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/layer__LICENSE b/docs/hel-892/resize-compare-reference/layer__LICENSE new file mode 100644 index 00000000..e2568121 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/layer__LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 chflame163 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/hel-892/resize-compare-reference/layer____init__.py b/docs/hel-892/resize-compare-reference/layer____init__.py new file mode 100644 index 00000000..fd50801f --- /dev/null +++ b/docs/hel-892/resize-compare-reference/layer____init__.py @@ -0,0 +1,48 @@ +import importlib.util +import os +import sys +import json + +NODE_CLASS_MAPPINGS = {} +NODE_DISPLAY_NAME_MAPPINGS = {} + +python = sys.executable + +def get_ext_dir(subpath=None, mkdir=False): + dir = os.path.dirname(__file__) + if subpath is not None: + dir = os.path.join(dir, subpath) + + dir = os.path.abspath(dir) + + if mkdir and not os.path.exists(dir): + os.makedirs(dir) + return dir + +def serialize(obj): + if isinstance(obj, (str, int, float, bool, list, dict, type(None))): + return obj + return str(obj) # 转为字符串 + + +py = get_ext_dir("py") +files = os.listdir(py) +all_nodes = {} +for file in files: + if not file.endswith(".py"): + continue + name = os.path.splitext(file)[0] + imported_module = importlib.import_module(".py.{}".format(name), __name__) + try: + NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS} + NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS} + serialized_CLASS_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_CLASS_MAPPINGS.items()} + serialized_DISPLAY_NAME_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_DISPLAY_NAME_MAPPINGS.items()} + all_nodes[file]={"NODE_CLASS_MAPPINGS": serialized_CLASS_MAPPINGS, "NODE_DISPLAY_NAME_MAPPINGS": serialized_DISPLAY_NAME_MAPPINGS} + except: + pass + + +WEB_DIRECTORY = "./js" + +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] diff --git a/docs/hel-892/resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py b/docs/hel-892/resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py new file mode 100644 index 00000000..c6e573c1 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py @@ -0,0 +1,186 @@ +import torch +from PIL import Image +import math +from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask + + + +class ImageScaleByAspectRatioV2: + + def __init__(self): + self.NODE_NAME = 'ImageScaleByAspectRatio V2' + + @classmethod + def INPUT_TYPES(self): + ratio_list = ['original', 'custom', '1:1', '3:2', '4:3', '16:9', '2:3', '3:4', '9:16'] + fit_mode = ['letterbox', 'crop', 'fill'] + method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest'] + multiple_list = ['8', '16', '32', '64', '128', '256', '512', 'None'] + scale_to_list = ['None', 'longest', 'shortest', 'width', 'height', 'total_pixel(kilo pixel)'] + return { + "required": { + "aspect_ratio": (ratio_list,), + "proportional_width": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}), + "proportional_height": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}), + "fit": (fit_mode,), + "method": (method_mode,), + "round_to_multiple": (multiple_list,), + "scale_to_side": (scale_to_list,), # 是否按长边缩放 + "scale_to_length": ("INT", {"default": 1024, "min": 4, "max": 1e8, "step": 1}), + "background_color": ("STRING", {"default": "#000000"}), # 背景颜色 + }, + "optional": { + "image": ("IMAGE",), # + "mask": ("MASK",), # + } + } + + RETURN_TYPES = ("IMAGE", "MASK", "BOX", "INT", "INT",) + RETURN_NAMES = ("image", "mask", "original_size", "width", "height",) + FUNCTION = 'image_scale_by_aspect_ratio' + CATEGORY = '😺dzNodes/LayerUtility' + + def image_scale_by_aspect_ratio(self, aspect_ratio, proportional_width, proportional_height, + fit, method, round_to_multiple, scale_to_side, scale_to_length, + background_color, + image=None, mask = None, + ): + orig_images = [] + orig_masks = [] + orig_width = 0 + orig_height = 0 + target_width = 0 + target_height = 0 + ratio = 1.0 + ret_images = [] + ret_masks = [] + if image is not None: + for i in image: + i = torch.unsqueeze(i, 0) + orig_images.append(i) + orig_width, orig_height = tensor2pil(orig_images[0]).size + if mask is not None: + if mask.dim() == 2: + mask = torch.unsqueeze(mask, 0) + for m in mask: + m = torch.unsqueeze(m, 0) + if not is_valid_mask(m) and m.shape==torch.Size([1,64,64]): + log(f"Warning: {self.NODE_NAME} input mask is empty, ignore it.", message_type='warning') + else: + orig_masks.append(m) + + if len(orig_masks) > 0: + _width, _height = tensor2pil(orig_masks[0]).size + if (orig_width > 0 and orig_width != _width) or (orig_height > 0 and orig_height != _height): + log(f"Error: {self.NODE_NAME} execute failed, because the mask is does'nt match image.", message_type='error') + return (None, None, None, 0, 0,) + elif orig_width + orig_height == 0: + orig_width = _width + orig_height = _height + + if orig_width + orig_height == 0: + log(f"Error: {self.NODE_NAME} execute failed, because the image or mask at least one must be input.", message_type='error') + return (None, None, None, 0, 0,) + + if aspect_ratio == 'original': + ratio = orig_width / orig_height + elif aspect_ratio == 'custom': + ratio = proportional_width / proportional_height + else: + s = aspect_ratio.split(":") + ratio = int(s[0]) / int(s[1]) + + # calculate target width and height + if ratio > 1: + if scale_to_side == 'longest': + target_width = scale_to_length + target_height = int(target_width / ratio) + elif scale_to_side == 'shortest': + target_height = scale_to_length + target_width = int(target_height * ratio) + elif scale_to_side == 'width': + target_width = scale_to_length + target_height = int(target_width / ratio) + elif scale_to_side == 'height': + target_height = scale_to_length + target_width = int(target_height * ratio) + elif scale_to_side == 'total_pixel(kilo pixel)': + target_width = math.sqrt(ratio * scale_to_length * 1000) + target_height = target_width / ratio + target_width = int(target_width) + target_height = int(target_height) + else: + target_width = orig_width + target_height = int(target_width / ratio) + else: + if scale_to_side == 'longest': + target_height = scale_to_length + target_width = int(target_height * ratio) + elif scale_to_side == 'shortest': + target_width = scale_to_length + target_height = int(target_width / ratio) + elif scale_to_side == 'width': + target_width = scale_to_length + target_height = int(target_width / ratio) + elif scale_to_side == 'height': + target_height = scale_to_length + target_width = int(target_height * ratio) + elif scale_to_side == 'total_pixel(kilo pixel)': + target_width = math.sqrt(ratio * scale_to_length * 1000) + target_height = target_width / ratio + target_width = int(target_width) + target_height = int(target_height) + else: + target_height = orig_height + target_width = int(target_height * ratio) + + if round_to_multiple != 'None': + multiple = int(round_to_multiple) + target_width = num_round_up_to_multiple(target_width, multiple) + target_height = num_round_up_to_multiple(target_height, multiple) + + _mask = Image.new('L', size=(target_width, target_height), color='black') + _image = Image.new('RGB', size=(target_width, target_height), color='black') + + resize_sampler = Image.LANCZOS + if method == "bicubic": + resize_sampler = Image.BICUBIC + elif method == "hamming": + resize_sampler = Image.HAMMING + elif method == "bilinear": + resize_sampler = Image.BILINEAR + elif method == "box": + resize_sampler = Image.BOX + elif method == "nearest": + resize_sampler = Image.NEAREST + + if len(orig_images) > 0: + for i in orig_images: + _image = tensor2pil(i).convert('RGB') + _image = fit_resize_image(_image, target_width, target_height, fit, resize_sampler, background_color) + ret_images.append(pil2tensor(_image)) + if len(orig_masks) > 0: + for m in orig_masks: + _mask = tensor2pil(m).convert('L') + _mask = fit_resize_image(_mask, target_width, target_height, fit, resize_sampler).convert('L') + ret_masks.append(image2mask(_mask)) + if len(ret_images) > 0 and len(ret_masks) >0: + log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish') + return (torch.cat(ret_images, dim=0), torch.cat(ret_masks, dim=0),[orig_width, orig_height], target_width, target_height,) + elif len(ret_images) > 0 and len(ret_masks) == 0: + log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish') + return (torch.cat(ret_images, dim=0), None, [orig_width, orig_height], target_width, target_height,) + elif len(ret_images) == 0 and len(ret_masks) > 0: + log(f"{self.NODE_NAME} Processed {len(ret_masks)} image(s).", message_type='finish') + return (None, torch.cat(ret_masks, dim=0), [orig_width, orig_height], target_width, target_height,) + else: + log(f"Error: {self.NODE_NAME} skipped, because the available image or mask is not found.", message_type='error') + return (None, None, None, 0, 0,) + +NODE_CLASS_MAPPINGS = { + "LayerUtility: ImageScaleByAspectRatio V2": ImageScaleByAspectRatioV2 +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2" +} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/layer__py__image_scale_restore_v2.py b/docs/hel-892/resize-compare-reference/layer__py__image_scale_restore_v2.py new file mode 100644 index 00000000..3007676c --- /dev/null +++ b/docs/hel-892/resize-compare-reference/layer__py__image_scale_restore_v2.py @@ -0,0 +1,132 @@ +import math +import torch +from PIL import Image +from .imagefunc import log, tensor2pil, pil2tensor, image2mask + + +class ImageScaleRestoreV2: + + def __init__(self): + self.NODE_NAME = 'ImageScaleRestore V2' + + @classmethod + def INPUT_TYPES(self): + method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest'] + scale_by_list = ['by_scale', 'longest', 'shortest', 'width', 'height', 'total_pixel(kilo pixel)'] + return { + "required": { + "image": ("IMAGE", ), # + "scale": ("FLOAT", {"default": 1, "min": 0.01, "max": 100, "step": 0.01}), + "method": (method_mode,), + "scale_by": (scale_by_list,), # 是否按长边缩放 + "scale_by_length": ("INT", {"default": 1024, "min": 4, "max": 99999999, "step": 1}), + }, + "optional": { + "mask": ("MASK",), # + "original_size": ("BOX",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", "BOX", "INT", "INT") + RETURN_NAMES = ("image", "mask", "original_size", "width", "height",) + FUNCTION = 'image_scale_restore' + CATEGORY = '😺dzNodes/LayerUtility' + + def image_scale_restore(self, image, scale, method, + scale_by, scale_by_length, + mask = None, original_size = None + ): + + l_images = [] + l_masks = [] + ret_images = [] + ret_masks = [] + for l in image: + l_images.append(torch.unsqueeze(l, 0)) + m = tensor2pil(l) + if m.mode == 'RGBA': + l_masks.append(m.split()[-1]) + + if mask is not None: + if mask.dim() == 2: + mask = torch.unsqueeze(mask, 0) + l_masks = [] + for m in mask: + l_masks.append(tensor2pil(torch.unsqueeze(m, 0)).convert('L')) + + max_batch = max(len(l_images), len(l_masks)) + + orig_width, orig_height = tensor2pil(l_images[0]).size + if original_size is not None: + target_width = original_size[0] + target_height = original_size[1] + else: + target_width = int(orig_width * scale) + target_height = int(orig_height * scale) + if scale_by == 'longest': + if orig_width > orig_height: + target_width = scale_by_length + target_height = int(target_width * orig_height / orig_width) + else: + target_height = scale_by_length + target_width = int(target_height * orig_width / orig_height) + if scale_by == 'shortest': + if orig_width < orig_height: + target_width = scale_by_length + target_height = int(target_width * orig_height / orig_width) + else: + target_height = scale_by_length + target_width = int(target_height * orig_width / orig_height) + if scale_by == 'width': + target_width = scale_by_length + target_height = int(target_width * orig_height / orig_width) + if scale_by == 'height': + target_height = scale_by_length + target_width = int(target_height * orig_width / orig_height) + if scale_by == 'total_pixel(kilo pixel)': + r = orig_width / orig_height + target_width = math.sqrt(r * scale_by_length * 1000) + target_height = target_width / r + target_width = int(target_width) + target_height = int(target_height) + if target_width < 4: + target_width = 4 + if target_height < 4: + target_height = 4 + resize_sampler = Image.LANCZOS + if method == "bicubic": + resize_sampler = Image.BICUBIC + elif method == "hamming": + resize_sampler = Image.HAMMING + elif method == "bilinear": + resize_sampler = Image.BILINEAR + elif method == "box": + resize_sampler = Image.BOX + elif method == "nearest": + resize_sampler = Image.NEAREST + + for i in range(max_batch): + + _image = l_images[i] if i < len(l_images) else l_images[-1] + + _canvas = tensor2pil(_image).convert('RGB') + ret_image = _canvas.resize((target_width, target_height), resize_sampler) + ret_mask = Image.new('L', size=ret_image.size, color='white') + if mask is not None: + _mask = l_masks[i] if i < len(l_masks) else l_masks[-1] + ret_mask = _mask.resize((target_width, target_height), resize_sampler) + + ret_images.append(pil2tensor(ret_image)) + ret_masks.append(image2mask(ret_mask)) + + log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish') + return (torch.cat(ret_images, dim=0), torch.cat(ret_masks, dim=0), [orig_width, orig_height], target_width, target_height,) + + +NODE_CLASS_MAPPINGS = { + "LayerUtility: ImageScaleRestore V2": ImageScaleRestoreV2 +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "LayerUtility: ImageScaleRestore V2": "LayerUtility: ImageScaleRestore V2" +} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/layer__py__imagefunc.py b/docs/hel-892/resize-compare-reference/layer__py__imagefunc.py new file mode 100644 index 00000000..f9ec0adf --- /dev/null +++ b/docs/hel-892/resize-compare-reference/layer__py__imagefunc.py @@ -0,0 +1,2553 @@ +"""Image process functions for ComfyUI nodes +by chflame https://github.com/chflame163 + +@author: chflame +@title: LayerStyle +@nickname: LayerStyle +@description: A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality. +""" + +import os +import sys +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +import pickle +import copy +import re +import json +import math +import glob +import numpy as np +import torch +import scipy.ndimage +import cv2 +import random +import time +from pathlib import Path +from tqdm import tqdm +from functools import lru_cache +from typing import Union, List +from PIL import Image, ImageFilter, ImageChops, ImageDraw, ImageOps, ImageEnhance, ImageFont +from skimage import img_as_float, img_as_ubyte +import torchvision.transforms.functional as TF +import torch.nn.functional as F +from transformers import AutoModel, AutoProcessor, StoppingCriteria, StoppingCriteriaList, AutoModelForCausalLM, AutoTokenizer +from colorsys import rgb_to_hsv +import folder_paths +import comfy.model_management +from .blendmodes import * + +def log(message:str, message_type:str='info'): + name = 'LayerStyle' + + if message_type == 'error': + message = '\033[1;41m' + message + '\033[m' + elif message_type == 'warning': + message = '\033[1;31m' + message + '\033[m' + elif message_type == 'finish': + message = '\033[1;32m' + message + '\033[m' + else: + message = '\033[1;33m' + message + '\033[m' + print(f"# 😺dzNodes: {name} -> {message}") + +try: + from cv2.ximgproc import guidedFilter +except ImportError as e: + # print(e) + log(f"Cannot import name 'guidedFilter' from 'cv2.ximgproc'" + f"\nA few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'." + f"\nFor detail refer to \033[4mhttps://github.com/chflame163/ComfyUI_LayerStyle/issues/5\033[0m") + + + +'''warpper''' + +# create a wrapper function that can apply a function to multiple images in a batch while passing all other arguments to the function +def apply_to_batch(func): + def wrapper(self, image, *args, **kwargs): + images = [] + for img in image: + images.append(func(self, img, *args, **kwargs)) + batch_tensor = torch.cat(images, dim=0) + return (batch_tensor,) + return wrapper + + +'''pickle''' + + +def read_image(filename:str) -> Image: + return Image.open(filename) + +def pickle_to_file(obj:object, file_path:str): + with open(file_path, 'wb') as f: + pickle.dump(obj, f) + +def load_pickle(file_name:str) -> object: + with open(file_name, 'rb') as f: + obj = pickle.load(f) + return obj + +def load_light_leak_images() -> list: + file = os.path.join(folder_paths.models_dir, "layerstyle", "light_leak.pkl") + return load_pickle(file) + +def check_and_download_model(model_path, repo_id): + model_path = os.path.join(folder_paths.models_dir, model_path) + + if not os.path.exists(model_path): + print(f"Downloading {repo_id} model...") + from huggingface_hub import snapshot_download + snapshot_download(repo_id=repo_id, local_dir=model_path, ignore_patterns=["*.md", "*.txt", "onnx", ".git"]) + return model_path + +'''Converter''' + +def cv22ski(cv2_image:np.ndarray) -> np.array: + return img_as_float(cv2_image) + +def ski2cv2(ski:np.array) -> np.ndarray: + return img_as_ubyte(ski) + +def cv22pil(cv2_img:np.ndarray) -> Image: + cv2_img = cv2.cvtColor(cv2_img, cv2.COLOR_BGR2RGB) + return Image.fromarray(cv2_img) + +def pil2cv2(pil_img:Image) -> np.array: + np_img_array = np.asarray(pil_img) + return cv2.cvtColor(np_img_array, cv2.COLOR_RGB2BGR) + +def pil2tensor(image:Image) -> torch.Tensor: + return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0) + +def np2pil(np_image:np.ndarray) -> Image: + return Image.fromarray(np_image) + +def pil2np(pil_image:Image) -> np.array: + return np.ndarray(pil_image) + +def np2tensor(img_np: Union[np.ndarray, List[np.ndarray]]) -> torch.Tensor: + if isinstance(img_np, list): + return torch.cat([np2tensor(img) for img in img_np], dim=0) + return torch.from_numpy(img_np.astype(np.float32) / 255.0).unsqueeze(0) + +def tensor2np(tensor: torch.Tensor) -> List[np.ndarray]: + if len(tensor.shape) == 3: # Single image + return np.clip(255.0 * tensor.cpu().numpy(), 0, 255).astype(np.uint8) + else: # Batch of images + return [np.clip(255.0 * t.cpu().numpy(), 0, 255).astype(np.uint8) for t in tensor] + +def tensor2pil(t_image: torch.Tensor) -> Image: + return Image.fromarray(np.clip(255.0 * t_image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8)) + +def tensor2cv2(image:torch.Tensor) -> np.array: + if image.dim() == 4: + image = image.squeeze() + npimage = image.numpy() + cv2image = np.uint8(npimage * 255 / npimage.max()) + return cv2.cvtColor(cv2image, cv2.COLOR_RGB2BGR) + +def image2mask(image:Image) -> torch.Tensor: + if image.mode == 'L': + return torch.tensor([pil2tensor(image)[0, :, :].tolist()]) + else: + image = image.convert('RGB').split()[0] + return torch.tensor([pil2tensor(image)[0, :, :].tolist()]) + +def mask2image(mask:torch.Tensor) -> Image: + masks = tensor2np(mask) + for m in masks: + _mask = Image.fromarray(m).convert("L") + _image = Image.new("RGBA", _mask.size, color='white') + _image = Image.composite( + _image, Image.new("RGBA", _mask.size, color='black'), _mask) + return _image + +'''Image Functions''' + +# 颜色加深 +def blend_color_burn(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = 1 - (1 - img_2) / (img_1 + 0.001) + mask_1 = img < 0 + mask_2 = img > 1 + img = img * (1 - mask_1) + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +# 颜色减淡 +def blend_color_dodge(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_2 / (1.0 - img_1 + 0.001) + mask_2 = img > 1 + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +# 线性加深 +def blend_linear_burn(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 + img_2 - 1 + mask_1 = img < 0 + img = img * (1 - mask_1) + return cv22pil(ski2cv2(img)) + +# 线性减淡 +def blend_linear_dodge(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 + img_2 + mask_2 = img > 1 + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +# 变亮 +def blend_lighten(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 - img_2 + mask = img > 0 + img = img_1 * mask + img_2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 变暗 +def blend_dark(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 - img_2 + mask = img < 0 + img = img_1 * mask + img_2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 滤色 +def blend_screen(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = 1 - (1 - img_1) * (1 - img_2) + return cv22pil(ski2cv2(img)) + +# 叠加 +def blend_overlay(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_2 < 0.5 + img = 2 * img_1 * img_2 * mask + (1 - mask) * (1 - 2 * (1 - img_1) * (1 - img_2)) + return cv22pil(ski2cv2(img)) + +# 柔光 +def blend_soft_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_1 < 0.5 + T1 = (2 * img_1 - 1) * (img_2 - img_2 * img_2) + img_2 + T2 = (2 * img_1 - 1) * (np.sqrt(img_2) - img_2) + img_2 + img = T1 * mask + T2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 强光 +def blend_hard_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_1 < 0.5 + T1 = 2 * img_1 * img_2 + T2 = 1 - 2 * (1 - img_1) * (1 - img_2) + img = T1 * mask + T2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 亮光 +def blend_vivid_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_1 < 0.5 + T1 = 1 - (1 - img_2) / (2 * img_1 + 0.001) + T2 = img_2 / (2 * (1 - img_1) + 0.001) + mask_1 = T1 < 0 + mask_2 = T2 > 1 + T1 = T1 * (1 - mask_1) + T2 = T2 * (1 - mask_2) + mask_2 + img = T1 * mask + T2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 点光 +def blend_pin_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask_1 = img_2 < (img_1 * 2 - 1) + mask_2 = img_2 > 2 * img_1 + T1 = 2 * img_1 - 1 + T2 = img_2 + T3 = 2 * img_1 + img = T1 * mask_1 + T2 * (1 - mask_1) * (1 - mask_2) + T3 * mask_2 + return cv22pil(ski2cv2(img)) + +# 线性光 +def blend_linear_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_2 + img_1 * 2 - 1 + mask_1 = img < 0 + mask_2 = img > 1 + img = img * (1 - mask_1) + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +def blend_hard_mix(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 + img_2 + mask = img_1 + img_2 > 1 + img = img * (1 - mask) + mask + img = img * mask + return cv22pil(ski2cv2(img)) + +def shift_image(image:Image, distance_x:int, distance_y:int, background_color:str='#000000', cyclic:bool=False) -> Image: + width = image.width + height = image.height + ret_image = Image.new('RGB', size=(width, height), color=background_color) + for x in range(width): + for y in range(height): + if cyclic: + orig_x = x + distance_x + if orig_x > width-1 or orig_x < 0: + orig_x = abs(orig_x % width) + orig_y = y + distance_y + if orig_y > height-1 or orig_y < 0: + orig_y = abs(orig_y % height) + + pixel = image.getpixel((orig_x, orig_y)) + ret_image.putpixel((x, y), pixel) + else: + if x > -distance_x and y > -distance_y: # 防止回转 + if x + distance_x < width and y + distance_y < height: # 防止越界 + pixel = image.getpixel((x + distance_x, y + distance_y)) + ret_image.putpixel((x, y), pixel) + return ret_image + +def chop_image(background_image:Image, layer_image:Image, blend_mode:str, opacity:int) -> Image: + ret_image = background_image + if blend_mode == 'normal': + ret_image = copy.deepcopy(layer_image) + if blend_mode == 'multply': + ret_image = ImageChops.multiply(background_image,layer_image) + if blend_mode == 'screen': + ret_image = ImageChops.screen(background_image, layer_image) + if blend_mode == 'add': + ret_image = ImageChops.add(background_image, layer_image, 1, 0) + if blend_mode == 'subtract': + ret_image = ImageChops.subtract(background_image, layer_image, 1, 0) + if blend_mode == 'difference': + ret_image = ImageChops.difference(background_image, layer_image) + if blend_mode == 'darker': + ret_image = ImageChops.darker(background_image, layer_image) + if blend_mode == 'lighter': + ret_image = ImageChops.lighter(background_image, layer_image) + if blend_mode == 'color_burn': + ret_image = blend_color_burn(background_image, layer_image) + if blend_mode == 'color_dodge': + ret_image = blend_color_dodge(background_image, layer_image) + if blend_mode == 'linear_burn': + ret_image = blend_linear_burn(background_image, layer_image) + if blend_mode == 'linear_dodge': + ret_image = blend_linear_dodge(background_image, layer_image) + if blend_mode == 'overlay': + ret_image = blend_overlay(background_image, layer_image) + if blend_mode == 'soft_light': + ret_image = blend_soft_light(background_image, layer_image) + if blend_mode == 'hard_light': + ret_image = blend_hard_light(background_image, layer_image) + if blend_mode == 'vivid_light': + ret_image = blend_vivid_light(background_image, layer_image) + if blend_mode == 'pin_light': + ret_image = blend_pin_light(background_image, layer_image) + if blend_mode == 'linear_light': + ret_image = blend_linear_light(background_image, layer_image) + if blend_mode == 'hard_mix': + ret_image = blend_hard_mix(background_image, layer_image) + # opacity + if opacity == 0: + ret_image = background_image + elif opacity < 100: + alpha = 1.0 - float(opacity) / 100 + ret_image = Image.blend(ret_image, background_image, alpha) + return ret_image + +def chop_image_v2(background_image:Image, layer_image:Image, blend_mode:str, opacity:int) -> Image: + + backdrop_prepped = np.asarray(background_image.convert('RGBA'), dtype=float) + source_prepped = np.asarray(layer_image.convert('RGBA'), dtype=float) + blended_np = BLEND_MODES[blend_mode](backdrop_prepped, source_prepped, opacity / 100) + + return Image.fromarray(np.uint8(blended_np)).convert('RGB') + +def remove_background(image:Image, mask:Image, color:str) -> Image: + width = image.width + height = image.height + ret_image = Image.new('RGB', size=(width, height), color=color) + ret_image.paste(image, mask=mask) + return ret_image + +def sharpen(image:Image) -> Image: + img = pil2cv2(image) + Laplace_kernel = np.array([[-1, -1, -1], + [-1, 9, -1], + [-1, -1, -1]], dtype=np.float32) + ret_image = cv2.filter2D(img, -1, Laplace_kernel) + return cv22pil(ret_image) + +def gaussian_blur(image:Image, radius:int) -> Image: + # image = image.convert("RGBA") + ret_image = image.filter(ImageFilter.GaussianBlur(radius=radius)) + return ret_image + +def motion_blur(image:Image, angle:int, blur:int) -> Image: + angle += 45 + blur *= 5 + image = np.array(pil2cv2(image)) + M = cv2.getRotationMatrix2D((blur / 2, blur / 2), angle, 1) + motion_blur_kernel = np.diag(np.ones(blur)) + motion_blur_kernel = cv2.warpAffine(motion_blur_kernel, M, (blur, blur)) + motion_blur_kernel = motion_blur_kernel / blur + blurred = cv2.filter2D(image, -1, motion_blur_kernel) + # convert to uint8 + cv2.normalize(blurred, blurred, 0, 255, cv2.NORM_MINMAX) + blurred = np.array(blurred, dtype=np.uint8) + ret_image = cv22pil(blurred) + return ret_image + +def __apply_vignette(image, vignette): + # If image needs to be normalized (0-1 range) + needs_normalization = image.max() > 1 + if needs_normalization: + image = image.astype(np.float32) / 255 + final_image = np.clip(image * vignette[..., np.newaxis], 0, 1) + if needs_normalization: + final_image = (final_image * 255).astype(np.uint8) + return final_image +def vignette_image(image:Image, intensity: float, center_x: float, center_y: float) -> Image: + image = pil2tensor(image) + _, height, width, _ = image.shape + # Generate the vignette for each image in the batch + # Create linear space but centered around the provided center point ratios + x = np.linspace(-1, 1, width) + y = np.linspace(-1, 1, height) + X, Y = np.meshgrid(x - (2 * center_x - 1), y - (2 * center_y - 1)) + # Calculate distances to the furthest corner + distances_to_corners = [ + np.sqrt((0 - center_x) ** 2 + (0 - center_y) ** 2), + np.sqrt((1 - center_x) ** 2 + (0 - center_y) ** 2), + np.sqrt((0 - center_x) ** 2 + (1 - center_y) ** 2), + np.sqrt((1 - center_x) ** 2 + (1 - center_y) ** 2) + ] + max_distance_to_corner = np.max(distances_to_corners) + radius = np.sqrt(X ** 2 + Y ** 2) + radius = radius / (max_distance_to_corner * np.sqrt(2)) # Normalize radius + opacity = np.clip(intensity, 0, 1) + vignette = 1 - radius * opacity + tensor_image = image.numpy() + # Apply vignette + vignette_image = __apply_vignette(tensor_image, vignette) + return tensor2pil(torch.from_numpy(vignette_image).unsqueeze(0)) + +def RGB2YCbCr(t): + YCbCr = t.detach().clone() + YCbCr[:,:,:,0] = 0.2123 * t[:,:,:,0] + 0.7152 * t[:,:,:,1] + 0.0722 * t[:,:,:,2] + YCbCr[:,:,:,1] = 0 - 0.1146 * t[:,:,:,0] - 0.3854 * t[:,:,:,1] + 0.5 * t[:,:,:,2] + YCbCr[:,:,:,2] = 0.5 * t[:,:,:,0] - 0.4542 * t[:,:,:,1] - 0.0458 * t[:,:,:,2] + return YCbCr + +def YCbCr2RGB(t): + RGB = t.detach().clone() + RGB[:,:,:,0] = t[:,:,:,0] + 1.5748 * t[:,:,:,2] + RGB[:,:,:,1] = t[:,:,:,0] - 0.1873 * t[:,:,:,1] - 0.4681 * t[:,:,:,2] + RGB[:,:,:,2] = t[:,:,:,0] + 1.8556 * t[:,:,:,1] + return RGB + +# gaussian blur a tensor image batch in format [B x H x W x C] on H/W (spatial, per-image, per-channel) +def cv_blur_tensor(images, dx, dy): + if min(dx, dy) > 100: + np_img = torch.nn.functional.interpolate(images.detach().clone().movedim(-1,1), scale_factor=0.1, mode='bilinear').movedim(1,-1).cpu().numpy() + for index, image in enumerate(np_img): + np_img[index] = cv2.GaussianBlur(image, (dx // 20 * 2 + 1, dy // 20 * 2 + 1), 0) + return torch.nn.functional.interpolate(torch.from_numpy(np_img).movedim(-1,1), size=(images.shape[1], images.shape[2]), mode='bilinear').movedim(1,-1) + else: + np_img = images.detach().clone().cpu().numpy() + for index, image in enumerate(np_img): + np_img[index] = cv2.GaussianBlur(image, (dx, dy), 0) + return torch.from_numpy(np_img) + +def image_add_grain(image:Image, scale:float=0.5, strength:float=0.5, saturation:float=0.7, toe:float=0.0, seed:int=0) -> Image: + + image = pil2tensor(image.convert("RGB")) + t = image.detach().clone() + torch.manual_seed(seed) + grain = torch.rand(t.shape[0], int(t.shape[1] // scale), int(t.shape[2] // scale), 3) + + YCbCr = RGB2YCbCr(grain) + YCbCr[:, :, :, 0] = cv_blur_tensor(YCbCr[:, :, :, 0], 3, 3) + YCbCr[:, :, :, 1] = cv_blur_tensor(YCbCr[:, :, :, 1], 15, 15) + YCbCr[:, :, :, 2] = cv_blur_tensor(YCbCr[:, :, :, 2], 11, 11) + + grain = (YCbCr2RGB(YCbCr) - 0.5) * strength + grain[:, :, :, 0] *= 2 + grain[:, :, :, 2] *= 3 + grain += 1 + grain = grain * saturation + grain[:, :, :, 1].unsqueeze(3).repeat(1, 1, 1, 3) * (1 - saturation) + + grain = torch.nn.functional.interpolate(grain.movedim(-1, 1), size=(t.shape[1], t.shape[2]), + mode='bilinear').movedim(1, -1) + t[:, :, :, :3] = torch.clip((1 - (1 - t[:, :, :, :3]) * grain) * (1 - toe) + toe, 0, 1) + return tensor2pil(t) + +def filmgrain_image(image:Image, scale:float, grain_power:float, + shadows:float, highs:float, grain_sat:float, + sharpen:int=1, grain_type:int=4, src_gamma:float=1.0, + gray_scale:bool=False, seed:int=0) -> Image: + # image = pil2tensor(image) + # grain_type, 1=fine, 2=fine simple, 3=coarse, 4=coarser + grain_type_index = 3 + + # Apply grain + from .filmgrainer import filmgrainer as fg + grain_image = fg.process(image, scale=scale, src_gamma=src_gamma, grain_power=grain_power, + shadows=shadows, highs=highs, grain_type=grain_type_index, + grain_sat=grain_sat, gray_scale=gray_scale, sharpen=sharpen, seed=seed) + return tensor2pil(torch.from_numpy(grain_image).unsqueeze(0)) + +def __apply_radialblur(image, blur_strength, radial_mask, focus_spread, steps): + from .filmgrainer import processing as processing_utils + needs_normalization = image.max() > 1 + if needs_normalization: + image = image.astype(np.float32) / 255 + blurred_images = processing_utils.generate_blurred_images(image, blur_strength, steps, focus_spread) + final_image = processing_utils.apply_blurred_images(image, blurred_images, radial_mask) + if needs_normalization: + final_image = np.clip(final_image * 255, 0, 255).astype(np.uint8) + return final_image + +def radialblur_image(image:Image, blur_strength:float, center_x:float, center_y:float, focus_spread:float, steps:int=5) -> Image: + width, height = image.size + image = pil2tensor(image) + if image.dim() == 4: + image = image[0] + + # _, height, width, = image.shape + # Generate the vignette for each image in the batch + c_x, c_y = int(width * center_x), int(height * center_y) + # Calculate distances to all corners from the center + distances_to_corners = [ + np.sqrt((c_x - 0)**2 + (c_y - 0)**2), + np.sqrt((c_x - width)**2 + (c_y - 0)**2), + np.sqrt((c_x - 0)**2 + (c_y - height)**2), + np.sqrt((c_x - width)**2 + (c_y - height)**2) + ] + max_distance_to_corner = max(distances_to_corners) + # Create and adjust radial mask + X, Y = np.meshgrid(np.arange(width) - c_x, np.arange(height) - c_y) + radial_mask = np.sqrt(X**2 + Y**2) / max_distance_to_corner + tensor_image = image.numpy() + # Apply blur + blur_image = __apply_radialblur(tensor_image, blur_strength, radial_mask, focus_spread, steps) + return tensor2pil(torch.from_numpy(blur_image).unsqueeze(0)) + +def __apply_depthblur(image, depth_map, blur_strength, focal_depth, focus_spread, steps): + from .filmgrainer import processing as processing_utils + # Normalize the input image if needed + needs_normalization = image.max() > 1 + if needs_normalization: + image = image.astype(np.float32) / 255 + # Normalize the depth map if needed + depth_map = depth_map.astype(np.float32) / 255 if depth_map.max() > 1 else depth_map + # Resize depth map to match the image dimensions + depth_map_resized = cv2.resize(depth_map, (image.shape[1], image.shape[0]), interpolation=cv2.INTER_LINEAR) + if len(depth_map_resized.shape) > 2: + depth_map_resized = cv2.cvtColor(depth_map_resized, cv2.COLOR_BGR2GRAY) + # Adjust the depth map based on the focal plane + depth_mask = np.abs(depth_map_resized - focal_depth) + depth_mask = np.clip(depth_mask / np.max(depth_mask), 0, 1) + # Generate blurred versions of the image + blurred_images = processing_utils.generate_blurred_images(image, blur_strength, steps, focus_spread) + # Use the adjusted depth map as a mask for applying blurred images + final_image = processing_utils.apply_blurred_images(image, blurred_images, depth_mask) + # Convert back to original range if the image was normalized + if needs_normalization: + final_image = np.clip(final_image * 255, 0, 255).astype(np.uint8) + return final_image + +def depthblur_image(image:Image, depth_map:Image, blur_strength:float, focal_depth:float, focus_spread:float, steps:int=5) -> Image: + width, height = image.size + image = pil2tensor(image) + depth_map = pil2tensor(depth_map) + if image.dim() == 4: + image = image[0] + if depth_map.dim() == 4: + depth_map = depth_map[0] + tensor_image = image.numpy() + tensor_image_depth = depth_map.numpy() + # Apply blur + blur_image = __apply_depthblur(tensor_image, tensor_image_depth, blur_strength, focal_depth, focus_spread, steps) + return tensor2pil(torch.from_numpy(blur_image).unsqueeze(0)) + +def fit_resize_image(image:Image, target_width:int, target_height:int, fit:str, resize_sampler:str, background_color:str = '#000000') -> Image: + image = image.convert('RGB') + orig_width, orig_height = image.size + if image is not None: + if fit == 'letterbox': + if orig_width / orig_height > target_width / target_height: # 更宽,上下留黑 + fit_width = target_width + fit_height = int(target_width / orig_width * orig_height) + else: # 更瘦,左右留黑 + fit_height = target_height + fit_width = int(target_height / orig_height * orig_width) + fit_image = image.resize((fit_width, fit_height), resize_sampler) + ret_image = Image.new('RGB', size=(target_width, target_height), color=background_color) + ret_image.paste(fit_image, box=((target_width - fit_width)//2, (target_height - fit_height)//2)) + elif fit == 'crop': + if orig_width / orig_height > target_width / target_height: # 更宽,裁左右 + fit_width = int(orig_height * target_width / target_height) + fit_image = image.crop( + ((orig_width - fit_width)//2, 0, (orig_width - fit_width)//2 + fit_width, orig_height)) + else: # 更瘦,裁上下 + fit_height = int(orig_width * target_height / target_width) + fit_image = image.crop( + (0, (orig_height-fit_height)//2, orig_width, (orig_height-fit_height)//2 + fit_height)) + ret_image = fit_image.resize((target_width, target_height), resize_sampler) + else: + ret_image = image.resize((target_width, target_height), resize_sampler) + return ret_image + +def __rotate_expand(image:Image, angle:float, SSAA:int=0, method:str="lanczos") -> Image: + images = pil2tensor(image) + expand = "true" + height, width = images[0, :, :, 0].shape + + def rotate_tensor(tensor): + resize_sampler = Image.LANCZOS + rotate_sampler = Image.BICUBIC + if method == "bicubic": + resize_sampler = Image.BICUBIC + rotate_sampler = Image.BICUBIC + elif method == "hamming": + resize_sampler = Image.HAMMING + rotate_sampler = Image.BILINEAR + elif method == "bilinear": + resize_sampler = Image.BILINEAR + rotate_sampler = Image.BILINEAR + elif method == "box": + resize_sampler = Image.BOX + rotate_sampler = Image.NEAREST + elif method == "nearest": + resize_sampler = Image.NEAREST + rotate_sampler = Image.NEAREST + img = tensor2pil(tensor) + if SSAA > 1: + img_us_scaled = img.resize((width * SSAA, height * SSAA), resize_sampler) + img_rotated = img_us_scaled.rotate(angle, rotate_sampler, expand == "true", fillcolor=(0, 0, 0, 0)) + img_down_scaled = img_rotated.resize((img_rotated.width // SSAA, img_rotated.height // SSAA), resize_sampler) + result = pil2tensor(img_down_scaled) + else: + img_rotated = img.rotate(angle, rotate_sampler, expand == "true", fillcolor=(0, 0, 0, 0)) + result = pil2tensor(img_rotated) + return result + + if angle == 0.0 or angle == 360.0: + return tensor2pil(images) + else: + rotated_tensor = torch.stack([rotate_tensor(images[i]) for i in range(len(images))]) + return tensor2pil(rotated_tensor).convert('RGB') + +def image_rotate_extend_with_alpha(image:Image, angle:float, alpha:Image=None, method:str="lanczos", SSAA:int=0) -> tuple: + _image = __rotate_expand(image.convert('RGB'), angle, SSAA, method) + if angle is not None: + _alpha = __rotate_expand(alpha.convert('RGB'), angle, SSAA, method) + ret_image = RGB2RGBA(_image, _alpha) + else: + ret_image = _image + return (_image, _alpha.convert('L'), ret_image) + +def create_box_gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, scale:int=50) -> Image: + # scale is percent of border to center for the rectangle + if scale > 100: + scale = 100 + elif scale < 1: + scale = 1 + start_color = Hex_to_RGB(start_color_inhex) + end_color = Hex_to_RGB(end_color_inhex) + ret_image = Image.new("RGB", (width, height), start_color) + draw = ImageDraw.Draw(ret_image) + step = int(min(width, height) * scale / 100 / 2) + if step > 0: + for i in range(step): + R = int(start_color[0] * (step - i) / step + end_color[0] * i / step) + G = int(start_color[1] * (step - i) / step + end_color[1] * i / step) + B = int(start_color[2] * (step - i) / step + end_color[2] * i / step) + color = (R, G, B) + draw.rectangle((i, i, width - i, height - i), fill=color) + draw.rectangle((step, step, width - step, height - step), fill=end_color) + return ret_image + +def create_gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, direction:str='bottom') -> Image: + # direction = one of top, bottom, left, right + start_color = Hex_to_RGB(start_color_inhex) + end_color = Hex_to_RGB(end_color_inhex) + ret_image = Image.new("RGB", (width, height), start_color) + draw = ImageDraw.Draw(ret_image) + if direction == 'bottom': + for i in range(height): + R = int(start_color[0] * (height - i) / height + end_color[0] * i / height) + G = int(start_color[1] * (height - i) / height + end_color[1] * i / height) + B = int(start_color[2] * (height - i) / height + end_color[2] * i / height) + color = (R, G, B) + draw.line((0, i, width, i), fill=color) + elif direction == 'top': + for i in range(height): + R = int(end_color[0] * (height - i) / height + start_color[0] * i / height) + G = int(end_color[1] * (height - i) / height + start_color[1] * i / height) + B = int(end_color[2] * (height - i) / height + start_color[2] * i / height) + color = (R, G, B) + draw.line((0, i, width, i), fill=color) + elif direction == 'right': + for i in range(width): + R = int(start_color[0] * (width - i) / width + end_color[0] * i / width) + G = int(start_color[1] * (width - i) / width + end_color[1] * i / width) + B = int(start_color[2] * (width - i) / width + end_color[2] * i / width) + color = (R, G, B) + draw.line((i, 0, i, height), fill=color) + elif direction == 'left': + for i in range(width): + R = int(end_color[0] * (width - i) / width + start_color[0] * i / width) + G = int(end_color[1] * (width - i) / width + start_color[1] * i / width) + B = int(end_color[2] * (width - i) / width + start_color[2] * i / width) + color = (R, G, B) + draw.line((i, 0, i, height), fill=color) + else: + log(f'A argument error of imagefunc.create_gradient(), ' + f'"direction=" must one of "top, bottom, left, right".', + message_type='error') + + return ret_image + +def gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, angle:float, ) -> Image: + radius = int((width + height) / 4) + g = create_gradient(start_color_inhex, end_color_inhex, radius, radius) + _canvas = Image.new('RGB', size=(radius, radius*3), color=start_color_inhex) + top = Image.new('RGB', size=(radius, radius), color=start_color_inhex) + bottom = Image.new('RGB', size=(radius, radius),color=end_color_inhex) + _canvas.paste(top, box=(0, 0, radius, radius)) + _canvas.paste(g, box=(0, radius, radius, radius * 2)) + _canvas.paste(bottom,box=(0, radius * 2, radius, radius * 3)) + _canvas = _canvas.resize((radius * 3, radius * 3)) + _canvas = __rotate_expand(_canvas,angle) + center = int(_canvas.width / 2) + _x = int(width / 3) + _y = int(height / 3) + ret_image = _canvas.crop((center - _x, center - _y, center + _x, center + _y)) + ret_image = ret_image.resize((width, height)) + return ret_image + +def draw_rounded_rectangle(image:Image, radius:int, bboxes:list, scale_factor:int=2, color:str="white") -> Image: + """ + 绘制圆角矩形图像。 + image:输入图片 + radius: 半径,100为纯椭圆 + bboxes: (x1,y1,x2,y2)列表 + scale_factor: 放大倍数 + :return: 绘制好的pillow图像 + """ + if scale_factor < 1 : scale_factor = 1 + + img = image.resize((image.width * scale_factor, image.height * scale_factor), Image.LANCZOS) + draw = ImageDraw.Draw(img) + + for (x1, y1, x2, y2) in bboxes: + r = radius * min(x2-x1, y2-y1) * 0.005 + x1, y1, x2, y2 = x1 * scale_factor, y1 * scale_factor, x2 * scale_factor, y2 * scale_factor + # 计算圆角矩形的四个角的圆弧 + draw.rounded_rectangle([x1, y1, x2, y2], radius=r * scale_factor, fill=color) + + img = img.filter(ImageFilter.SMOOTH_MORE) + img = img.resize((image.width, image.height), Image.LANCZOS) + + return img + +def draw_rect(image:Image, x:int, y:int, width:int, height:int, line_color:str, line_width:int, + box_color:str=None) -> Image: + draw = ImageDraw.Draw(image) + draw.rectangle((x, y, x + width, y + height), fill=box_color, outline=line_color, width=line_width, ) + return image + +def draw_border(image:Image, border_width:int, color:str='#FFFFFF') -> Image: + return ImageOps.expand(image, border=border_width, fill=color) + +# 对灰度图像进行直方图均衡化 +def normalize_gray(image:Image) -> Image: + if image.mode != 'L': + image = image.convert('L') + img = np.asarray(image) + balanced_img = img.copy() + hist, bins = np.histogram(img.reshape(-1), 256, (0, 256)) + bmin = np.min(np.where(hist > (hist.sum() * 0.0005))) + bmax = np.max(np.where(hist > (hist.sum() * 0.0005))) + balanced_img = np.clip(img, bmin, bmax) + balanced_img = ((balanced_img - bmin) / (bmax - bmin) * 255) + return Image.fromarray(balanced_img).convert('L') + +def remap_pixel(pixel:int, min_brightness:int, max_brightness:int) -> int: + return int((pixel - min_brightness) / (max_brightness - min_brightness) * 255) +def histogram_range(image:Image, black_point:int, black_range:int, white_point:int, white_range:int) -> Image: + + if image.mode != 'L': + image = image.convert('L') + + if black_point == 255: + black_point = 254 + if white_point == 0: + white_point = 1 + if black_point + black_range > 255: + black_range = 255 - black_point + if white_range > white_point: + white_range = white_point + + white_image = Image.new("L", size=image.size, color="white") + black_image = Image.new("L", size=image.size, color="black") + + if black_point == white_point: + return white_image + + + # draw white part + white_part = black_image + if white_point < 255 or white_range > 0: + for y in (range(image.height)): + for x in range(image.width): + pixel = image.getpixel((x, y)) + if pixel > white_point: # put white + white_part.putpixel((x, y), 255) + elif pixel > white_point - white_range: + pixel = remap_pixel(pixel, white_point - white_range, white_point) + white_part.putpixel((x, y), pixel) + white_part = ImageChops.invert(white_part) + + + # draw black part + black_part = black_image + if black_point > 0 or black_range > 0: + for y in (range(image.height)): + for x in range(image.width): + pixel = image.getpixel((x, y)) + if pixel < black_point: # put black + black_part.putpixel((x, y), 255) + elif pixel < black_point + black_range: + pixel = remap_pixel(pixel, black_point, black_point + black_range) + black_part.putpixel((x, y), 255 - pixel) + black_part = ImageChops.invert(black_part) + + ret_image = chop_image_v2(white_part, black_part, blend_mode='darken', opacity=100) + + return ret_image + +def histogram_equalization(image:Image, mask:Image=None, gamma_strength=0.5) -> Image: + + if image.mode != 'L': + image = image.convert('L') + + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + else: + mask = Image.new('L', size=image.size, color = 'white') + + # calculate Min/Max brightness pixel + min_brightness = 255 + max_brightness = 0 + average_brightness = 0 + total_pixel = 0 + for y in range(image.height): + for x in range(image.width): + if mask.getpixel((x, y)) == 0: + continue + else: + pixel = image.getpixel((x, y)) + if pixel < min_brightness: + min_brightness = pixel + if pixel > max_brightness: + max_brightness = pixel + average_brightness += pixel + total_pixel += 1 + if total_pixel == 0: + log(f"histogram_equalization: mask is not available, return orinianl image.") + return image + average_brightness = int(average_brightness / total_pixel) + + for y in range(image.height): + for x in range(image.width): + pixel = image.getpixel((x, y)) + image.putpixel((x, y), remap_pixel(pixel, min_brightness, max_brightness)) + + image = gamma_trans(image, (average_brightness - 127) / 127 * gamma_strength * 0.66 + 1) + + return image.convert('L') + +def adjust_levels(image:Image, input_black:int=0, input_white:int=255, midtones:float=1.0, + output_black:int=0, output_white:int=255) -> Image: + + if input_black == input_white or output_black == output_white: + return Image.new('RGB', size=image.size, color='gray') + + img = pil2cv2(image).astype(np.float64) + + if input_black > input_white: + input_black, input_white = input_white, input_black + if output_black > output_white: + output_black, output_white = output_white, output_black + + + # input_levels remap + if input_black > 0 or input_white < 255: + img = 255 * ((img - input_black) / (input_white - input_black)) + img[img < 0] = 0 + img[img > 255] = 255 + + # # mid_tone + if midtones != 1.0: + img = 255 * np.power(img / 255, 1.0 / midtones) + + img[img < 0] = 0 + img[img > 255] = 255 + + # output_levels remap + if output_black > 0 or output_white < 255: + img = (img / 255) * (output_white - output_black) + output_black + img[img < 0] = 0 + img[img > 255] = 255 + + img = img.astype(np.uint8) + return cv22pil(img) + +def get_image_color_tone(image:Image, mask:Image=None) -> str: + image = image.convert('RGB') + max_score = 0.0001 + dominant_color = (255, 255, 255) + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + canvas = Image.new('RGB', size=image.size, color='black') + canvas.paste(image, mask=mask) + image = canvas + + all_colors = image.getcolors(image.width * image.height) + for count, (r, g, b) in all_colors: + if mask is not None: + if r + g + b < 2: # 忽略黑色 + continue + saturation = rgb_to_hsv(r / 255.0, g / 255.0, b / 255.0)[1] + y = min(abs(r * 2104 + g * 4130 + b * 802 + 4096 + 131072) >> 13,235) + y = (y - 16.0) / (235 - 16) + score = (saturation+0.1)*count + if score > max_score: + max_score = score + dominant_color = (r, g, b) + ret_color = RGB_to_Hex(dominant_color) + return ret_color + +def get_image_color_average(image:Image, mask:Image=None) -> str: + image = image.convert('RGB') + width, height = image.size + total_red = 0 + total_green = 0 + total_blue = 0 + total_pixel =0 + for y in range(height): + for x in range(width): + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + if mask.getpixel((x, y)) <= 127: + continue + rgb = image.getpixel((x, y)) + total_red += rgb[0] + total_green += rgb[1] + total_blue += rgb[2] + total_pixel += 1 + + average_red = total_red // total_pixel + average_green = total_green // total_pixel + average_blue = total_blue // total_pixel + color = (average_red, average_green, average_blue) + ret_color = RGB_to_Hex(color) + return ret_color + +def get_gray_average(image:Image, mask:Image=None) -> int: + # image.mode = 'HSV', mask.mode = 'L' + image = image.convert('HSV') + + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + else: + mask = Image.new('L', size=image.size, color='white') + _, _, _v = image.convert('HSV').split() + _v = np.array(_v) + average_gray = _v[np.array(mask) > 16].mean() + # width, height = image.size + # total_gray = 0 + # valid_pixels = 0 + # for y in range(height): + # for x in range(width): + # if mask is not None: + # if mask.getpixel((x, y)) > 16: #mask亮度低于16的忽略不计 + # gray = _v.getpixel((x, y)) + # total_gray += gray + # valid_pixels += 1 + # else: + # gray = _v.getpixel((x, y)) + # total_gray += gray + # valid_pixels += 1 + # average_gray = total_gray // valid_pixels + return average_gray + +def calculate_shadow_highlight_level(gray:int) -> float: + range = 255 + shadow_exponent = 3 + highlight_exponent = 2 + shadow_ratio = gray ** shadow_exponent / range ** shadow_exponent + highlight_ratio = gray ** highlight_exponent / range ** highlight_exponent + shadow_level = shadow_ratio * 100 + (1 - shadow_ratio) * 32 + highlight_level = highlight_ratio * 100 + (1 - highlight_ratio) * 32 + return shadow_level, highlight_level + +def luminance_keyer(image:Image, low:float=0, high:float=1, gamma:float=1) -> Image: + image = pil2tensor(image) + t = image[:, :, :, :3].detach().clone() + alpha = 0.2126 * t[:, :, :, 0] + 0.7152 * t[:, :, :, 1] + 0.0722 * t[:, :, :, 2] + if low == high: + alpha = (alpha > high).to(t.dtype) + else: + alpha = (alpha - low) / (high - low) + if gamma != 1.0: + alpha = torch.pow(alpha, 1 / gamma) + alpha = torch.clamp(alpha, min=0, max=1).unsqueeze(3).repeat(1, 1, 1, 3) + return tensor2pil(alpha).convert('L') + +def get_image_bright_average(image:Image) -> int: + image = image.convert('L') + width, height = image.size + total_bright = 0 + pixels = 0 + for y in range(height): + for x in range(width): + b = image.getpixel((x, y)) + if b > 1: # 排除死黑 + pixels += 1 + total_bright += b + return int(total_bright / pixels) + +def image_channel_split(image:Image, mode = 'RGBA') -> tuple: + _image = image.convert('RGBA') + channel1 = Image.new('L', size=_image.size, color='black') + channel2 = Image.new('L', size=_image.size, color='black') + channel3 = Image.new('L', size=_image.size, color='black') + channel4 = Image.new('L', size=_image.size, color='black') + if mode == 'RGBA': + channel1, channel2, channel3, channel4 = _image.split() + if mode == 'RGB': + channel1, channel2, channel3 = _image.convert('RGB').split() + if mode == 'YCbCr': + channel1, channel2, channel3 = _image.convert('YCbCr').split() + if mode == 'LAB': + channel1, channel2, channel3 = _image.convert('LAB').split() + if mode == 'HSV': + channel1, channel2, channel3 = _image.convert('HSV').split() + return channel1, channel2, channel3, channel4 + +def image_channel_merge(channels:tuple, mode = 'RGB' ) -> Image: + channel1 = channels[0].convert('L') + channel2 = channels[1].convert('L') + channel3 = channels[2].convert('L') + channel4 = Image.new('L', size=channel1.size, color='white') + if mode == 'RGBA': + if len(channels) > 3: + channel4 = channels[3].convert('L') + ret_image = Image.merge('RGBA',[channel1, channel2, channel3, channel4]) + elif mode == 'RGB': + ret_image = Image.merge('RGB', [channel1, channel2, channel3]) + elif mode == 'YCbCr': + ret_image = Image.merge('YCbCr', [channel1, channel2, channel3]).convert('RGB') + elif mode == 'LAB': + ret_image = Image.merge('LAB', [channel1, channel2, channel3]).convert('RGB') + elif mode == 'HSV': + ret_image = Image.merge('HSV', [channel1, channel2, channel3]).convert('RGB') + return ret_image + +def image_gray_offset(image:Image, offset:int) -> Image: + image = image.convert('L') + image_array = np.array(image, dtype=np.int16) + image_array = np.clip(image_array + offset, 0, 255).astype(np.uint8) + ret_image = Image.fromarray(image_array, mode='L') + return ret_image + +def image_gray_ratio(image:Image, ratio:float) -> Image: + image = image.convert('L') + image_array = np.array(image, dtype=np.float32) + image_array = np.clip(image_array * ratio, 0, 255).astype(np.uint8) + ret_image = Image.fromarray(image_array, mode='L') + return ret_image + +def image_hue_offset(image:Image, offset:int) -> Image: + image = image.convert('L') + image_array = np.array(image, dtype=np.int16) + image_array = (image_array + offset) % 256 + image_array = image_array.astype(np.uint8) + ret_image = Image.fromarray(image_array, mode='L') + + return ret_image + +def gamma_trans(image:Image, gamma:float) -> Image: + cv2_image = pil2cv2(image) + gamma_table = [np.power(x/255.0,gamma)*255.0 for x in range(256)] + gamma_table = np.round(np.array(gamma_table)).astype(np.uint8) + _corrected = cv2.LUT(cv2_image,gamma_table) + return cv22pil(_corrected) + + +def read_LUT_IridasCube_encode_utf8(path: str): + from colour.utilities import as_float_array, as_int_scalar + from colour.io.luts.lut import LUT3x1D, LUT3D + title = re.sub("_|-|\\.", " ", os.path.splitext(os.path.basename(path))[0]) + domain_min, domain_max = np.array([0, 0, 0]), np.array([1, 1, 1]) + dimensions: int = 3 + size: int = 2 + data = [] + comments = [] + + with open(path, encoding='utf-8') as cube_file: + lines = cube_file.readlines() + for line in lines: + + line = line.strip() # noqa: PLW2901 + + if len(line) == 0: + continue + + if line.startswith("#"): + comments.append(line[1:].strip()) + continue + + tokens = line.split() + if tokens[0] == "TITLE": + title = " ".join(tokens[1:])[1:-1] + elif tokens[0] == "DOMAIN_MIN": + domain_min = as_float_array(tokens[1:]) + elif tokens[0] == "DOMAIN_MAX": + domain_max = as_float_array(tokens[1:]) + elif tokens[0] == "LUT_1D_SIZE": + dimensions = 2 + size = as_int_scalar(tokens[1]) + elif tokens[0] == "LUT_3D_SIZE": + dimensions = 3 + size = as_int_scalar(tokens[1]) + else: + data.append(tokens) + + table = as_float_array(data) + + LUT: LUT3x1D | LUT3D + if dimensions == 2: + LUT = LUT3x1D( + table, + title, + np.vstack([domain_min, domain_max]), + comments=comments, + ) + elif dimensions == 3: + # The lines of table data shall be in ascending index order, + # with the first component index (Red) changing most rapidly, + # and the last component index (Blue) changing least rapidly. + table = table.reshape([size, size, size, 3], order="F") + + LUT = LUT3D( + table, + title, + np.vstack([domain_min, domain_max]), + comments=comments, + ) + + return LUT + + +def apply_lut(image:Image, lut_file:str, colorspace:str, strength:int, clip_values:bool=True) -> Image: + """ + Apply a LUT to an image. + :param image: Image to apply the LUT to. + :param lut_file: LUT file to apply. + :param colorspace: Colorspace to convert the image to before applying the LUT. + :param clip_values: Clip the values of the LUT to the domain of the LUT. + :param strength: Strength of the LUT. + :return: Image with the LUT applied. + """ + log_colorspace = False + if colorspace == "log": + log_colorspace = True + + # from colour.io.luts.iridas_cube import read_LUT_IridasCube + + lut = read_LUT_IridasCube_encode_utf8(lut_file) + lut.name = lut_file + + if clip_values: + if lut.domain[0].max() == lut.domain[0].min() and lut.domain[1].max() == lut.domain[1].min(): + lut.table = np.clip(lut.table, lut.domain[0, 0], lut.domain[1, 0]) + else: + if len(lut.table.shape) == 2: # 3x1D + for dim in range(3): + lut.table[:, dim] = np.clip(lut.table[:, dim], lut.domain[0, dim], lut.domain[1, dim]) + else: # 3D + for dim in range(3): + lut.table[:, :, :, dim] = np.clip(lut.table[:, :, :, dim], lut.domain[0, dim], lut.domain[1, dim]) + + img = pil2tensor(image) + lut_img = img.numpy().copy() + is_non_default_domain = not np.array_equal(lut.domain, np.array([[0., 0., 0.], [1., 1., 1.]])) + dom_scale = None + if is_non_default_domain: + dom_scale = lut.domain[1] - lut.domain[0] + lut_img = lut_img * dom_scale + lut.domain[0] + if log_colorspace: + lut_img = lut_img ** (1/2.2) + lut_img = lut.apply(lut_img) + if log_colorspace: + lut_img = lut_img ** (2.2) + if is_non_default_domain: + lut_img = (lut_img - lut.domain[0]) / dom_scale + lut_img = torch.from_numpy(lut_img) + if strength < 100: + strength /= 100 + lut_img = strength * lut_img + (1 - strength) * img + + return tensor2pil(lut_img) + +def color_adapter(image:Image, ref_image:Image) -> Image: + image = pil2cv2(image) + ref_image = pil2cv2(ref_image) + image = cv2.cvtColor(image, cv2.COLOR_BGR2LAB) + image_mean, image_std = calculate_mean_std(image) + ref_image = cv2.cvtColor(ref_image, cv2.COLOR_BGR2LAB) + ref_image_mean, ref_image_std = calculate_mean_std(ref_image) + _image = ((image - image_mean) * (ref_image_std / image_std)) + ref_image_mean + np.putmask(_image, _image > 255, values=255) + np.putmask(_image, _image < 0, values=0) + ret_image = cv2.cvtColor(cv2.convertScaleAbs(_image), cv2.COLOR_LAB2BGR) + return cv22pil(ret_image) + +def calculate_mean_std(image:Image): + mean, std = cv2.meanStdDev(image) + mean = np.hstack(np.around(mean, decimals=2)) + std = np.hstack(np.around(std, decimals=2)) + return mean, std + +def image_watercolor(image:Image, level:int=50) -> Image: + img = pil2cv2(image) + img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) + factor = (level / 128.0) ** 2 + sigmaS= int((image.width + image.height) / 5.0 * factor) + 1 + sigmaR = sigmaS / 32.0 * factor + 0.002 + img_color = cv2.stylization(img, sigma_s=sigmaS, sigma_r=sigmaR) + ret_image = cv2.cvtColor(img_color, cv2.COLOR_BGR2RGB) + return cv22pil(ret_image) + + +def image_beauty(image:Image, level:int=50) -> Image: + img = pil2cv2(image) + img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) + factor = (level / 50.0)**2 + d = int((image.width + image.height) / 256 * factor) + sigmaColor = max(1, float((image.width + image.height) / 256 * factor)) + sigmaSpace = max(1, float((image.width + image.height) / 160 * factor)) + img_bit = cv2.bilateralFilter(src=img, d=d, sigmaColor=sigmaColor, sigmaSpace=sigmaSpace) + ret_image = cv2.cvtColor(img_bit, cv2.COLOR_BGR2RGB) + return cv22pil(ret_image) + + +def pixel_spread(image:Image, mask:Image) -> Image: + from pymatting import estimate_foreground_ml + i1 = pil2tensor(image) + if mask.mode != 'RGB': + mask = mask.convert('RGB') + i_dup = copy.deepcopy(i1.cpu().numpy().astype(np.float64)) + a_dup = copy.deepcopy(pil2tensor(mask).cpu().numpy().astype(np.float64)) + fg = copy.deepcopy(i1.cpu().numpy().astype(np.float64)) + + for index, img in enumerate(i_dup): + alpha = a_dup[index][:, :, 0] + fg[index], _ = estimate_foreground_ml(img, np.array(alpha), return_background=True) + + return tensor2pil(torch.from_numpy(fg.astype(np.float32))) + + +def watermark_image_size(image:Image) -> int: + size = int(math.sqrt(image.width * image.height * 0.015625) * 0.9) + return size + +def add_invisibal_watermark(image:Image, watermark_image:Image) -> Image: + """ + Adds an invisible watermark to an image. + """ + orig_image_mode = image.mode + temp_dir = os.path.join(folder_paths.get_temp_directory(), generate_random_name('_watermark_', '_temp', 16)) + if os.path.isdir(temp_dir): + shutil.rmtree(temp_dir) + image_dir = os.path.join(temp_dir, 'image') + wm_dir = os.path.join(temp_dir, 'wm') + result_dir = os.path.join(temp_dir, 'result') + + try: + os.makedirs(image_dir) + os.makedirs(wm_dir) + os.makedirs(result_dir) + except Exception as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary folder.", message_type='error') + return (image,) + + image_file_name = os.path.join(generate_random_name('watermark_orig_', '_temp', 16) + '.png') + wm_file_name = os.path.join(generate_random_name('watermark_image_', '_temp', 16) + '.png') + output_file_name = os.path.join(generate_random_name('watermark_output_', '_temp', 16) + '.png') + + try: + if image.mode != "RGB": + image = image.convert("RGB") + image.save(os.path.join(image_dir, image_file_name)) + watermark_image.save(os.path.join(wm_dir, wm_file_name)) + except IOError as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary file.", message_type='error') + return (image,) + + from blind_watermark import WaterMark + bwm1 = WaterMark(password_img=1, password_wm=1) + bwm1.read_img(os.path.join(image_dir, image_file_name)) + bwm1.read_wm(os.path.join(wm_dir, wm_file_name)) + output_image = os.path.join(result_dir, output_file_name) + bwm1.embed(output_image, compression_ratio=100) + + return Image.open(output_image).convert(orig_image_mode) + +def decode_watermark(image:Image, watermark_image_size:int=94) -> Image: + temp_dir = os.path.join(folder_paths.get_temp_directory(), generate_random_name('_watermark_', '_temp', 16)) + if os.path.isdir(temp_dir): + shutil.rmtree(temp_dir) + image_dir = os.path.join(temp_dir, 'decode_image') + result_dir = os.path.join(temp_dir, 'decode_result') + + try: + os.makedirs(image_dir) + os.makedirs(result_dir) + except Exception as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary folder.", message_type='error') + return (image,) + + image_file_name = os.path.join(generate_random_name('watermark_decode_', '_temp', 16) + '.png') + output_file_name = os.path.join(generate_random_name('watermark_decode_output_', '_temp', 16) + '.png') + + try: + image.save(os.path.join(image_dir, image_file_name)) + except IOError as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary file.", message_type='error') + return (image,) + + from blind_watermark import WaterMark + bwm1 = WaterMark(password_img=1, password_wm=1) + decode_image = os.path.join(image_dir, image_file_name) + output_image = os.path.join(result_dir, output_file_name) + + try: + bwm1.extract(filename=decode_image, wm_shape=(watermark_image_size, watermark_image_size), + out_wm_name=os.path.join(output_image),) + ret_image = Image.open(output_image) + except Exception as e: + log(f"blind watermark extract fail, {e}") + ret_image = Image.new("RGB", (64, 64), color="black") + ret_image = normalize_gray(ret_image) + return ret_image + +# def generate_text_image(text:str, font_path:str, font_size:int, text_color:str="#FFFFFF", +# vertical:bool=True, stroke_width:int=1, stroke_color:str="#000000", +# spacing:int=0, leading:int=0) -> tuple: +# +# lines = text.split("\n") +# if vertical: +# layout = "vertical" +# else: +# layout = "horizontal" +# char_coordinates = [] +# if layout == "vertical": +# x = 0 +# y = 0 +# for i in range(len(lines)): +# line = lines[i] +# for char in line: +# char_coordinates.append((x, y)) +# y += font_size + spacing +# x += font_size + leading +# y = 0 +# else: +# x = 0 +# y = 0 +# for line in lines: +# for char in line: +# char_coordinates.append((x, y)) +# x += font_size + spacing +# y += font_size + leading +# x = 0 +# if layout == "vertical": +# width = (len(lines) * (font_size + spacing)) - spacing +# height = ((len(max(lines, key=len)) + 1) * (font_size + spacing)) + spacing +# else: +# width = (len(max(lines, key=len)) * (font_size + spacing)) - spacing +# height = ((len(lines) - 1) * (font_size + spacing)) + font_size +# +# image = Image.new('RGBA', size=(width, height), color=stroke_color) +# draw = ImageDraw.Draw(image) +# font = ImageFont.truetype(font_path, font_size) +# index = 0 +# for i, line in enumerate(lines): +# for j, char in enumerate(line): +# x, y = char_coordinates[index] +# if stroke_width > 0: +# draw.text((x - stroke_width, y), char, font=font, fill=stroke_color) +# draw.text((x + stroke_width, y), char, font=font, fill=stroke_color) +# draw.text((x, y - stroke_width), char, font=font, fill=stroke_color) +# draw.text((x, y + stroke_width), char, font=font, fill=stroke_color) +# draw.text((x, y), char, font=font, fill=text_color) +# index += 1 +# return (image.convert('RGB'), image.split()[3]) + +def generate_text_image(width:int, height:int, text:str, font_file:str, text_scale:float=1, font_color:str="#FFFFFF",) -> Image: + image = Image.new("RGBA", (width, height), (0, 0, 0, 0)) + draw = ImageDraw.Draw(image) + font_size = int(width / len(text) * text_scale) + font = ImageFont.truetype(font_file, font_size) + bbox = draw.textbbox((0, 0), text, font=font) + text_width, text_height = bbox[2] - bbox[0], bbox[3] - bbox[1] + x = int((width - text_width) / 2) + y = int((height - text_height) / 2) - int(font_size / 2) + draw.text((x, y), text, font=font, fill=font_color) + return image + +'''Mask Functions''' + +def create_mask_from_color_cv2(image:Image, color:str, tolerance:int=0) -> Image: + (r, g, b) = Hex_to_RGB(color) + target_color = (b, g, r) + tolerance = 127 + int(tolerance * 1.28) + # tolerance = 255 - tolerance + # 将RGB颜色转换为HSV颜色空间 + image = pil2cv2(image) + hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) + + # 定义目标颜色的HSV范围 + lower_color = np.array([max(target_color[0] - tolerance, 0), max(target_color[1] - tolerance, 0), max(target_color[2] - tolerance, 0)]) + upper_color = np.array([min(target_color[0] + tolerance, 255), min(target_color[1] + tolerance, 255), min(target_color[2] + tolerance, 255)]) + + # 创建掩码 + mask = cv2.inRange(hsv_image, lower_color, upper_color) + + return cv22pil(mask).convert("L") + +def create_mask_from_color_tensor(image:Image, color:str, tolerance:int=0) -> Image: + threshold = int(tolerance * 1.28) + (red, green, blue) = Hex_to_RGB(color) + image = pil2tensor(image).squeeze() + temp = (torch.clamp(image, 0, 1.0) * 255.0).round().to(torch.int) + color_value = torch.tensor([red, green, blue]) + lower_bound = (color_value - threshold).clamp(min=0) + upper_bound = (color_value + threshold).clamp(max=255) + lower_bound = lower_bound.view(1, 1, 1, 3) + upper_bound = upper_bound.view(1, 1, 1, 3) + mask = (temp >= lower_bound) & (temp <= upper_bound) + mask = mask.all(dim=-1) + mask = mask.float() + return tensor2pil(mask).convert("L") + +@lru_cache(maxsize=1, typed=False) +def load_RMBG_model(): + from .briarmbg import BriaRMBG + current_directory = os.path.dirname(os.path.abspath(__file__)) + device = "cuda" if torch.cuda.is_available() else "cpu" + net = BriaRMBG() + model_path = "" + try: + model_path = os.path.join(os.path.normpath(folder_paths.folder_names_and_paths['rmbg'][0][0]), "model.pth") + except: + pass + if not os.path.exists(model_path): + model_path = os.path.join(folder_paths.models_dir, "rmbg", "RMBG-1.4", "model.pth") + if not os.path.exists(model_path): + model_path = os.path.join(os.path.dirname(current_directory), "RMBG-1.4", "model.pth") + net.load_state_dict(torch.load(model_path, map_location=device, weights_only=True)) + net.to(device) + net.eval() + return net + + +def RMBG(image:Image) -> Image: + rmbgmodel = load_RMBG_model() + w, h = image.size + im_np = np.array(image.resize((1024, 1024), Image.BILINEAR)) + im_tensor = torch.tensor(im_np, dtype=torch.float32).permute(2, 0, 1) + im_tensor = torch.divide(torch.unsqueeze(im_tensor, 0), 255.0) + im_tensor = TF.normalize(im_tensor, [0.5, 0.5, 0.5], [1.0, 1.0, 1.0]) + if torch.cuda.is_available(): + im_tensor = im_tensor.cuda() + result = rmbgmodel(im_tensor) + result = torch.squeeze(F.interpolate(result[0][0], size=(h, w), mode='bilinear'), 0) + ma = torch.max(result) + mi = torch.min(result) + result = (result - mi) / (ma - mi) + im_array = (result * 255).cpu().data.numpy().astype(np.uint8) + _mask = torch.from_numpy(np.squeeze(im_array).astype(np.float32)) + return tensor2pil(_mask) + +def guided_filter_alpha(image:torch.Tensor, mask:torch.Tensor, filter_radius:int) -> torch.Tensor: + sigma = 0.15 + d = filter_radius + 1 + mask = pil2tensor(tensor2pil(mask).convert('RGB')) + if not bool(d % 2): + d += 1 + s = sigma / 10 + i_dup = copy.deepcopy(image.cpu().numpy()) + a_dup = copy.deepcopy(mask.cpu().numpy()) + for index, image in enumerate(i_dup): + alpha_work = a_dup[index] + i_dup[index] = guidedFilter(image, alpha_work, d, s) + return torch.from_numpy(i_dup) + +#pymatting edge detail +def mask_edge_detail(image:torch.Tensor, mask:torch.Tensor, detail_range:int=8, black_point:float=0.01, white_point:float=0.99) -> torch.Tensor: + from pymatting import fix_trimap, estimate_alpha_cf + d = detail_range * 5 + 1 + mask = pil2tensor(tensor2pil(mask).convert('RGB')) + if not bool(d % 2): + d += 1 + i_dup = copy.deepcopy(image.cpu().numpy().astype(np.float64)) + a_dup = copy.deepcopy(mask.cpu().numpy().astype(np.float64)) + for index, img in enumerate(i_dup): + trimap = a_dup[index][:, :, 0] # convert to single channel + if detail_range > 0: + trimap = cv2.GaussianBlur(trimap, (d, d), 0) + trimap = fix_trimap(trimap, black_point, white_point) + alpha = estimate_alpha_cf(img, trimap, laplacian_kwargs={"epsilon": 1e-6}, + cg_kwargs={"maxiter": 500}) + a_dup[index] = np.stack([alpha, alpha, alpha], axis=-1) # convert back to rgb + return torch.from_numpy(a_dup.astype(np.float32)) + +class VITMatteModel: + def __init__(self,model,processor): + self.model = model + self.processor = processor + +def load_VITMatte_model(model_name:str, local_files_only:bool=False) -> object: + model_name = "vitmatte" + model_repo = "hustvl/vitmatte-small-composition-1k" + model_path = check_and_download_model(model_name, model_repo) + from transformers import VitMatteImageProcessor, VitMatteForImageMatting + model = VitMatteForImageMatting.from_pretrained(model_path, local_files_only=local_files_only) + processor = VitMatteImageProcessor.from_pretrained(model_path, local_files_only=local_files_only) + vitmatte = VITMatteModel(model, processor) + return vitmatte + +def generate_VITMatte(image:Image, trimap:Image, local_files_only:bool=False, device:str="cpu", max_megapixels:float=2.0) -> Image: + if image.mode != 'RGB': + image = image.convert('RGB') + if trimap.mode != 'L': + trimap = trimap.convert('L') + max_megapixels *= 1048576 + width, height = image.size + ratio = width / height + target_width = math.sqrt(ratio * max_megapixels) + target_height = target_width / ratio + target_width = int(target_width) + target_height = int(target_height) + if width * height > max_megapixels: + image = image.resize((target_width, target_height), Image.BILINEAR) + trimap = trimap.resize((target_width, target_height), Image.BILINEAR) + # log(f"vitmatte image size {width}x{height} too large, resize to {target_width}x{target_height} for processing.") + model_name = "hustvl/vitmatte-small-composition-1k" + if device=="cpu": + device = torch.device('cpu') + else: + if torch.cuda.is_available(): + device = torch.device('cuda') + else: + log("vitmatte device is set to cuda, but not available, using cpu instead.") + device = torch.device('cpu') + vit_matte_model = load_VITMatte_model(model_name=model_name, local_files_only=local_files_only) + vit_matte_model.model.to(device) + # log(f"vitmatte processing, image size = {image.width}x{image.height}, device = {device}.") + inputs = vit_matte_model.processor(images=image, trimaps=trimap, return_tensors="pt") + with torch.no_grad(): + inputs = {k: v.to(device) for k, v in inputs.items()} + predictions = vit_matte_model.model(**inputs).alphas + if torch.cuda.is_available(): + torch.cuda.empty_cache() + torch.cuda.ipc_collect() + mask = tensor2pil(predictions).convert('L') + mask = mask.crop( + (0, 0, image.width, image.height)) # remove padding that the prediction appends (works in 32px tiles) + if width * height > max_megapixels: + mask = mask.resize((width, height), Image.BILINEAR) + return mask + +def generate_VITMatte_trimap(mask:torch.Tensor, erode_kernel_size:int, dilate_kernel_size:int) -> Image: + def g_trimap(mask, erode_kernel_size=10, dilate_kernel_size=10): + erode_kernel = np.ones((erode_kernel_size, erode_kernel_size), np.uint8) + dilate_kernel = np.ones((dilate_kernel_size, dilate_kernel_size), np.uint8) + eroded = cv2.erode(mask, erode_kernel, iterations=5) + dilated = cv2.dilate(mask, dilate_kernel, iterations=5) + trimap = np.zeros_like(mask) + trimap[dilated == 255] = 128 + trimap[eroded == 255] = 255 + return trimap + + mask = mask.squeeze(0).cpu().detach().numpy().astype(np.uint8) * 255 + trimap = g_trimap(mask, erode_kernel_size, dilate_kernel_size).astype(np.float32) + trimap[trimap == 128] = 0.5 + trimap[trimap == 255] = 1 + trimap = torch.from_numpy(trimap).unsqueeze(0) + + return tensor2pil(trimap).convert('L') + + +def get_a_person_mask_generator_model_path() -> str: + model_folder_name = 'mediapipe' + model_name = 'selfie_multiclass_256x256.tflite' + + model_file_path = "" + try: + model_file_path = os.path.join(os.path.normpath(folder_paths.folder_names_and_paths[model_folder_name][0][0]), model_name) + except: + pass + if not os.path.exists(model_file_path): + model_file_path = os.path.join(folder_paths.models_dir, model_folder_name, model_name) + + if not os.path.exists(model_file_path): + import wget + model_url = f'https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_multiclass_256x256/float32/latest/{model_name}' + log(f"Downloading '{model_name}' model") + os.makedirs(os.path.dirname(model_file_path), exist_ok=True) + wget.download(model_url, model_file_path) + return model_file_path + +def mask_fix(images:torch.Tensor, radius:int, fill_holes:int, white_threshold:float, extra_clip:float) -> torch.Tensor: + d = radius * 2 + 1 + i_dup = copy.deepcopy(images.cpu().numpy()) + for index, image in enumerate(i_dup): + cleaned = cv2.bilateralFilter(image, 9, 0.05, 8) + alpha = np.clip((image - white_threshold) / (1 - white_threshold), 0, 1) + rgb = image * alpha + alpha = cv2.GaussianBlur(alpha, (d, d), 0) * 0.99 + np.average(alpha) * 0.01 + rgb = cv2.GaussianBlur(rgb, (d, d), 0) * 0.99 + np.average(rgb) * 0.01 + rgb = rgb / np.clip(alpha, 0.00001, 1) + rgb = rgb * extra_clip + cleaned = np.clip(cleaned / rgb, 0, 1) + if fill_holes > 0: + fD = fill_holes * 2 + 1 + gamma = cleaned * cleaned + kD = np.ones((fD, fD), np.uint8) + kE = np.ones((fD + 2, fD + 2), np.uint8) + gamma = cv2.dilate(gamma, kD, iterations=1) + gamma = cv2.erode(gamma, kE, iterations=1) + gamma = cv2.GaussianBlur(gamma, (fD, fD), 0) + cleaned = np.maximum(cleaned, gamma) + i_dup[index] = cleaned + return torch.from_numpy(i_dup) + +def histogram_remap(image:torch.Tensor, blackpoint:float, whitepoint:float) -> torch.Tensor: + bp = min(blackpoint, whitepoint - 0.001) + scale = 1 / (whitepoint - bp) + i_dup = copy.deepcopy(image.cpu().numpy()) + i_dup = np.clip((i_dup - bp) * scale, 0.0, 1.0) + return torch.from_numpy(i_dup) + +def expand_mask(mask:torch.Tensor, grow:int, blur:int) -> torch.Tensor: + # grow + c = 0 + kernel = np.array([[c, 1, c], + [1, 1, 1], + [c, 1, c]]) + growmask = mask.reshape((-1, mask.shape[-2], mask.shape[-1])) + out = [] + for m in growmask: + output = m.numpy() + for _ in range(abs(grow)): + if grow < 0: + output = scipy.ndimage.grey_erosion(output, footprint=kernel) + else: + output = scipy.ndimage.grey_dilation(output, footprint=kernel) + output = torch.from_numpy(output) + out.append(output) + # blur + for idx, tensor in enumerate(out): + pil_image = tensor2pil(tensor.cpu().detach()) + pil_image = pil_image.filter(ImageFilter.GaussianBlur(blur)) + out[idx] = pil2tensor(pil_image) + ret_mask = torch.cat(out, dim=0) + return ret_mask + +def mask_invert(mask:torch.Tensor) -> torch.Tensor: + return 1 - mask + +def subtract_mask(masks_a:torch.Tensor, masks_b:torch.Tensor) -> torch.Tensor: + return torch.clamp(masks_a - masks_b, 0, 255) + +def add_mask(masks_a:torch.Tensor, masks_b:torch.Tensor) -> torch.Tensor: + mask = chop_image(tensor2pil(masks_a), tensor2pil(masks_b), blend_mode='add', opacity=100) + return image2mask(mask) + +def RGB2RGBA(image:Image, mask:Image) -> Image: + (R, G, B) = image.convert('RGB').split() + return Image.merge('RGBA', (R, G, B, mask.convert('L'))) + +def mask_area(image:Image) -> tuple: + cv2_image = pil2cv2(image.convert('RGBA')) + gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY) + _, thresh = cv2.threshold(gray, 127, 255, 0) + locs = np.where(thresh == 255) + try: + x1 = np.min(locs[1]) + x2 = np.max(locs[1]) + y1 = np.min(locs[0]) + y2 = np.max(locs[0]) + except ValueError: + x1, y1, x2, y2 = -1, -1, 0, 0 + x1, y1, x2, y2 = min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2) + return (x1, y1, x2 - x1, y2 - y1) + +def min_bounding_rect(image:Image) -> tuple: + cv2_image = pil2cv2(image) + gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY) + ret, thresh = cv2.threshold(gray, 127, 255, 0) + contours, _ = cv2.findContours(thresh, 1, 2) + x, y, width, height = 0, 0, 0, 0 + area = 0 + for contour in contours: + _x, _y, _w, _h = cv2.boundingRect(contour) + _area = _w * _h + if _area > area: + area = _area + x, y, width, height = _x, _y, _w, _h + return (x, y, width, height) + +def max_inscribed_rect(image:Image) -> tuple: + img = pil2cv2(image) + img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) + ret, img_bin = cv2.threshold(img_gray, 127, 255, cv2.THRESH_BINARY) + contours, _ = cv2.findContours(img_bin, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE) + contour = contours[0].reshape(len(contours[0]), 2) + rect = [] + for i in range(len(contour)): + x1, y1 = contour[i] + for j in range(len(contour)): + x2, y2 = contour[j] + area = abs(y2 - y1) * abs(x2 - x1) + rect.append(((x1, y1), (x2, y2), area)) + all_rect = sorted(rect, key=lambda x: x[2], reverse=True) + if all_rect: + best_rect_found = False + index_rect = 0 + nb_rect = len(all_rect) + while not best_rect_found and index_rect < nb_rect: + rect = all_rect[index_rect] + (x1, y1) = rect[0] + (x2, y2) = rect[1] + valid_rect = True + x = min(x1, x2) + while x < max(x1, x2) + 1 and valid_rect: + if any(img[y1, x]) == 0 or any(img[y2, x]) == 0: + valid_rect = False + x += 1 + y = min(y1, y2) + while y < max(y1, y2) + 1 and valid_rect: + if any(img[y, x1]) == 0 or any(img[y, x2]) == 0: + valid_rect = False + y += 1 + if valid_rect: + best_rect_found = True + index_rect += 1 + #较小的数值排前面 + x1, y1, x2, y2 = min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2) + return (x1, y1, x2 - x1, y2 - y1) + +def gray_threshold(image:Image, thresh:int=127, otsu:bool=False) -> Image: + cv2_image = pil2cv2(image) + gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY) + if otsu: + _, thresh = cv2.threshold(gray,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU) + else: + _, thresh = cv2.threshold(gray, thresh, 255, cv2.THRESH_TOZERO) + return cv22pil(thresh).convert('L') + +def image_to_colormap(image:Image, index:int) -> Image: + return cv22pil(cv2.applyColorMap(pil2cv2(image), index)) + +# 检查mask有效区域面积比例 +def mask_white_area(mask:Image, white_point:int) -> float: + if mask.mode != 'L': + mask.convert('L') + white_pixels = 0 + for y in range(mask.height): + for x in range(mask.width): + mask.getpixel((x, y)) > 16 + if mask.getpixel((x, y)) > white_point: + white_pixels += 1 + return white_pixels / (mask.width * mask.height) + +'''Color Functions''' + +def color_balance(image:Image, shadows:list, midtones:list, highlights:list, + shadow_center:float=0.15, midtone_center:float=0.5, highlight_center:float=0.8, + shadow_max:float=0.1, midtone_max:float=0.3, highlight_max:float=0.2, + preserve_luminosity:bool=False) -> Image: + + img = pil2tensor(image) + # Create a copy of the img tensor + img_copy = img.clone() + + # Calculate the original luminance if preserve_luminosity is True + if preserve_luminosity: + original_luminance = 0.2126 * img_copy[..., 0] + 0.7152 * img_copy[..., 1] + 0.0722 * img_copy[..., 2] + + # Define the adjustment curves + def adjust(x, center, value, max_adjustment): + # Scale the adjustment value + value = value * max_adjustment + + # Define control points + points = torch.tensor([[0, 0], [center, center + value], [1, 1]]) + + # Create cubic spline + from scipy.interpolate import CubicSpline + cs = CubicSpline(points[:, 0], points[:, 1]) + + # Apply the cubic spline to the color channel + return torch.clamp(torch.from_numpy(cs(x)), 0, 1) + + # Apply the adjustments to each color channel + # shadows, midtones, highlights are lists of length 3 (for R, G, B channels) with values between -1 and 1 + for i, (s, m, h) in enumerate(zip(shadows, midtones, highlights)): + img_copy[..., i] = adjust(img_copy[..., i], shadow_center, s, shadow_max) + img_copy[..., i] = adjust(img_copy[..., i], midtone_center, m, midtone_max) + img_copy[..., i] = adjust(img_copy[..., i], highlight_center, h, highlight_max) + + # If preserve_luminosity is True, adjust the RGB values to match the original luminance + if preserve_luminosity: + current_luminance = 0.2126 * img_copy[..., 0] + 0.7152 * img_copy[..., 1] + 0.0722 * img_copy[..., 2] + img_copy *= (original_luminance / current_luminance).unsqueeze(-1) + + return tensor2pil(img_copy) + +def RGB_to_Hex(RGB:tuple) -> str: + color = '#' + for i in RGB: + num = int(i) + color += str(hex(num))[-2:].replace('x', '0').upper() + return color + +def Hex_to_RGB(inhex:str) -> tuple: + if not inhex.startswith('#'): + raise ValueError(f'Invalid Hex Code in {inhex}') + else: + if len(inhex) == 4: + inhex = "#" + "".join([char * 2 for char in inhex[1:]]) + rval = inhex[1:3] + gval = inhex[3:5] + bval = inhex[5:] + rgb = (int(rval, 16), int(gval, 16), int(bval, 16)) + return tuple(rgb) + +def RGB_to_HSV(RGB:tuple) -> list: + HSV = rgb_to_hsv(RGB[0] / 255.0, RGB[1] / 255.0, RGB[2] / 255.0) + return [int(x * 360) for x in HSV] + +def Hex_to_HSV_255level(inhex:str) -> list: + if not inhex.startswith('#'): + raise ValueError(f'Invalid Hex Code in {inhex}') + else: + if len(inhex) == 4: + inhex = "#" + "".join([char * 2 for char in inhex[1:]]) + rval = inhex[1:3] + gval = inhex[3:5] + bval = inhex[5:] + RGB = (int(rval, 16), int(gval, 16), int(bval, 16)) + HSV = rgb_to_hsv(RGB[0] / 255.0, RGB[1] / 255.0, RGB[2] / 255.0) + return [int(x * 255) for x in HSV] + +def HSV_255level_to_Hex(HSV: list) -> str: + if len(HSV) != 3 or any((not isinstance(v, int) or v < 0 or v > 255) for v in HSV): + raise ValueError('Invalid HSV values, each value should be an integer between 0 and 255') + + H, S, V = HSV + RGB = tuple(int(x * 255) for x in hsv_to_rgb(H / 255.0, S / 255.0, V / 255.0)) + + # Convert RGB values to hexadecimal format + hex_r = format(RGB[0], '02x') + hex_g = format(RGB[1], '02x') + hex_b = format(RGB[2], '02x') + + return '#' + hex_r + hex_g + hex_b + +# 返回补色色值 +def complementary_color(color: str) -> str: + color = Hex_to_RGB(color) + return RGB_to_Hex((255 - color[0], 255 - color[1], 255 - color[2])) + +# 返回颜色对应灰度值 +def rgb2gray(color:str)->int: + (r, g, b) = Hex_to_RGB(color) + return int((r * 299 + g * 587 + b * 114) / 1000) + +'''Value Functions''' +def is_valid_mask(tensor:torch.Tensor) -> bool: + return not bool(torch.all(tensor == 0).item()) + +def step_value(start_value, end_value, total_step, step) -> float: # 按当前步数在总步数中的位置返回比例值 + factor = step / total_step + return (end_value - start_value) * factor + start_value + +def step_color(start_color_inhex:str, end_color_inhex:str, total_step:int, step:int) -> str: # 按当前步数在总步数中的位置返回比例颜色 + start_color = tuple(Hex_to_RGB(start_color_inhex)) + end_color = tuple(Hex_to_RGB(end_color_inhex)) + start_R, start_G, start_B = start_color[0], start_color[1], start_color[2] + end_R, end_G, end_B = end_color[0], end_color[1], end_color[2] + ret_color = (int(step_value(start_R, end_R, total_step, step)), + int(step_value(start_G, end_G, total_step, step)), + int(step_value(start_B, end_B, total_step, step)), + ) + return RGB_to_Hex(ret_color) + +def has_letters(string:str) -> bool: + pattern = r'[a-zA-Z]' + match = re.search(pattern, string) + if match: + return True + else: + return False + + +def replace_case(old:str, new:str, text:str) -> str: + index = text.lower().find(old.lower()) + if index == -1: + return text + return replace_case(old, new, text[:index] + new + text[index + len(old):]) + +def random_numbers(total:int, random_range:int, seed:int=0, sum_of_numbers:int=0) -> list: + random.seed(seed) + numbers = [random.randint(-random_range//2, random_range//2) for _ in range(total - 1)] + avg = sum(numbers) // total + ret_list = [] + for i in numbers: + ret_list.append(i - avg) + ret_list.append((sum_of_numbers - sum(ret_list)) // 2) + return ret_list + +# 四舍五入取整数倍 +def num_round_to_multiple(number:int, multiple:int) -> int: + remainder = number % multiple + if remainder == 0 : + return number + else: + factor = int(number / multiple) + if number - factor * multiple > multiple / 2: + factor += 1 + return factor * multiple + +# 向上取整数倍 +def num_round_up_to_multiple(number: int, multiple: int) -> int: + remainder = number % multiple + if remainder == 0: + return number + else: + factor = (number + multiple - 1) // multiple # 向上取整的计算方式 + return factor * multiple + +def calculate_side_by_ratio(orig_width:int, orig_height:int, ratio:float, longest_side:int=0) -> int: + + if orig_width > orig_height: + if longest_side: + target_width = longest_side + else: + target_width = orig_width + target_height = int(target_width / ratio) + else: + if longest_side: + target_height = longest_side + else: + target_height = orig_height + target_width = int(target_height * ratio) + + if ratio < 1: + if longest_side: + _r = longest_side / target_height + target_height = longest_side + else: + _r = orig_height / target_height + target_height = orig_height + target_width = int(target_width * _r) + + return target_width, target_height + +def generate_random_name(prefix:str, suffix:str, length:int) -> str: + name = ''.join(random.choice("abcdefghijklmnopqrstupvxyz1234567890") for x in range(length)) + return prefix + name + suffix + +def check_image_file(file_name:str, interval:int) -> object: + while True: + if os.path.isfile(file_name): + try: + image = Image.open(file_name) + ret_image = copy.deepcopy(image) + image.close() + return ret_image + except Exception as e: + log(e) + return None + break + time.sleep(interval / 1000) + +# 判断字符串是否包含中文 +def is_contain_chinese(check_str:str) -> bool: + for ch in check_str: + if u'\u4e00' <= ch <= u'\u9fff': + return True + return False + +# 生成随机颜色 +def generate_random_color(): + """ + Generate a random color in hexadecimal format. + """ + # random.seed(int(time.time())) + return "#{:06x}".format(random.randint(0x101010, 0xFFFFFF)) + +# 提取字符串中的int数为列表 +def extract_numbers(string): + return [int(s) for s in re.findall(r'\d+', string)] + +# 提取字符串中的数值, 返回为列表 +def extract_all_numbers_from_str(string, checkint:bool=False): + # 定义浮点数的正则表达式模式 + number_pattern = r'[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?' + # 使用re.findall找到所有匹配的字符串 + matches = re.findall(number_pattern, string) + # 转换为浮点数 + numbers = [float(match) for match in matches] + number_list = [] + # 如果需要检查是否为整数,则将浮点数转换为整数 + if checkint: + for num in numbers: + int_num = int(num) + if math.isclose(num, int_num, rel_tol=1e-19): + number_list.append(int_num) + else: + number_list.append(num) + else: + number_list = numbers + + return number_list + + + +# 提取字符串中用"," ";" " "分开的字符串, 返回为列表 +def extract_substr_from_str(string) -> list: + return re.split(r'[,\s;,;]+', string) + +# lcs匹配算法,计算最长公共子序列 (LCS):子字符串顺序:以相同顺序出现,权重更高。额外字符惩罚:多余字符会降低相似度。 +def lcs_with_order(s1, s2): + """Calculate the length of the longest common subsequence (LCS) with the same order.""" + m, n = len(s1), len(s2) + dp = [[0] * (n + 1) for _ in range(m + 1)] + + for i in range(1, m + 1): + for j in range(1, n + 1): + if s1[i - 1] == s2[j - 1]: + dp[i][j] = dp[i - 1][j - 1] + 1 + else: + dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]) + + return dp[m][n] + +# 使用正则表达式将字符串拆分为单词(token),对比的同时忽略大小写和非字母数字字符。 +def tokenize_string(s): + """Tokenize a string by splitting on non-alphanumeric characters and normalizing case.""" + return re.findall(r'\b\w+\b', s.lower()) + +# 在列表中找到字符串的最佳匹配 +def find_best_match_by_similarity(target, candidates): + """ + Find the best matching string based on substring order, extra character penalties, and tokenization. + + Parameters: + target (str): The target string. + candidates (list of str): List of candidate strings. + + Returns: + str: The best matching string. + """ + target_tokens = tokenize_string(target) + best_match = None + highest_score = float('-inf') + + for candidate in candidates: + candidate_tokens = tokenize_string(candidate) + + # Calculate LCS on tokens + target_str = ''.join(target_tokens) + candidate_str = ''.join(candidate_tokens) + lcs = lcs_with_order(target_str, candidate_str) + + # Calculate similarity score + match_ratio = lcs / len(target_str) # Ratio of matched characters + extra_char_penalty = len(candidate_str) - lcs # Penalty for extra characters + unmatched_tokens_penalty = len(set(candidate_tokens) - set(target_tokens)) # Penalty for unmatched tokens + score = match_ratio - 0.1 * extra_char_penalty - 0.2 * unmatched_tokens_penalty # Weighted score + + if score > highest_score: + highest_score = score + best_match = candidate + + return best_match + + +def clear_memory(): + import gc + # Cleanup + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + torch.cuda.ipc_collect() + +def tensor_info(tensor:object) -> str: + value = '' + if isinstance(tensor, torch.Tensor): + value += f"\n Input dim = {tensor.dim()}, shape[0] = {tensor.shape[0]} \n" + for i in range(tensor.shape[0]): + t = tensor[i] + image = tensor2pil(t) + value += f'\n index {i}: Image.size = {image.size}, Image.mode = {image.mode}, dim = {t.dim()}, ' + for j in range(t.dim()): + value += f'shape[{j}] = {t.shape[j]}, ' + else: + value = f"tensor_info: Not tensor, type is {type(tensor)}" + return value + +# 去除空行 +def remove_empty_lines(text): + lines = text.split('\n') + non_empty_lines = [line for line in lines if line.strip() != ''] + return '\n'.join(non_empty_lines) + +# 去除重复的句子 +def remove_duplicate_string(text:str) -> str: + sentences = re.split(r'(?<=[:;,.!?])\s+', text) + unique_sentences = [] + seen = set() + for sentence in sentences: + if sentence not in seen: + seen.add(sentence) + unique_sentences.append(sentence) + return ' '.join(unique_sentences) + +files_for_uform_gen2_qwen = Path(os.path.join(folder_paths.models_dir, "LLavacheckpoints", "files_for_uform_gen2_qwen")) +class StopOnTokens(StoppingCriteria): + def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool: + stop_ids = [151645] # Define stop tokens as per your model's specifics + for stop_id in stop_ids: + if input_ids[0][-1] == stop_id: + return True + return False + +class UformGen2QwenChat: + + def __init__(self): + from huggingface_hub import snapshot_download + # self.model_path = snapshot_download("unum-cloud/uform-gen2-qwen-500m", + # local_dir=files_for_uform_gen2_qwen, + # force_download=False, # Set to True if you always want to download, regardless of local copy + # local_files_only=False, # Set to False to allow downloading if not available locally + # local_dir_use_symlinks="auto") # or set to True/False based on your symlink preference + self.model_path = files_for_uform_gen2_qwen + self.device = "cuda" if torch.cuda.is_available() else "cpu" + self.model = AutoModel.from_pretrained(self.model_path, trust_remote_code=True).to(self.device) + self.processor = AutoProcessor.from_pretrained(self.model_path, trust_remote_code=True) + + def chat_response(self, message, history, image_path): + stop = StopOnTokens() + messages = [{"role": "system", "content": "You are a helpful Assistant."}] + + for user_msg, assistant_msg in history: + messages.append({"role": "user", "content": user_msg}) + messages.append({"role": "assistant", "content": assistant_msg}) + + if len(messages) == 1: + message = f" {message}" + + messages.append({"role": "user", "content": message}) + + model_inputs = self.processor.tokenizer.apply_chat_template( + messages, + add_generation_prompt=True, + return_tensors="pt" + ) + + image = Image.open(image_path) # Load image using PIL + image_tensor = ( + self.processor.feature_extractor(image) + .unsqueeze(0) + ) + + attention_mask = torch.ones( + 1, model_inputs.shape[1] + self.processor.num_image_latents - 1 + ) + + model_inputs = { + "input_ids": model_inputs, + "images": image_tensor, + "attention_mask": attention_mask + } + + model_inputs = {k: v.to(self.device) for k, v in model_inputs.items()} + + with torch.inference_mode(): + output = self.model.generate( + **model_inputs, + max_new_tokens=512, + do_sample=True, + temperature=0.3, + repetition_penalty=1.2, + stopping_criteria=StoppingCriteriaList([stop]) + ) + + response_text = self.processor.tokenizer.decode(output[0], skip_special_tokens=True) + response_text = remove_duplicate_string(response_text) + return response_text + +'''CLASS''' + +class AnyType(str): + """A special class that is always equal in not equal comparisons. Credit to pythongosssss""" + def __eq__(self, __value: object) -> bool: + return True + def __ne__(self, __value: object) -> bool: + return False + + + +'''Load File''' + +def download_hg_model(model_id:str,exDir:str='') -> str: + # 下载本地 + model_checkpoint = os.path.join(folder_paths.models_dir, exDir, os.path.basename(model_id)) + if not os.path.exists(model_checkpoint): + from huggingface_hub import snapshot_download + snapshot_download(repo_id=model_id, local_dir=model_checkpoint, local_dir_use_symlinks=False) + return model_checkpoint + + +def get_files(model_path: str, file_ext_list:list) -> dict: + file_list = [] + for ext in file_ext_list: + file_list.extend(glob.glob(os.path.join(model_path, '*' + ext))) + files_dict = {} + for i in range(len(file_list)): + _, filename = os.path.split(file_list[i]) + files_dict[filename] = file_list[i] + return files_dict + +# def load_inference_prompt() -> str: +# inference_prompt_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), "resource", +# "inference.prompt") +# ret_value = '' +# try: +# with open(inference_prompt_file, 'r') as f: +# ret_value = f.readlines() +# except Exception as e: +# log(f'Warning: {inference_prompt_file} ' + repr(e) + f", check it to be correct. ", message_type='warning') +# return ''.join(ret_value) + +def load_custom_size() -> list: + custom_size_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), "custom_size.ini") + ret_value = ['1024 x 1024', + '768 x 512', + '512 x 768', + '1280 x 720', + '720 x 1280', + '1344 x 768', + '768 x 1344', + '1536 x 640', + '640 x 1536' + ] + try: + with open(custom_size_file, 'r') as f: + ini = f.readlines() + for line in ini: + if not line.startswith(f'#'): + ret_value.append(line.strip()) + except Exception as e: + pass + # log(f'Warning: {custom_size_file} not found' + f", use default size. ") + return ret_value + +def get_api_key(api_name:str) -> str: + api_key_ini_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), "api_key.ini") + ret_value = '' + try: + with open(api_key_ini_file, 'r') as f: + ini = f.readlines() + for line in ini: + if line.startswith(f'{api_name}='): + ret_value = line[line.find('=') + 1:].rstrip().lstrip() + break + except Exception as e: + log(f'Warning: {api_key_ini_file} ' + repr(e) + f", check it to be correct. ", message_type='warning') + remove_char = ['"', "'", '“', '”', '‘', '’'] + for i in remove_char: + if i in ret_value: + ret_value = ret_value.replace(i, '') + if len(ret_value) < 4: + log(f'Warning: Invalid API-key, Check the key in {api_key_ini_file}.', message_type='warning') + return ret_value + +# 判断文件名后缀是否包括在列表中(忽略大小写) +def file_is_extension(filename:str, ext_list:tuple) -> bool: + # 获取文件的真实后缀(包括点) + true_ext = os.path.splitext(filename)[1] + if true_ext.lower() in ext_list: + return True + return False + +# 遍历目录下包括子目录指定后缀文件,返回字典 +def collect_files(root_dir:str, suffixes:tuple, default_dir:str=""): + result = {} + for dirpath, _, filenames in os.walk(root_dir): + for file in filenames: + if file_is_extension(file, suffixes): + # 获取文件的完整路径作为 value + full_path = os.path.join(dirpath, file) + # 如果是default_dir 则去掉路径,使用文件名作为 key + if dirpath == default_dir: + relative_path = os.path.relpath(full_path, root_dir) + result.update({relative_path: full_path}) + else: + result.update({full_path: full_path}) + return result + + +def get_resource_dir() -> list: + default_lut_dir = [] + default_lut_dir.append(os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), 'lut')) + default_font_dir = [] + default_font_dir.append(os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), 'font')) + resource_dir_ini_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), + "resource_dir.ini") + try: + with open(resource_dir_ini_file, 'r') as f: + ini = f.readlines() + for line in ini: + if line.startswith('LUT_dir='): + _ldir = line[line.find('=') + 1:].rstrip().lstrip() + for dir in extract_substr_from_str(_ldir) : + if os.path.exists(dir): + default_lut_dir.append(dir) + elif line.startswith('FONT_dir='): + _fdir = line[line.find('=') + 1:].rstrip().lstrip() + for dir in extract_substr_from_str(_fdir): + if os.path.exists(dir): + default_font_dir.append(dir) + except Exception as e: + pass + # log(f'Warning: {resource_dir_ini_file} not found' + f", default directory to be used. ") + + + LUT_DICT = {} + for dir in default_lut_dir: + LUT_DICT.update(collect_files(root_dir=dir, suffixes= ('.cube'), default_dir=default_lut_dir[0] )) # 后缀要小写 + LUT_LIST = list(LUT_DICT.keys()) + + FONT_DICT = {} + for dir in default_font_dir: + FONT_DICT.update(collect_files(root_dir=dir, suffixes=('.ttf', '.otf'), default_dir=default_font_dir[0])) # 后缀要小写 + FONT_LIST = list(FONT_DICT.keys()) + + return (LUT_DICT, FONT_DICT) + +# 规范bbox,保证x1 < x2, y1 < y2, 并返回int +def standardize_bbox(bboxes:list) -> list: + ret_bboxes = [] + for bbox in bboxes: + x1 = int(min(bbox[0], bbox[2])) + y1 = int(min(bbox[1], bbox[3])) + x2 = int(max(bbox[0], bbox[2])) + y2 = int(max(bbox[1], bbox[3])) + ret_bboxes.append([x1, y1, x2, y2]) + return ret_bboxes + +def draw_bounding_boxes(image: Image, bboxes: list, color: str = "#FF0000", line_width: int = 5) -> Image: + """ + Draw bounding boxes on the image using the coordinates provided in the bboxes dictionary. + """ + + (_, FONT_DICT) = get_resource_dir() + + font_size = 25 + font = ImageFont.truetype(list(FONT_DICT.items())[0][1], font_size) + + if len(bboxes) > 0: + draw = ImageDraw.Draw(image) + width, height = image.size + if line_width < 0: # auto line width + line_width = (image.width + image.height) // 1000 + + for index, box in enumerate(bboxes): + random_color = generate_random_color() + if color != "random": + random_color = color + xmin = min(box[0], box[2]) + xmax = max(box[0], box[2]) + ymin = min(box[1], box[3]) + ymax = max(box[1], box[3]) + draw.rectangle([xmin, ymin, xmax, ymax], outline=random_color, width=line_width) + draw.text((xmin, ymin - font_size*1.2), str(index), font=font, fill=random_color) + + return image + +def draw_bbox(image: Image, bbox: tuple, color: str = "#FF0000", line_width: int = 5, title: str = "", font_size: int = 10) -> Image: + """ + Draw bounding boxes on the image using the coordinates provided in the bboxes dictionary. + """ + + (_, FONT_DICT) = get_resource_dir() + + font = ImageFont.truetype(list(FONT_DICT.items())[0][1], font_size) + + draw = ImageDraw.Draw(image) + width, height = image.size + if line_width < 0: # auto line width + line_width = (image.width + image.height) // 1000 + + random_color = generate_random_color() + if color != "random": + random_color = color + xmin = min(bbox[0], bbox[2]) + xmax = max(bbox[0], bbox[2]) + ymin = min(bbox[1], bbox[3]) + ymax = max(bbox[1], bbox[3]) + draw.rectangle([xmin, ymin, xmax, ymax], outline=random_color, width=line_width) + if title != "": + draw.text((xmin, ymin - font_size*1.2), title, font=font, fill=random_color) + + return image + + + +'''Constant''' + +chop_mode = [ + 'normal', + 'multply', + 'screen', + 'add', + 'subtract', + 'difference', + 'darker', + 'lighter', + 'color_burn', + 'color_dodge', + 'linear_burn', + 'linear_dodge', + 'overlay', + 'soft_light', + 'hard_light', + 'vivid_light', + 'pin_light', + 'linear_light', + 'hard_mix' + ] + +# Blend Mode from Virtuoso Pack https://github.com/chrisfreilich/virtuoso-nodes +chop_mode_v2 = list(BLEND_MODES.keys()) + +gemini_generate_config = { + "temperature": 0, + "top_p": 1, + "top_k": 1, + "max_output_tokens": 400 +} + +gemini_safety_settings = [ + { + "category": "HARM_CATEGORY_HARASSMENT", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_HATE_SPEECH", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_DANGEROUS_CONTENT", + "threshold": "BLOCK_NONE" + } +] + +minicpm_llama3_v25_prompts = """ + # MISSION + You are an imagine generator for a slide deck tool. You will be given the text or description of a slide and you'll generate a few image descriptions that will be fed to an AI image generator. It will need to have a particular format (seen below). You will also be given some examples below. Think metaphorically and symbolically. + + # FORMAT + The format should follow this general pattern: + +
, , , , , + + It's not strictly required, as you'll see below, you can pick and choose various aspects, but this is the general order of operations + + # EXAMPLES + + a Shakespeare stage play, yellow mist, atmospheric, set design by Michel Crête, Aerial acrobatics design by André Simard, hyperrealistic, 4K, Octane render, unreal engine + + The Moon Knight dissolving into swirling sand, volumetric dust, cinematic lighting, close up portrait + + ethereal Bohemian Waxwing bird, Bombycilla garrulus :: intricate details, ornate, detailed illustration, octane render :: Johanna Rupprecht style, William Morris style :: trending on artstation + + steampunk cat, octane render, hyper realistic + + Hyper detailed movie still that fuses the iconic tea party scene from Alice in Wonderland showing the hatter and an adult alice. a wooden table is filled with teacups and cannabis plants. The scene is surrounded by flying weed. Some playcards flying around in the air. Captured with a Hasselblad medium format camera + + venice in a carnival picture 3, in the style of fantastical compositions, colorful, eye-catching compositions, symmetrical arrangements, navy and aquamarine, distinctive noses, gothic references, spiral group –style expressive + + Beautiful and terrifying Egyptian mummy, flirting and vamping with the viewer, rotting and decaying climbing out of a sarcophagus lunging at the viewer, symmetrical full body Portrait photo, elegant, highly detailed, soft ambient lighting, rule of thirds, professional photo HD Photography, film, sony, portray, kodak Polaroid 3200dpi scan medium format film Portra 800, vibrantly colored portrait photo by Joel – Peter Witkin + Diane Arbus + Rhiannon + Mike Tang, fashion shoot + + A grandmotherly Fate sits on a cozy cosmic throne knitting with mirrored threads of time, the solar system spins like clockwork behind her as she knits the futures of people together like an endless collage of destiny, maximilism, cinematic quality, sharp – focus, intricate details + + A cloud with several airplanes flying around on top, in the style of detailed fantasy art, nightcore, quiet moments captured in paint, radiant clusters, i cant believe how beautiful this is, detailed character design, dark cyan and light crimson + + An incredibly detailed close up macro beauty photo of an Asian model, hands holding a bouquet of pink roses, surrounded by scary crows from hell. Shot on a Hasselblad medium format camera with a 100mm lens. Unmistakable to a photograph. Cinematic lighting. Photographed by Tim Walker, trending on 500px + + Game-Art | An island with different geographical properties and multiple small cities floating in space ::10 Island | Floating island in space – waterfalls over the edge of the island falling into space – island fragments floating around the edge of the island, Mountain Ranges – Deserts – Snowy Landscapes – Small Villages – one larger city ::8 Environment | Galaxy – in deep space – other universes can be seen in the distance ::2 Style | Unreal Engine 5 – 8K UHD – Highly Detailed – Game-Art + + a warrior sitting on a giant creature and riding it in the water, with wings spread wide in the water, camera positioned just above the water to capture this beautiful scene, surface showing intricate details of the creature’s scales, fins, and wings, majesty, Hero rides on the creature in the water, digitally enhanced, enhanced graphics, straight, sharp focus, bright lighting, closeup, cinematic, Bronze, Azure, blue, ultra highly detailed, 18k, sharp focus, bright photo with rich colors, full coverage of a scene, straight view shot + + A real photographic landscape painting with incomparable reality,Super wide,Ominous sky,Sailing boat,Wooden boat,Lotus,Huge waves,Starry night,Harry potter,Volumetric lighting,Clearing,Realistic,James gurney,artstation + + Tiger monster with monstera plant over him, back alley in Bangkok, art by Otomo Katsuhiro crossover Yayoi Kusama and Hayao Miyazaki + + An elderly Italian woman with wrinkles, sitting in a local cafe filled with plants and wood decorations, looking out the window, wearing a white top with light purple linen blazer, natural afternoon light shining through the window + + # OUTPUT + Your output should just be an plain list of descriptions. No numbers, no extraneous labels, no hyphens. + Create only one prompt. + """ diff --git a/docs/hel-892/resize-compare-reference/load-tag.json b/docs/hel-892/resize-compare-reference/load-tag.json new file mode 100644 index 00000000..83296c2b --- /dev/null +++ b/docs/hel-892/resize-compare-reference/load-tag.json @@ -0,0 +1 @@ +{"ref":"refs/tags/v0.3.50","node_id":"REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMy41MA","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.3.50","object":{"sha":"d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8"}} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/load-tree.json b/docs/hel-892/resize-compare-reference/load-tree.json new file mode 100644 index 00000000..1d2c3972 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/load-tree.json @@ -0,0 +1 @@ +{"sha":"d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8","tree":[{"path":".ci","mode":"040000","type":"tree","sha":"60c2e0047093f173911685c6925ea1a3548bd7ad","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/60c2e0047093f173911685c6925ea1a3548bd7ad"},{"path":".ci/update_windows","mode":"040000","type":"tree","sha":"8daacd337e84c252ce0eafff0b31a5b6dca7f4ab","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8daacd337e84c252ce0eafff0b31a5b6dca7f4ab"},{"path":".ci/update_windows/update.py","mode":"100755","type":"blob","sha":"51a263203d82b78e2dcc04ea83031d050961fc80","size":5392,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/51a263203d82b78e2dcc04ea83031d050961fc80"},{"path":".ci/update_windows/update_comfyui.bat","mode":"100755","type":"blob","sha":"bb08c0de0c7bfcf7cdecfda45edc72805bc3adea","size":276,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb08c0de0c7bfcf7cdecfda45edc72805bc3adea"},{"path":".ci/update_windows/update_comfyui_stable.bat","mode":"100755","type":"blob","sha":"e18010da39d37b063f44ec811340c43d4739e874","size":294,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e18010da39d37b063f44ec811340c43d4739e874"},{"path":".ci/windows_base_files","mode":"040000","type":"tree","sha":"1d139af8cc62285d408f9c9f9fd48d4ba362c6ca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1d139af8cc62285d408f9c9f9fd48d4ba362c6ca"},{"path":".ci/windows_base_files/README_VERY_IMPORTANT.txt","mode":"100755","type":"blob","sha":"8ab70c8905b4a240d51b43c835747b5c0dcf9ef9","size":1030,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8ab70c8905b4a240d51b43c835747b5c0dcf9ef9"},{"path":".ci/windows_base_files/run_cpu.bat","mode":"100755","type":"blob","sha":"c3ba4172161a996b0187dd981286c521bcc65846","size":88,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3ba4172161a996b0187dd981286c521bcc65846"},{"path":".ci/windows_base_files/run_nvidia_gpu.bat","mode":"100755","type":"blob","sha":"274d7c9486e0ee182ef8fbe16d34ca95e05e90ec","size":82,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/274d7c9486e0ee182ef8fbe16d34ca95e05e90ec"},{"path":".ci/windows_base_files/run_nvidia_gpu_fast_fp16_accumulation.bat","mode":"100644","type":"blob","sha":"38f06ecb2418b05c4b0e88de0711801c22bcb31b","size":107,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/38f06ecb2418b05c4b0e88de0711801c22bcb31b"},{"path":".ci/windows_nightly_base_files","mode":"040000","type":"tree","sha":"2e16c04c3a204c65c0e70e643a69d3223525ef52","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2e16c04c3a204c65c0e70e643a69d3223525ef52"},{"path":".ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat","mode":"100644","type":"blob","sha":"ca6d6868af4e19fb9ee764241030451d0d15f42d","size":89,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca6d6868af4e19fb9ee764241030451d0d15f42d"},{"path":".gitattributes","mode":"100644","type":"blob","sha":"5b3c15bb47c2fec4ac06b90249da3993c192090e","size":112,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5b3c15bb47c2fec4ac06b90249da3993c192090e"},{"path":".github","mode":"040000","type":"tree","sha":"f640f7b9cae84c0a9a3de2d5b2cbcd0528d34406","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f640f7b9cae84c0a9a3de2d5b2cbcd0528d34406"},{"path":".github/ISSUE_TEMPLATE","mode":"040000","type":"tree","sha":"52b901d26d83f1a1582e80d7e998f6b060d6c7bd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/52b901d26d83f1a1582e80d7e998f6b060d6c7bd"},{"path":".github/ISSUE_TEMPLATE/bug-report.yml","mode":"100644","type":"blob","sha":"69ce998eb39d771d3af51a0079f4ff8d6407c4e7","size":2746,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/69ce998eb39d771d3af51a0079f4ff8d6407c4e7"},{"path":".github/ISSUE_TEMPLATE/config.yml","mode":"100644","type":"blob","sha":"09fea712edc0df7bada8c850abde6370cbf35719","size":689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/09fea712edc0df7bada8c850abde6370cbf35719"},{"path":".github/ISSUE_TEMPLATE/feature-request.yml","mode":"100644","type":"blob","sha":"419721b63b4c0df62989862ea12cf2274d5788d7","size":1584,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/419721b63b4c0df62989862ea12cf2274d5788d7"},{"path":".github/ISSUE_TEMPLATE/user-support.yml","mode":"100644","type":"blob","sha":"50657d49389f1914d0ad2d65ad2b8e4dd3e1eb29","size":1987,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/50657d49389f1914d0ad2d65ad2b8e4dd3e1eb29"},{"path":".github/workflows","mode":"040000","type":"tree","sha":"85dc0ed89c5d8ea92a4a25d4f6ad9b2ca168f2cf","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/85dc0ed89c5d8ea92a4a25d4f6ad9b2ca168f2cf"},{"path":".github/workflows/check-line-endings.yml","mode":"100644","type":"blob","sha":"eeb594d6cd39a60ca6f1808b7e2bb7af3056842c","size":1235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eeb594d6cd39a60ca6f1808b7e2bb7af3056842c"},{"path":".github/workflows/pullrequest-ci-run.yml","mode":"100644","type":"blob","sha":"a2a4b265c9847f7d46f7625f68f86abb5dbda304","size":1937,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2a4b265c9847f7d46f7625f68f86abb5dbda304"},{"path":".github/workflows/release-webhook.yml","mode":"100644","type":"blob","sha":"6fceb7560ecf11120e91e966a8c1420a37ded379","size":5327,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6fceb7560ecf11120e91e966a8c1420a37ded379"},{"path":".github/workflows/ruff.yml","mode":"100644","type":"blob","sha":"4c1a025948b4f4102d162e9a791d1f5fbf4f168c","size":387,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c1a025948b4f4102d162e9a791d1f5fbf4f168c"},{"path":".github/workflows/stable-release.yml","mode":"100644","type":"blob","sha":"a5a1ed2d0032d001ddc316ce82951c15e20d1e84","size":3624,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a5a1ed2d0032d001ddc316ce82951c15e20d1e84"},{"path":".github/workflows/stale-issues.yml","mode":"100644","type":"blob","sha":"0459960706dccca86452bc82804dc79b8bcadeda","size":691,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0459960706dccca86452bc82804dc79b8bcadeda"},{"path":".github/workflows/test-build.yml","mode":"100644","type":"blob","sha":"419873ad88ac8150ffddd4980cd701e672adc523","size":764,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/419873ad88ac8150ffddd4980cd701e672adc523"},{"path":".github/workflows/test-ci.yml","mode":"100644","type":"blob","sha":"418dca0ab75e8ebeee27969fb86919357328dd3d","size":3033,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/418dca0ab75e8ebeee27969fb86919357328dd3d"},{"path":".github/workflows/test-launch.yml","mode":"100644","type":"blob","sha":"1735fd83b69ec5b60dd28ad30cd5f96e97b65e85","size":1316,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1735fd83b69ec5b60dd28ad30cd5f96e97b65e85"},{"path":".github/workflows/test-unit.yml","mode":"100644","type":"blob","sha":"78c91803147d238eefede4409fa0b372ddd13fe9","size":776,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/78c91803147d238eefede4409fa0b372ddd13fe9"},{"path":".github/workflows/update-api-stubs.yml","mode":"100644","type":"blob","sha":"c99ec9fc1acf5ec0c1e922050be4e7930e7d1615","size":1833,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c99ec9fc1acf5ec0c1e922050be4e7930e7d1615"},{"path":".github/workflows/update-version.yml","mode":"100644","type":"blob","sha":"d9d4889749ecb4dacf1742102210cd2d66ee12f9","size":1840,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d9d4889749ecb4dacf1742102210cd2d66ee12f9"},{"path":".github/workflows/windows_release_dependencies.yml","mode":"100644","type":"blob","sha":"7761cc1ed0ff015d6ecb99e0321634ff9c6aff1e","size":2445,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7761cc1ed0ff015d6ecb99e0321634ff9c6aff1e"},{"path":".github/workflows/windows_release_nightly_pytorch.yml","mode":"100644","type":"blob","sha":"5bdc940de2d58fb1c75fb9585c238abf5d2c55fb","size":3730,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5bdc940de2d58fb1c75fb9585c238abf5d2c55fb"},{"path":".github/workflows/windows_release_package.yml","mode":"100644","type":"blob","sha":"3334e6839ca9f54d71dea4ce900caf16e4f753af","size":3659,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3334e6839ca9f54d71dea4ce900caf16e4f753af"},{"path":".gitignore","mode":"100644","type":"blob","sha":"4e8cea71e55139979744378e9918065955bcd7ea","size":382,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e8cea71e55139979744378e9918065955bcd7ea"},{"path":"CODEOWNERS","mode":"100644","type":"blob","sha":"c4acbf06ebf530ab09c1ffa1a0ff0ba9b31e06c6","size":1512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c4acbf06ebf530ab09c1ffa1a0ff0ba9b31e06c6"},{"path":"CONTRIBUTING.md","mode":"100644","type":"blob","sha":"048f127e72ddc351451a9612d4c715f603393a84","size":1882,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/048f127e72ddc351451a9612d4c715f603393a84"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"f288702d2fa16d3cdf0035b15a9fcbc552cd88e7","size":35149,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"},{"path":"README.md","mode":"100644","type":"blob","sha":"e4cff01a9dc00f2df3c749863f75b25ed6f805e2","size":26641,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e4cff01a9dc00f2df3c749863f75b25ed6f805e2"},{"path":"alembic.ini","mode":"100644","type":"blob","sha":"12f18712f4306f1b76e6b291956797b01469cd80","size":3230,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/12f18712f4306f1b76e6b291956797b01469cd80"},{"path":"alembic_db","mode":"040000","type":"tree","sha":"449a7b5bd85bf258fa2dba8cbfa95dfe1090a86d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/449a7b5bd85bf258fa2dba8cbfa95dfe1090a86d"},{"path":"alembic_db/README.md","mode":"100644","type":"blob","sha":"3b808c7cab30eaab91c9ff5c1b2d5cc960904e14","size":133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3b808c7cab30eaab91c9ff5c1b2d5cc960904e14"},{"path":"alembic_db/env.py","mode":"100644","type":"blob","sha":"4d7770679875e2fad065fba0c9222758a40d266b","size":1799,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d7770679875e2fad065fba0c9222758a40d266b"},{"path":"alembic_db/script.py.mako","mode":"100644","type":"blob","sha":"480b130d632ca677c11f23d9fe82cf4014d15e0c","size":689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/480b130d632ca677c11f23d9fe82cf4014d15e0c"},{"path":"api_server","mode":"040000","type":"tree","sha":"2ef00490427353e728c491069ce0cdbb8f906f6b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2ef00490427353e728c491069ce0cdbb8f906f6b"},{"path":"api_server/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes","mode":"040000","type":"tree","sha":"21d5ce3a4f594dd65679cac295d9122176b9096c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/21d5ce3a4f594dd65679cac295d9122176b9096c"},{"path":"api_server/routes/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes/internal","mode":"040000","type":"tree","sha":"face49ad89add932178fb28f76e50955456eab03","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/face49ad89add932178fb28f76e50955456eab03"},{"path":"api_server/routes/internal/README.md","mode":"100644","type":"blob","sha":"35330c36f83962385b4afe4653c5967f2bdb73c1","size":220,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35330c36f83962385b4afe4653c5967f2bdb73c1"},{"path":"api_server/routes/internal/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes/internal/internal_routes.py","mode":"100644","type":"blob","sha":"613b0f7c7cf1cdbb24aae3e880e749839ac1110e","size":2830,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/613b0f7c7cf1cdbb24aae3e880e749839ac1110e"},{"path":"api_server/services","mode":"040000","type":"tree","sha":"fb303e6603032fb076c86938a5a149b9b447960e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fb303e6603032fb076c86938a5a149b9b447960e"},{"path":"api_server/services/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/services/terminal_service.py","mode":"100644","type":"blob","sha":"ab4371f4f855c6d347744f751fd1bc5cc0f5a173","size":1709,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab4371f4f855c6d347744f751fd1bc5cc0f5a173"},{"path":"api_server/utils","mode":"040000","type":"tree","sha":"196b7b6129fd35f559b1e1e17500e8b59631a0de","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/196b7b6129fd35f559b1e1e17500e8b59631a0de"},{"path":"api_server/utils/file_operations.py","mode":"100644","type":"blob","sha":"32d6e047a5da09d0f382bb3fa93ce8d52b699aa7","size":1367,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32d6e047a5da09d0f382bb3fa93ce8d52b699aa7"},{"path":"app","mode":"040000","type":"tree","sha":"d0011a74e4707951935e7090a29e0bdbdc1c3ad7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d0011a74e4707951935e7090a29e0bdbdc1c3ad7"},{"path":"app/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"app/app_settings.py","mode":"100644","type":"blob","sha":"c7ac73bf6a59d3e89647aed13b70ca9428e16f2a","size":2255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c7ac73bf6a59d3e89647aed13b70ca9428e16f2a"},{"path":"app/custom_node_manager.py","mode":"100644","type":"blob","sha":"281febca952363659eb3925280fab00f07c986d0","size":5330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/281febca952363659eb3925280fab00f07c986d0"},{"path":"app/database","mode":"040000","type":"tree","sha":"7ed323953fc1c65daa35b418d299f52edd3d860d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7ed323953fc1c65daa35b418d299f52edd3d860d"},{"path":"app/database/db.py","mode":"100644","type":"blob","sha":"1de8b80edd8a5761039c7314c6387d2184a15e14","size":3290,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1de8b80edd8a5761039c7314c6387d2184a15e14"},{"path":"app/database/models.py","mode":"100644","type":"blob","sha":"6facfb8f2b5e7382274021579a453ad3b7853bf7","size":315,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6facfb8f2b5e7382274021579a453ad3b7853bf7"},{"path":"app/frontend_management.py","mode":"100644","type":"blob","sha":"0bee73685b931bc1eddef79c7acafc2d0958098b","size":12235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0bee73685b931bc1eddef79c7acafc2d0958098b"},{"path":"app/logger.py","mode":"100644","type":"blob","sha":"3d26d98fe28005a3ed8b6deb7da34823b98b5696","size":2849,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3d26d98fe28005a3ed8b6deb7da34823b98b5696"},{"path":"app/model_manager.py","mode":"100644","type":"blob","sha":"ab36bca7441468ef3683f39c16fc6cec85d9740a","size":7887,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab36bca7441468ef3683f39c16fc6cec85d9740a"},{"path":"app/user_manager.py","mode":"100644","type":"blob","sha":"0ec3e46eadbc95cab6b70b1970ad5abfb4cb76b5","size":17786,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0ec3e46eadbc95cab6b70b1970ad5abfb4cb76b5"},{"path":"comfy","mode":"040000","type":"tree","sha":"43970eb914328a6053002d7a90292dd116ff703e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/43970eb914328a6053002d7a90292dd116ff703e"},{"path":"comfy/checkpoint_pickle.py","mode":"100644","type":"blob","sha":"206551d3c1cf0d654c907534629a800196ba138b","size":286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/206551d3c1cf0d654c907534629a800196ba138b"},{"path":"comfy/cldm","mode":"040000","type":"tree","sha":"d0fbf52584e7dbc45fe85932d27496fef1996dfd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d0fbf52584e7dbc45fe85932d27496fef1996dfd"},{"path":"comfy/cldm/cldm.py","mode":"100644","type":"blob","sha":"ec01665e2181d4aea1c9cbb5b95bdc7715a3e8a8","size":19751,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ec01665e2181d4aea1c9cbb5b95bdc7715a3e8a8"},{"path":"comfy/cldm/control_types.py","mode":"100644","type":"blob","sha":"4128631a305a13d65c3c37ced17179d23fbbdcff","size":207,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4128631a305a13d65c3c37ced17179d23fbbdcff"},{"path":"comfy/cldm/dit_embedder.py","mode":"100644","type":"blob","sha":"f9bf31012b1319e929cab381c9a3b32be62fc589","size":4204,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f9bf31012b1319e929cab381c9a3b32be62fc589"},{"path":"comfy/cldm/mmdit.py","mode":"100644","type":"blob","sha":"b7764085e9431259d43701654af897effe0799da","size":2555,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b7764085e9431259d43701654af897effe0799da"},{"path":"comfy/cli_args.py","mode":"100644","type":"blob","sha":"0d760d524d07cc072a0687bd35791decdf4a0106","size":15163,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d760d524d07cc072a0687bd35791decdf4a0106"},{"path":"comfy/clip_config_bigg.json","mode":"100644","type":"blob","sha":"35261deef14a68fcc6c5b1fc32914b5c102781a9","size":524,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35261deef14a68fcc6c5b1fc32914b5c102781a9"},{"path":"comfy/clip_model.py","mode":"100644","type":"blob","sha":"c8294d4832e06adb3611a3b9311c1bca06297df7","size":11642,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c8294d4832e06adb3611a3b9311c1bca06297df7"},{"path":"comfy/clip_vision.py","mode":"100644","type":"blob","sha":"00aab9164e5ec2060e34f22df9d1098cfe7b7e47","size":6980,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00aab9164e5ec2060e34f22df9d1098cfe7b7e47"},{"path":"comfy/clip_vision_config_g.json","mode":"100644","type":"blob","sha":"708e7e21ac3513a719d6a49e88e756f5ef7e2c8d","size":419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/708e7e21ac3513a719d6a49e88e756f5ef7e2c8d"},{"path":"comfy/clip_vision_config_h.json","mode":"100644","type":"blob","sha":"bb71be419a4be0ad5c8c157850de032a65593cb9","size":419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb71be419a4be0ad5c8c157850de032a65593cb9"},{"path":"comfy/clip_vision_config_vitl.json","mode":"100644","type":"blob","sha":"c59b8ed5a4c1f41fbcc9e6811d2c7dfe44273de7","size":424,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c59b8ed5a4c1f41fbcc9e6811d2c7dfe44273de7"},{"path":"comfy/clip_vision_config_vitl_336.json","mode":"100644","type":"blob","sha":"f26945273d99e88f207d64dcec78feee63b4b625","size":423,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f26945273d99e88f207d64dcec78feee63b4b625"},{"path":"comfy/clip_vision_config_vitl_336_llava.json","mode":"100644","type":"blob","sha":"f23a50d8b77fa29de2af621fb50c5825cf9b1a86","size":453,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f23a50d8b77fa29de2af621fb50c5825cf9b1a86"},{"path":"comfy/clip_vision_siglip_384.json","mode":"100644","type":"blob","sha":"532e03ac181d8849a7202445d42565f01441177b","size":314,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/532e03ac181d8849a7202445d42565f01441177b"},{"path":"comfy/clip_vision_siglip_512.json","mode":"100644","type":"blob","sha":"7fb93ce15e6da3ce7653a7a91ab278d707a096b4","size":314,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7fb93ce15e6da3ce7653a7a91ab278d707a096b4"},{"path":"comfy/comfy_types","mode":"040000","type":"tree","sha":"3dda958c109118e3e62f39857beb520d9cbbbfb4","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3dda958c109118e3e62f39857beb520d9cbbbfb4"},{"path":"comfy/comfy_types/README.md","mode":"100644","type":"blob","sha":"20a786a5eac805a0b3f41c4fa42be558819b89c8","size":1350,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/20a786a5eac805a0b3f41c4fa42be558819b89c8"},{"path":"comfy/comfy_types/__init__.py","mode":"100644","type":"blob","sha":"7640fbe3f827bdaac2384e0dcc96d243ec257f2f","size":1251,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7640fbe3f827bdaac2384e0dcc96d243ec257f2f"},{"path":"comfy/comfy_types/examples","mode":"040000","type":"tree","sha":"c26fa0b29368af8d530f7bc9dab14a7d71697044","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c26fa0b29368af8d530f7bc9dab14a7d71697044"},{"path":"comfy/comfy_types/examples/example_nodes.py","mode":"100644","type":"blob","sha":"6e19c545153db36b2c2e7481e5c8bc96ccbbe1f1","size":781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6e19c545153db36b2c2e7481e5c8bc96ccbbe1f1"},{"path":"comfy/comfy_types/examples/input_options.png","mode":"100644","type":"blob","sha":"ac859bbc0c15728e6f5464f9388f44d5e38dd650","size":19341,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac859bbc0c15728e6f5464f9388f44d5e38dd650"},{"path":"comfy/comfy_types/examples/input_types.png","mode":"100644","type":"blob","sha":"27e031ccf9c32958da0d41164b567e252c1b0c5c","size":16809,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/27e031ccf9c32958da0d41164b567e252c1b0c5c"},{"path":"comfy/comfy_types/examples/required_hint.png","mode":"100644","type":"blob","sha":"22c0182a0aed3245201f2ffac86a6d3ad5b7e2ea","size":19286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22c0182a0aed3245201f2ffac86a6d3ad5b7e2ea"},{"path":"comfy/comfy_types/node_typing.py","mode":"100644","type":"blob","sha":"071b98332ee2a588448fde472f9c0f104e72d13d","size":14985,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/071b98332ee2a588448fde472f9c0f104e72d13d"},{"path":"comfy/conds.py","mode":"100644","type":"blob","sha":"5af3e93eaeecdef08d9e07901b33a70bda60fb43","size":3874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5af3e93eaeecdef08d9e07901b33a70bda60fb43"},{"path":"comfy/controlnet.py","mode":"100644","type":"blob","sha":"988acdb572a7864056e3031a84ce871b236ad738","size":39587,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/988acdb572a7864056e3031a84ce871b236ad738"},{"path":"comfy/diffusers_convert.py","mode":"100644","type":"blob","sha":"fb9495348704c4f58b537f524ff6194d572d9fad","size":6796,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fb9495348704c4f58b537f524ff6194d572d9fad"},{"path":"comfy/diffusers_load.py","mode":"100644","type":"blob","sha":"56e63a7565f083eb4e3bc484a3a9f90103306a2f","size":1437,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/56e63a7565f083eb4e3bc484a3a9f90103306a2f"},{"path":"comfy/extra_samplers","mode":"040000","type":"tree","sha":"27bd35de93053231f1fbae018fed273d9da52119","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/27bd35de93053231f1fbae018fed273d9da52119"},{"path":"comfy/extra_samplers/uni_pc.py","mode":"100644","type":"blob","sha":"c57e081e45cfaa694e3e78528798f62a4698c056","size":38202,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c57e081e45cfaa694e3e78528798f62a4698c056"},{"path":"comfy/float.py","mode":"100644","type":"blob","sha":"521316fd2facaab90583da8487029a365aefd9e7","size":2485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/521316fd2facaab90583da8487029a365aefd9e7"},{"path":"comfy/gligen.py","mode":"100644","type":"blob","sha":"1d7b6c2f4cd1009ac3c52bc5f68442a91b417048","size":10800,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1d7b6c2f4cd1009ac3c52bc5f68442a91b417048"},{"path":"comfy/hooks.py","mode":"100644","type":"blob","sha":"9d07310729020a033f705395433c318152432935","size":32728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d07310729020a033f705395433c318152432935"},{"path":"comfy/image_encoders","mode":"040000","type":"tree","sha":"85526dea7862616e1e9824f925d24bb65313fdf0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/85526dea7862616e1e9824f925d24bb65313fdf0"},{"path":"comfy/image_encoders/dino2.py","mode":"100644","type":"blob","sha":"976f98c656a6b55eb6ceb8d2c585a2713ac6dddb","size":6133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/976f98c656a6b55eb6ceb8d2c585a2713ac6dddb"},{"path":"comfy/image_encoders/dino2_giant.json","mode":"100644","type":"blob","sha":"f6076a4dc98dfee6c200294397bfdfe3d2c688e1","size":512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f6076a4dc98dfee6c200294397bfdfe3d2c688e1"},{"path":"comfy/k_diffusion","mode":"040000","type":"tree","sha":"537e178da725e0fe97b4cd538325857699611100","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/537e178da725e0fe97b4cd538325857699611100"},{"path":"comfy/k_diffusion/deis.py","mode":"100644","type":"blob","sha":"a1167a4a36c42b22168ea8b3d80b1d83b2505db5","size":5799,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1167a4a36c42b22168ea8b3d80b1d83b2505db5"},{"path":"comfy/k_diffusion/sa_solver.py","mode":"100644","type":"blob","sha":"0c6821b605d4b44ac81414f2c635e28ce5d9feb5","size":5622,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c6821b605d4b44ac81414f2c635e28ce5d9feb5"},{"path":"comfy/k_diffusion/sampling.py","mode":"100644","type":"blob","sha":"a2bc492fd01186e101c6c977b9645ed8bd2e1355","size":80190,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2bc492fd01186e101c6c977b9645ed8bd2e1355"},{"path":"comfy/k_diffusion/utils.py","mode":"100644","type":"blob","sha":"a644df2f3cf82b32ac6e9bf2cb7bfc70c95e05f9","size":12718,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a644df2f3cf82b32ac6e9bf2cb7bfc70c95e05f9"},{"path":"comfy/latent_formats.py","mode":"100644","type":"blob","sha":"caf4991fcab1ef2ad1c6f32effae0e23846aaf0a","size":22655,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/caf4991fcab1ef2ad1c6f32effae0e23846aaf0a"},{"path":"comfy/ldm","mode":"040000","type":"tree","sha":"d30ddc6791ba4887dcb878ee0d087722fc82836e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d30ddc6791ba4887dcb878ee0d087722fc82836e"},{"path":"comfy/ldm/ace","mode":"040000","type":"tree","sha":"f5d4f3f6f930c0c0fce01462c8a8368712f288cd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f5d4f3f6f930c0c0fce01462c8a8368712f288cd"},{"path":"comfy/ldm/ace/attention.py","mode":"100644","type":"blob","sha":"f20a016691453789b6608af2b54dc1e18a1e9a3e","size":30112,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f20a016691453789b6608af2b54dc1e18a1e9a3e"},{"path":"comfy/ldm/ace/lyric_encoder.py","mode":"100644","type":"blob","sha":"ff4359b26e8d27591d6fa59d6d931ab13596efe1","size":43155,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ff4359b26e8d27591d6fa59d6d931ab13596efe1"},{"path":"comfy/ldm/ace/model.py","mode":"100644","type":"blob","sha":"12c5247011aab3c533ca77c3c1a63d9c185ee90f","size":15914,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/12c5247011aab3c533ca77c3c1a63d9c185ee90f"},{"path":"comfy/ldm/ace/vae","mode":"040000","type":"tree","sha":"e631aff863782e3850dac6d3c5ab7071e5ce59e0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e631aff863782e3850dac6d3c5ab7071e5ce59e0"},{"path":"comfy/ldm/ace/vae/autoencoder_dc.py","mode":"100644","type":"blob","sha":"e7b1d4801e7b3f47f29cb90f41adff4d415868cd","size":22909,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e7b1d4801e7b3f47f29cb90f41adff4d415868cd"},{"path":"comfy/ldm/ace/vae/music_dcae_pipeline.py","mode":"100644","type":"blob","sha":"af81280eb0dd5fce49c0aa4b86a4f0feb841b3fd","size":4140,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/af81280eb0dd5fce49c0aa4b86a4f0feb841b3fd"},{"path":"comfy/ldm/ace/vae/music_log_mel.py","mode":"100755","type":"blob","sha":"9c584eb7fa75ffaab1c3a42184ea75171b2a1d8f","size":3090,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9c584eb7fa75ffaab1c3a42184ea75171b2a1d8f"},{"path":"comfy/ldm/ace/vae/music_vocoder.py","mode":"100755","type":"blob","sha":"2f989fa86e8c964994886c6a22ed53e742279ec4","size":18149,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2f989fa86e8c964994886c6a22ed53e742279ec4"},{"path":"comfy/ldm/audio","mode":"040000","type":"tree","sha":"215a1c0509187752d5082a3d8b401ab160b88586","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/215a1c0509187752d5082a3d8b401ab160b88586"},{"path":"comfy/ldm/audio/autoencoder.py","mode":"100644","type":"blob","sha":"78ed6ffa63ab9fca66ba009709bb262a18830dcd","size":9969,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/78ed6ffa63ab9fca66ba009709bb262a18830dcd"},{"path":"comfy/ldm/audio/dit.py","mode":"100644","type":"blob","sha":"179c5b67eac40a5c907f46d821c057c5de18e8d9","size":31033,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/179c5b67eac40a5c907f46d821c057c5de18e8d9"},{"path":"comfy/ldm/audio/embedders.py","mode":"100644","type":"blob","sha":"20edb365aaafe7f344a2616a53470c837d0a8a6e","size":3406,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/20edb365aaafe7f344a2616a53470c837d0a8a6e"},{"path":"comfy/ldm/aura","mode":"040000","type":"tree","sha":"34ea6a423e07c0be8d9e567d696bbd01cb030f82","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/34ea6a423e07c0be8d9e567d696bbd01cb030f82"},{"path":"comfy/ldm/aura/mmdit.py","mode":"100644","type":"blob","sha":"1258ae11fd064a2ab2fb944bb897fa120be2c9ca","size":19449,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1258ae11fd064a2ab2fb944bb897fa120be2c9ca"},{"path":"comfy/ldm/cascade","mode":"040000","type":"tree","sha":"563af6f43c43e3c07196869853539e3e5740ee6d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/563af6f43c43e3c07196869853539e3e5740ee6d"},{"path":"comfy/ldm/cascade/common.py","mode":"100644","type":"blob","sha":"3eaa0c821cccddbe891ac8a705d702c509c85582","size":6591,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3eaa0c821cccddbe891ac8a705d702c509c85582"},{"path":"comfy/ldm/cascade/controlnet.py","mode":"100644","type":"blob","sha":"90473481a078323be11e2c5530de378b1ac6425c","size":4304,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/90473481a078323be11e2c5530de378b1ac6425c"},{"path":"comfy/ldm/cascade/stage_a.py","mode":"100644","type":"blob","sha":"145e6e69a7c56c0b983cd79d43f1c6d7d26fd349","size":10032,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/145e6e69a7c56c0b983cd79d43f1c6d7d26fd349"},{"path":"comfy/ldm/cascade/stage_b.py","mode":"100644","type":"blob","sha":"77383095681d994dcf94e52a106cfe93dcbb6a50","size":14027,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/77383095681d994dcf94e52a106cfe93dcbb6a50"},{"path":"comfy/ldm/cascade/stage_c.py","mode":"100644","type":"blob","sha":"b952d03490578840deadfb4623225819903bf09d","size":14968,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b952d03490578840deadfb4623225819903bf09d"},{"path":"comfy/ldm/cascade/stage_c_coder.py","mode":"100644","type":"blob","sha":"b467a70a848edeef57d7911ac844868b251f8e45","size":3501,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b467a70a848edeef57d7911ac844868b251f8e45"},{"path":"comfy/ldm/chroma","mode":"040000","type":"tree","sha":"705c612f0d5e7eb55e5e19949c43fc633fe57be0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/705c612f0d5e7eb55e5e19949c43fc633fe57be0"},{"path":"comfy/ldm/chroma/layers.py","mode":"100644","type":"blob","sha":"2a0dec606239cdc21ee21192172a812a53e0107c","size":7939,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a0dec606239cdc21ee21192172a812a53e0107c"},{"path":"comfy/ldm/chroma/model.py","mode":"100644","type":"blob","sha":"06021d4f2cab5602920d7e5e1aada4f013a74364","size":11644,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/06021d4f2cab5602920d7e5e1aada4f013a74364"},{"path":"comfy/ldm/common_dit.py","mode":"100644","type":"blob","sha":"f7f56b72ca6fcd3ba2831b8881a7124d84490bee","size":474,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7f56b72ca6fcd3ba2831b8881a7124d84490bee"},{"path":"comfy/ldm/cosmos","mode":"040000","type":"tree","sha":"1977da4da38ce3551b2e2990721deed8114989e3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1977da4da38ce3551b2e2990721deed8114989e3"},{"path":"comfy/ldm/cosmos/blocks.py","mode":"100644","type":"blob","sha":"5c4356a3ff9d97c182de8afeb1f130dca5bd2756","size":30639,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5c4356a3ff9d97c182de8afeb1f130dca5bd2756"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer","mode":"040000","type":"tree","sha":"9854c93a3374050452c33082b0a666697adcb303","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9854c93a3374050452c33082b0a666697adcb303"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/layers3d.py","mode":"100644","type":"blob","sha":"9a3ebed6aa5362c79aff91c088cce8ba7b6f3141","size":33866,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9a3ebed6aa5362c79aff91c088cce8ba7b6f3141"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/patching.py","mode":"100644","type":"blob","sha":"87a53a1d9f9ac4fa6bdbb1f8f682c298fdd4376c","size":13796,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/87a53a1d9f9ac4fa6bdbb1f8f682c298fdd4376c"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/utils.py","mode":"100644","type":"blob","sha":"ca993006fc800db4cd016fe43e67ae7473ab1634","size":3168,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca993006fc800db4cd016fe43e67ae7473ab1634"},{"path":"comfy/ldm/cosmos/model.py","mode":"100644","type":"blob","sha":"4836e0b69e80dc8bdd7ecb015711213bd6477671","size":22500,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4836e0b69e80dc8bdd7ecb015711213bd6477671"},{"path":"comfy/ldm/cosmos/position_embedding.py","mode":"100644","type":"blob","sha":"c925811d4c2275699a030ef8bbcb299a65918754","size":8929,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c925811d4c2275699a030ef8bbcb299a65918754"},{"path":"comfy/ldm/cosmos/predict2.py","mode":"100644","type":"blob","sha":"316117f779f2a52dc0ae38250a926c72d7692356","size":37553,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/316117f779f2a52dc0ae38250a926c72d7692356"},{"path":"comfy/ldm/cosmos/vae.py","mode":"100644","type":"blob","sha":"d64f292de735258f43c07099bee03e3c871e9a26","size":4985,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d64f292de735258f43c07099bee03e3c871e9a26"},{"path":"comfy/ldm/flux","mode":"040000","type":"tree","sha":"62d74771e9577704a95eec1628f414e06cffc1d4","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/62d74771e9577704a95eec1628f414e06cffc1d4"},{"path":"comfy/ldm/flux/controlnet.py","mode":"100644","type":"blob","sha":"7dcf82bbf3e8e9a369dda0df39f37f0653514747","size":9227,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7dcf82bbf3e8e9a369dda0df39f37f0653514747"},{"path":"comfy/ldm/flux/layers.py","mode":"100644","type":"blob","sha":"113eb20962a2ead9237940bc8585901dd038ec61","size":12269,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/113eb20962a2ead9237940bc8585901dd038ec61"},{"path":"comfy/ldm/flux/math.py","mode":"100644","type":"blob","sha":"3e09781768a7b1fb1a72e18a62811b139f459a0b","size":1930,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3e09781768a7b1fb1a72e18a62811b139f459a0b"},{"path":"comfy/ldm/flux/model.py","mode":"100644","type":"blob","sha":"8f4d99f548f3ee1dbf0bd92fb9df7fe71e25e421","size":10240,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8f4d99f548f3ee1dbf0bd92fb9df7fe71e25e421"},{"path":"comfy/ldm/flux/redux.py","mode":"100644","type":"blob","sha":"527e83164ea2fd1bdf7431f3791ebede00895051","size":724,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/527e83164ea2fd1bdf7431f3791ebede00895051"},{"path":"comfy/ldm/genmo","mode":"040000","type":"tree","sha":"d5d255b046dec810159dcb6e336917485d190f08","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d5d255b046dec810159dcb6e336917485d190f08"},{"path":"comfy/ldm/genmo/joint_model","mode":"040000","type":"tree","sha":"f84f92feefef6de9d7e4883a4871f1e4f9b04937","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f84f92feefef6de9d7e4883a4871f1e4f9b04937"},{"path":"comfy/ldm/genmo/joint_model/asymm_models_joint.py","mode":"100644","type":"blob","sha":"366a8b7133cb665731148a2cdb2ce1013cf0ae92","size":19189,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/366a8b7133cb665731148a2cdb2ce1013cf0ae92"},{"path":"comfy/ldm/genmo/joint_model/layers.py","mode":"100644","type":"blob","sha":"e310bd717833b29e3730894370a55cd49802de93","size":5053,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e310bd717833b29e3730894370a55cd49802de93"},{"path":"comfy/ldm/genmo/joint_model/rope_mixed.py","mode":"100644","type":"blob","sha":"dee3fa21f5318a610321fc9372553d618462f773","size":2649,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dee3fa21f5318a610321fc9372553d618462f773"},{"path":"comfy/ldm/genmo/joint_model/temporal_rope.py","mode":"100644","type":"blob","sha":"88f5d6d26151db0c8ad0a89fcf748c45d4b89bc0","size":1255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/88f5d6d26151db0c8ad0a89fcf748c45d4b89bc0"},{"path":"comfy/ldm/genmo/joint_model/utils.py","mode":"100644","type":"blob","sha":"1b399d5d2128b7f5c7be141c3d8e7047df93b273","size":3671,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1b399d5d2128b7f5c7be141c3d8e7047df93b273"},{"path":"comfy/ldm/genmo/vae","mode":"040000","type":"tree","sha":"3d9c703714421c77bd21d86c7426ab172e4217fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3d9c703714421c77bd21d86c7426ab172e4217fc"},{"path":"comfy/ldm/genmo/vae/model.py","mode":"100644","type":"blob","sha":"1bde0c1ed7372be184e634777b9e27b67692b1f4","size":22276,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bde0c1ed7372be184e634777b9e27b67692b1f4"},{"path":"comfy/ldm/hidream","mode":"040000","type":"tree","sha":"e2e12ba14bc9f62dc287de037a3a8fabc09b4dbd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e2e12ba14bc9f62dc287de037a3a8fabc09b4dbd"},{"path":"comfy/ldm/hidream/model.py","mode":"100644","type":"blob","sha":"0305747bf70610827e2fa3cb9263c7540343dd17","size":33693,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0305747bf70610827e2fa3cb9263c7540343dd17"},{"path":"comfy/ldm/hunyuan3d","mode":"040000","type":"tree","sha":"20996c4b38ad06baa3335588981801df49638843","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/20996c4b38ad06baa3335588981801df49638843"},{"path":"comfy/ldm/hunyuan3d/model.py","mode":"100644","type":"blob","sha":"4e18358f0ef95bdb3dac95ba9b652b44872f0f28","size":5490,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e18358f0ef95bdb3dac95ba9b652b44872f0f28"},{"path":"comfy/ldm/hunyuan3d/vae.py","mode":"100644","type":"blob","sha":"5eb2c6548350fb66754788b27caee397494ff0da","size":19635,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5eb2c6548350fb66754788b27caee397494ff0da"},{"path":"comfy/ldm/hunyuan_video","mode":"040000","type":"tree","sha":"698490239c4459789a8a1292153406cd9a332d24","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/698490239c4459789a8a1292153406cd9a332d24"},{"path":"comfy/ldm/hunyuan_video/model.py","mode":"100644","type":"blob","sha":"fbd8d4196d1444544ea6db950fc5bac6501badf2","size":14509,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fbd8d4196d1444544ea6db950fc5bac6501badf2"},{"path":"comfy/ldm/hydit","mode":"040000","type":"tree","sha":"1a218a5b420df99819992fe9fde464fb050cb4d9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1a218a5b420df99819992fe9fde464fb050cb4d9"},{"path":"comfy/ldm/hydit/attn_layers.py","mode":"100644","type":"blob","sha":"3ca25a5df175bcadd8e50ad34ee0bfcddcb37aa0","size":9869,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ca25a5df175bcadd8e50ad34ee0bfcddcb37aa0"},{"path":"comfy/ldm/hydit/controlnet.py","mode":"100644","type":"blob","sha":"31a6bff9409bb5264e552f91197915a136c3964d","size":10282,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31a6bff9409bb5264e552f91197915a136c3964d"},{"path":"comfy/ldm/hydit/models.py","mode":"100644","type":"blob","sha":"5ba2b76e0cad3c611fce1e74b024a66a2255b814","size":17193,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5ba2b76e0cad3c611fce1e74b024a66a2255b814"},{"path":"comfy/ldm/hydit/poolers.py","mode":"100644","type":"blob","sha":"c1b878ed6b0541116794635c5c1b53a7ca13af47","size":1919,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1b878ed6b0541116794635c5c1b53a7ca13af47"},{"path":"comfy/ldm/hydit/posemb_layers.py","mode":"100644","type":"blob","sha":"dcb41a713cd94ea8472ff26e8865066887b1e486","size":8689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dcb41a713cd94ea8472ff26e8865066887b1e486"},{"path":"comfy/ldm/lightricks","mode":"040000","type":"tree","sha":"2ae4a846e74194e1d3b4e6b70fad48be50586f5e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2ae4a846e74194e1d3b4e6b70fad48be50586f5e"},{"path":"comfy/ldm/lightricks/model.py","mode":"100644","type":"blob","sha":"ad9a7daeab76ea3776016ab9c07d618dbe1e316a","size":19707,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ad9a7daeab76ea3776016ab9c07d618dbe1e316a"},{"path":"comfy/ldm/lightricks/symmetric_patchifier.py","mode":"100644","type":"blob","sha":"4b9972b9fb589bb5516c64dd557c0914dda45116","size":3950,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4b9972b9fb589bb5516c64dd557c0914dda45116"},{"path":"comfy/ldm/lightricks/vae","mode":"040000","type":"tree","sha":"55baa8a280eb205fce4f580b7d587e30e0334710","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/55baa8a280eb205fce4f580b7d587e30e0334710"},{"path":"comfy/ldm/lightricks/vae/causal_conv3d.py","mode":"100644","type":"blob","sha":"70d612e86376c86bd73a95df620a5434871ee2c7","size":1813,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/70d612e86376c86bd73a95df620a5434871ee2c7"},{"path":"comfy/ldm/lightricks/vae/causal_video_autoencoder.py","mode":"100644","type":"blob","sha":"75ed069ad45dc2f915f0c749f1afc3536d292e33","size":41448,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/75ed069ad45dc2f915f0c749f1afc3536d292e33"},{"path":"comfy/ldm/lightricks/vae/conv_nd_factory.py","mode":"100644","type":"blob","sha":"b4026b14fae386850459b18fb06e8b5d7f79ab94","size":2570,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b4026b14fae386850459b18fb06e8b5d7f79ab94"},{"path":"comfy/ldm/lightricks/vae/dual_conv3d.py","mode":"100644","type":"blob","sha":"dcf889296750d3d7e553af37ecf77d1b10245af3","size":6885,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dcf889296750d3d7e553af37ecf77d1b10245af3"},{"path":"comfy/ldm/lightricks/vae/pixel_norm.py","mode":"100644","type":"blob","sha":"9bc3ea60e8a6453e7e12a7fb5aca4de3958a2567","size":307,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9bc3ea60e8a6453e7e12a7fb5aca4de3958a2567"},{"path":"comfy/ldm/lumina","mode":"040000","type":"tree","sha":"de8b15d9523012d068e72f5cfb6bb49a132fdc7a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/de8b15d9523012d068e72f5cfb6bb49a132fdc7a"},{"path":"comfy/ldm/lumina/model.py","mode":"100644","type":"blob","sha":"f8dc4d7db6fcfe39de97482d4ef7c1bee61544e2","size":22778,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f8dc4d7db6fcfe39de97482d4ef7c1bee61544e2"},{"path":"comfy/ldm/models","mode":"040000","type":"tree","sha":"1f5c7951a56b4955d85944b2701c1350fe658a82","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1f5c7951a56b4955d85944b2701c1350fe658a82"},{"path":"comfy/ldm/models/autoencoder.py","mode":"100644","type":"blob","sha":"13bd6e16b642e529ba57b4a8be981fb274924197","size":7653,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/13bd6e16b642e529ba57b4a8be981fb274924197"},{"path":"comfy/ldm/modules","mode":"040000","type":"tree","sha":"cdb220b15a8d290e1769bc014af82dd730e8fae1","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cdb220b15a8d290e1769bc014af82dd730e8fae1"},{"path":"comfy/ldm/modules/attention.py","mode":"100644","type":"blob","sha":"35d2270ee98e2914decc6b2d92ff1c9f07dc3c60","size":38114,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35d2270ee98e2914decc6b2d92ff1c9f07dc3c60"},{"path":"comfy/ldm/modules/diffusionmodules","mode":"040000","type":"tree","sha":"636caa8228aedc27ddb346655ed9e8c990297270","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/636caa8228aedc27ddb346655ed9e8c990297270"},{"path":"comfy/ldm/modules/diffusionmodules/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/diffusionmodules/mmdit.py","mode":"100644","type":"blob","sha":"eaf3e73a4cdfab3afde74a01eaf12defedafb917","size":37432,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eaf3e73a4cdfab3afde74a01eaf12defedafb917"},{"path":"comfy/ldm/modules/diffusionmodules/model.py","mode":"100644","type":"blob","sha":"5c0373b74f882c8b0e3ef36d5f09de7802d4ce6b","size":27864,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5c0373b74f882c8b0e3ef36d5f09de7802d4ce6b"},{"path":"comfy/ldm/modules/diffusionmodules/openaimodel.py","mode":"100644","type":"blob","sha":"4c8d53cac9c2631f6985a3c670128bb4316b11ca","size":37382,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c8d53cac9c2631f6985a3c670128bb4316b11ca"},{"path":"comfy/ldm/modules/diffusionmodules/upscaling.py","mode":"100644","type":"blob","sha":"9dbf1fe7b93b0c7f1a9e8cbf8e89d0b33c282a08","size":3645,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9dbf1fe7b93b0c7f1a9e8cbf8e89d0b33c282a08"},{"path":"comfy/ldm/modules/diffusionmodules/util.py","mode":"100644","type":"blob","sha":"233011dc9524c3d5258c69c673385aaf45329c81","size":11889,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/233011dc9524c3d5258c69c673385aaf45329c81"},{"path":"comfy/ldm/modules/distributions","mode":"040000","type":"tree","sha":"af6f82c1b67fa9377a66b43ccad0df25b97f44a6","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/af6f82c1b67fa9377a66b43ccad0df25b97f44a6"},{"path":"comfy/ldm/modules/distributions/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/distributions/distributions.py","mode":"100644","type":"blob","sha":"df987c5ec3faaba7da2b02029ad413134bfa08ad","size":2964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/df987c5ec3faaba7da2b02029ad413134bfa08ad"},{"path":"comfy/ldm/modules/ema.py","mode":"100644","type":"blob","sha":"bded25019b9bcbcd0260f0b8185f8c7859ca58c4","size":3110,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bded25019b9bcbcd0260f0b8185f8c7859ca58c4"},{"path":"comfy/ldm/modules/encoders","mode":"040000","type":"tree","sha":"2528be94f31d1dc6160c572dbe8885538645e054","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2528be94f31d1dc6160c572dbe8885538645e054"},{"path":"comfy/ldm/modules/encoders/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/encoders/noise_aug_modules.py","mode":"100644","type":"blob","sha":"a5d8660301636fde75808cba50afa539cf1162e0","size":1548,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a5d8660301636fde75808cba50afa539cf1162e0"},{"path":"comfy/ldm/modules/sub_quadratic_attention.py","mode":"100644","type":"blob","sha":"fab145f1c208930f1d5bd385325e4e844b959aca","size":9560,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fab145f1c208930f1d5bd385325e4e844b959aca"},{"path":"comfy/ldm/modules/temporal_ae.py","mode":"100644","type":"blob","sha":"e0f78bf66b7b06b3f49f5add7a8a502384a9f445","size":7945,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e0f78bf66b7b06b3f49f5add7a8a502384a9f445"},{"path":"comfy/ldm/omnigen","mode":"040000","type":"tree","sha":"524e1ae76941c02efc15def5294a23080d3d57a9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/524e1ae76941c02efc15def5294a23080d3d57a9"},{"path":"comfy/ldm/omnigen/omnigen2.py","mode":"100644","type":"blob","sha":"4884449f85ff9ca0565ba677bbb22f4f4d55f1d0","size":22819,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4884449f85ff9ca0565ba677bbb22f4f4d55f1d0"},{"path":"comfy/ldm/pixart","mode":"040000","type":"tree","sha":"2b12b1910a5d1d77d14ad31ddd97055b203f953d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2b12b1910a5d1d77d14ad31ddd97055b203f953d"},{"path":"comfy/ldm/pixart/blocks.py","mode":"100644","type":"blob","sha":"2225076e5754d08cd618014469c2464bad055334","size":16840,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2225076e5754d08cd618014469c2464bad055334"},{"path":"comfy/ldm/pixart/pixartms.py","mode":"100644","type":"blob","sha":"d1ac49d84c554f1531427dea251dd6d2ea3e0dc7","size":10402,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d1ac49d84c554f1531427dea251dd6d2ea3e0dc7"},{"path":"comfy/ldm/qwen_image","mode":"040000","type":"tree","sha":"c9ae2b5c1c866dd13acb63ad1359d9d8a359d255","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c9ae2b5c1c866dd13acb63ad1359d9d8a359d255"},{"path":"comfy/ldm/qwen_image/model.py","mode":"100644","type":"blob","sha":"c15ab8e40117968dcb3b8f57d2d50c0f2117189a","size":16765,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c15ab8e40117968dcb3b8f57d2d50c0f2117189a"},{"path":"comfy/ldm/util.py","mode":"100644","type":"blob","sha":"30b4b4721056216ee817e7d54d0bca9e09b79098","size":7232,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/30b4b4721056216ee817e7d54d0bca9e09b79098"},{"path":"comfy/ldm/wan","mode":"040000","type":"tree","sha":"cd42b05d66ff1596c0580fc797df974ff794507b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cd42b05d66ff1596c0580fc797df974ff794507b"},{"path":"comfy/ldm/wan/model.py","mode":"100644","type":"blob","sha":"4e2d995664f1301651ce40c06f9ab149c8971871","size":34804,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e2d995664f1301651ce40c06f9ab149c8971871"},{"path":"comfy/ldm/wan/vae.py","mode":"100644","type":"blob","sha":"791596938a26cf525e2e0513ca47ad217619c2e4","size":18762,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/791596938a26cf525e2e0513ca47ad217619c2e4"},{"path":"comfy/ldm/wan/vae2_2.py","mode":"100644","type":"blob","sha":"1f6d584a22f3a888e290f233934f214f4a36fc55","size":22980,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1f6d584a22f3a888e290f233934f214f4a36fc55"},{"path":"comfy/lora.py","mode":"100644","type":"blob","sha":"00358884bed47d971f67860dfb1faa320d98495a","size":18847,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00358884bed47d971f67860dfb1faa320d98495a"},{"path":"comfy/lora_convert.py","mode":"100644","type":"blob","sha":"3e00b63db94969e813b4a9244dce2b1c9d046a8d","size":846,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3e00b63db94969e813b4a9244dce2b1c9d046a8d"},{"path":"comfy/model_base.py","mode":"100644","type":"blob","sha":"cde61df7c9255fdd5715c3c3bdf7a23a2a82926f","size":60143,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cde61df7c9255fdd5715c3c3bdf7a23a2a82926f"},{"path":"comfy/model_detection.py","mode":"100644","type":"blob","sha":"8acc51e20e187bfea1918ff2b3d25c7ecf8b2c59","size":49787,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8acc51e20e187bfea1918ff2b3d25c7ecf8b2c59"},{"path":"comfy/model_management.py","mode":"100644","type":"blob","sha":"c08f759e525feaec16eb7dbe4c0f9d20f0876b80","size":44822,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c08f759e525feaec16eb7dbe4c0f9d20f0876b80"},{"path":"comfy/model_patcher.py","mode":"100644","type":"blob","sha":"52e76b5f3b999a951818162222c4f6d8647fd955","size":52157,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/52e76b5f3b999a951818162222c4f6d8647fd955"},{"path":"comfy/model_sampling.py","mode":"100644","type":"blob","sha":"b240b7f291905c90d40718565a3fdecbf85cabb3","size":13540,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b240b7f291905c90d40718565a3fdecbf85cabb3"},{"path":"comfy/ops.py","mode":"100644","type":"blob","sha":"2cc9bbc27e76d1fe016a4150cc3e66471547b987","size":17573,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2cc9bbc27e76d1fe016a4150cc3e66471547b987"},{"path":"comfy/options.py","mode":"100644","type":"blob","sha":"f7f8af41ebd8b9669ef0ef21827ea6195bcb4752","size":111,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7f8af41ebd8b9669ef0ef21827ea6195bcb4752"},{"path":"comfy/patcher_extension.py","mode":"100644","type":"blob","sha":"965958f4c994a3c656c1fe695f1c3ba55c6c0389","size":6775,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/965958f4c994a3c656c1fe695f1c3ba55c6c0389"},{"path":"comfy/rmsnorm.py","mode":"100644","type":"blob","sha":"66ae8321d9fe21274c27f7233b41db81d334505c","size":1905,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/66ae8321d9fe21274c27f7233b41db81d334505c"},{"path":"comfy/sample.py","mode":"100644","type":"blob","sha":"be5a7e246fdf6168cd74d1bb1b550c6852a83212","size":3221,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be5a7e246fdf6168cd74d1bb1b550c6852a83212"},{"path":"comfy/sampler_helpers.py","mode":"100644","type":"blob","sha":"8dbc41455cfdbedaee86ce5f4f90f1e34d6fa89c","size":7621,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8dbc41455cfdbedaee86ce5f4f90f1e34d6fa89c"},{"path":"comfy/samplers.py","mode":"100644","type":"blob","sha":"ad2f40cdcd37f6f14c6fcc8e56cd7b2804fb362b","size":47606,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ad2f40cdcd37f6f14c6fcc8e56cd7b2804fb362b"},{"path":"comfy/sd.py","mode":"100644","type":"blob","sha":"bb5d61fb33413c26e8a0adde05b36c3fc4439937","size":66173,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb5d61fb33413c26e8a0adde05b36c3fc4439937"},{"path":"comfy/sd1_clip.py","mode":"100644","type":"blob","sha":"ade340fd190106e5bf388a5ac35b6e68c1e52292","size":27286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ade340fd190106e5bf388a5ac35b6e68c1e52292"},{"path":"comfy/sd1_clip_config.json","mode":"100644","type":"blob","sha":"3ba8c6b5bc3d6389fb6c9e2c8231729ad9d663a4","size":616,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ba8c6b5bc3d6389fb6c9e2c8231729ad9d663a4"},{"path":"comfy/sd1_tokenizer","mode":"040000","type":"tree","sha":"19aba8a796f3f91a6066a6535be7ae7309ef8280","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/19aba8a796f3f91a6066a6535be7ae7309ef8280"},{"path":"comfy/sd1_tokenizer/merges.txt","mode":"100644","type":"blob","sha":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/76e821f1b6f0a9709293c3b6b51ed90980b3166b"},{"path":"comfy/sd1_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"2c2130b544c0c5a72d5d00da071ba130a9800fb2","size":472,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2c2130b544c0c5a72d5d00da071ba130a9800fb2"},{"path":"comfy/sd1_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"8f7b3151d008bdee5739e317b887be0fc3b805c3","size":808,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8f7b3151d008bdee5739e317b887be0fc3b805c3"},{"path":"comfy/sd1_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/469be27c5c010538f845f518c4f5e8574c78f7c8"},{"path":"comfy/sdxl_clip.py","mode":"100644","type":"blob","sha":"c8cef14e4d6f81eb8ec8f4b8825c8afaa1d5caf3","size":5133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c8cef14e4d6f81eb8ec8f4b8825c8afaa1d5caf3"},{"path":"comfy/supported_models.py","mode":"100644","type":"blob","sha":"156ff9e263bba0e5d2e9ca61e069c12a92edd72b","size":42392,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/156ff9e263bba0e5d2e9ca61e069c12a92edd72b"},{"path":"comfy/supported_models_base.py","mode":"100644","type":"blob","sha":"54573abb110d8cc5e190ecefa0f9aecf95da0b99","size":4304,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/54573abb110d8cc5e190ecefa0f9aecf95da0b99"},{"path":"comfy/t2i_adapter","mode":"040000","type":"tree","sha":"1db117fc44c0a5ea038917accdc639a51f82d446","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1db117fc44c0a5ea038917accdc639a51f82d446"},{"path":"comfy/t2i_adapter/adapter.py","mode":"100644","type":"blob","sha":"10ea18e326693f237b3b219970c86e3808f6d334","size":10054,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/10ea18e326693f237b3b219970c86e3808f6d334"},{"path":"comfy/taesd","mode":"040000","type":"tree","sha":"75b9edddc6d38645e90d41359c822911a2c02b40","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/75b9edddc6d38645e90d41359c822911a2c02b40"},{"path":"comfy/taesd/taesd.py","mode":"100644","type":"blob","sha":"ce36f1a84dae599a35e84a8da3462408c0f0ccc6","size":3143,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce36f1a84dae599a35e84a8da3462408c0f0ccc6"},{"path":"comfy/text_encoders","mode":"040000","type":"tree","sha":"7cda5f4026cbccc132289925ead0901ec5cae6a7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7cda5f4026cbccc132289925ead0901ec5cae6a7"},{"path":"comfy/text_encoders/ace.py","mode":"100644","type":"blob","sha":"d650bb10d5d5bfdd485f18095e4a99ed7b06b6b7","size":6323,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d650bb10d5d5bfdd485f18095e4a99ed7b06b6b7"},{"path":"comfy/text_encoders/ace_lyrics_tokenizer","mode":"040000","type":"tree","sha":"de2daa82e47187bae78324e154ee90c263896e3e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/de2daa82e47187bae78324e154ee90c263896e3e"},{"path":"comfy/text_encoders/ace_lyrics_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"519ed340c36e19dfe15ccffd7aa5a31a261d70a5","size":364005,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/519ed340c36e19dfe15ccffd7aa5a31a261d70a5"},{"path":"comfy/text_encoders/ace_text_cleaners.py","mode":"100644","type":"blob","sha":"cd31d8d8cdffcda51cc26405c3f6f2bcee410d48","size":13349,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd31d8d8cdffcda51cc26405c3f6f2bcee410d48"},{"path":"comfy/text_encoders/aura_t5.py","mode":"100644","type":"blob","sha":"cf4252eea3ad6ed02e0a8ee4c13385c78909cbd8","size":1694,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cf4252eea3ad6ed02e0a8ee4c13385c78909cbd8"},{"path":"comfy/text_encoders/bert.py","mode":"100644","type":"blob","sha":"551b031626911717d237f85e48ec9b1d74a6baa9","size":6805,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/551b031626911717d237f85e48ec9b1d74a6baa9"},{"path":"comfy/text_encoders/cosmos.py","mode":"100644","type":"blob","sha":"a1adb5242bc9d625bbb32b9d55ca426a0f61e419","size":2498,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1adb5242bc9d625bbb32b9d55ca426a0f61e419"},{"path":"comfy/text_encoders/flux.py","mode":"100644","type":"blob","sha":"d61ef66689b32e52d15e962d41793a489aa44eab","size":3299,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d61ef66689b32e52d15e962d41793a489aa44eab"},{"path":"comfy/text_encoders/genmo.py","mode":"100644","type":"blob","sha":"9dcf190a232550c9e678e819c88092a5bc518058","size":1831,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9dcf190a232550c9e678e819c88092a5bc518058"},{"path":"comfy/text_encoders/hidream.py","mode":"100644","type":"blob","sha":"dbcf52784d63b6fc07c289d1e4e27a9fd7376b4c","size":7076,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dbcf52784d63b6fc07c289d1e4e27a9fd7376b4c"},{"path":"comfy/text_encoders/hunyuan_video.py","mode":"100644","type":"blob","sha":"b02148b3346db8463b471d83542a59071f7d15e4","size":8274,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b02148b3346db8463b471d83542a59071f7d15e4"},{"path":"comfy/text_encoders/hydit.py","mode":"100644","type":"blob","sha":"ac6994529acd8493e6ec65a975f8984fd06749e8","size":4696,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac6994529acd8493e6ec65a975f8984fd06749e8"},{"path":"comfy/text_encoders/hydit_clip.json","mode":"100644","type":"blob","sha":"c41c7c1ff376407f42e3ff20ab26faaa98bb5e65","size":897,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c41c7c1ff376407f42e3ff20ab26faaa98bb5e65"},{"path":"comfy/text_encoders/hydit_clip_tokenizer","mode":"040000","type":"tree","sha":"5ac3bf99c88cf11e8dc3828c1dbdd20274d6fc75","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5ac3bf99c88cf11e8dc3828c1dbdd20274d6fc75"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"a8b3208c2884c4efb86e49300fdd3dc877220cdf","size":125,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a8b3208c2884c4efb86e49300fdd3dc877220cdf"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"a14356073e11a885074a7cdbddc749463cefd911","size":559,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a14356073e11a885074a7cdbddc749463cefd911"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/vocab.txt","mode":"100644","type":"blob","sha":"6246906805d02aca01714c71e4c8d77b69a7a131","size":316627,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6246906805d02aca01714c71e4c8d77b69a7a131"},{"path":"comfy/text_encoders/llama.py","mode":"100644","type":"blob","sha":"1da6a0c948b62519042911320fb0f8f6735d3f8f","size":14386,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1da6a0c948b62519042911320fb0f8f6735d3f8f"},{"path":"comfy/text_encoders/llama_tokenizer","mode":"040000","type":"tree","sha":"596b408d4b6bd3760a9e0435a821fdbbc967110a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/596b408d4b6bd3760a9e0435a821fdbbc967110a"},{"path":"comfy/text_encoders/llama_tokenizer/tokenizer.json","mode":"100644","type":"blob","sha":"99f23954b4bade407d4f3a18892f21f80b412d68","size":9085835,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/99f23954b4bade407d4f3a18892f21f80b412d68"},{"path":"comfy/text_encoders/llama_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"0b336f5a5199c43e7305481f4e9e26e292b2f0fc","size":51699,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0b336f5a5199c43e7305481f4e9e26e292b2f0fc"},{"path":"comfy/text_encoders/long_clipl.py","mode":"100644","type":"blob","sha":"8d4c7619d4b2007462cf14721bcdae093a5b4a7b","size":1085,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8d4c7619d4b2007462cf14721bcdae093a5b4a7b"},{"path":"comfy/text_encoders/lt.py","mode":"100644","type":"blob","sha":"48ea67e6782388637dbe55b3e6366cda051ec519","size":986,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/48ea67e6782388637dbe55b3e6366cda051ec519"},{"path":"comfy/text_encoders/lumina2.py","mode":"100644","type":"blob","sha":"674461b75077ac21d92667d96a6787b1277367fe","size":2230,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/674461b75077ac21d92667d96a6787b1277367fe"},{"path":"comfy/text_encoders/mt5_config_xl.json","mode":"100644","type":"blob","sha":"092fefd6e32dac566e443fc03eae53f6a8b57400","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/092fefd6e32dac566e443fc03eae53f6a8b57400"},{"path":"comfy/text_encoders/omnigen2.py","mode":"100644","type":"blob","sha":"1a01b2dd430461a20af92b75e9a1930b8d153fea","size":2726,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1a01b2dd430461a20af92b75e9a1930b8d153fea"},{"path":"comfy/text_encoders/pixart_t5.py","mode":"100644","type":"blob","sha":"5f383de076fad52fb934c9747b3f95ff453d8e6a","size":2148,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5f383de076fad52fb934c9747b3f95ff453d8e6a"},{"path":"comfy/text_encoders/qwen25_tokenizer","mode":"040000","type":"tree","sha":"a5539422e5625c46fd7bf81d1a4391057d8343d1","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a5539422e5625c46fd7bf81d1a4391057d8343d1"},{"path":"comfy/text_encoders/qwen25_tokenizer/merges.txt","mode":"100644","type":"blob","sha":"31349551d90c7606f325fe0f11bbb8bd5fa0d7c7","size":1671853,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31349551d90c7606f325fe0f11bbb8bd5fa0d7c7"},{"path":"comfy/text_encoders/qwen25_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"67688e82ccf6bf5b0fa2d95130fb8564acce6398","size":8008,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/67688e82ccf6bf5b0fa2d95130fb8564acce6398"},{"path":"comfy/text_encoders/qwen25_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"4783fe10ac3adce15ac8f358ef5462739852c569","size":2776833,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4783fe10ac3adce15ac8f358ef5462739852c569"},{"path":"comfy/text_encoders/qwen_image.py","mode":"100644","type":"blob","sha":"ce5c9809731cc9d3a9b0460eb0f651dfa5afd50e","size":3890,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce5c9809731cc9d3a9b0460eb0f651dfa5afd50e"},{"path":"comfy/text_encoders/sa_t5.py","mode":"100644","type":"blob","sha":"2803926ac01867edc686c4ca6625a5c5aba32e0b","size":1625,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2803926ac01867edc686c4ca6625a5c5aba32e0b"},{"path":"comfy/text_encoders/sd2_clip.py","mode":"100644","type":"blob","sha":"700a23bf09f03f09290f677092bd25f29d6f065a","size":1521,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/700a23bf09f03f09290f677092bd25f29d6f065a"},{"path":"comfy/text_encoders/sd2_clip_config.json","mode":"100644","type":"blob","sha":"00893cfdc9b00f8eb7cf5aaa9c343e7fcd298d82","size":524,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00893cfdc9b00f8eb7cf5aaa9c343e7fcd298d82"},{"path":"comfy/text_encoders/sd3_clip.py","mode":"100644","type":"blob","sha":"ff5d412db1481fee09cf7742b9e32e90f6ed74d9","size":7822,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ff5d412db1481fee09cf7742b9e32e90f6ed74d9"},{"path":"comfy/text_encoders/spiece_tokenizer.py","mode":"100644","type":"blob","sha":"caccb3ca283b3f129f942ebfc9e5c274a71d9f3d","size":1253,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/caccb3ca283b3f129f942ebfc9e5c274a71d9f3d"},{"path":"comfy/text_encoders/t5.py","mode":"100644","type":"blob","sha":"36bf353095b6d9756f694cb6dd2172e5e5dbfcbd","size":12649,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/36bf353095b6d9756f694cb6dd2172e5e5dbfcbd"},{"path":"comfy/text_encoders/t5_config_base.json","mode":"100644","type":"blob","sha":"71f68327c27280ce150d0c8e92fd61eca0b52a63","size":495,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/71f68327c27280ce150d0c8e92fd61eca0b52a63"},{"path":"comfy/text_encoders/t5_config_xxl.json","mode":"100644","type":"blob","sha":"28283b51a11bed6a874499f82d411c16cc646eb1","size":509,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28283b51a11bed6a874499f82d411c16cc646eb1"},{"path":"comfy/text_encoders/t5_old_config_xxl.json","mode":"100644","type":"blob","sha":"c9fdd7782197ca0523ee82133e9b417fa947a5c5","size":499,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c9fdd7782197ca0523ee82133e9b417fa947a5c5"},{"path":"comfy/text_encoders/t5_pile_config_xl.json","mode":"100644","type":"blob","sha":"ee4e03f97a5b3a9927fc676816f210a364ee234b","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ee4e03f97a5b3a9927fc676816f210a364ee234b"},{"path":"comfy/text_encoders/t5_pile_tokenizer","mode":"040000","type":"tree","sha":"61d0722255e8ddcd4d58ab8c74d50a93e231d3fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/61d0722255e8ddcd4d58ab8c74d50a93e231d3fc"},{"path":"comfy/text_encoders/t5_pile_tokenizer/tokenizer.model","mode":"100644","type":"blob","sha":"22bccbcb41ec929cf0c9dbe8f41036db82e5e773","size":499723,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22bccbcb41ec929cf0c9dbe8f41036db82e5e773"},{"path":"comfy/text_encoders/t5_tokenizer","mode":"040000","type":"tree","sha":"7c69c468f1168f85f33f22ae21f7bc6eb990eeae","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7c69c468f1168f85f33f22ae21f7bc6eb990eeae"},{"path":"comfy/text_encoders/t5_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"17ade346a1042cbe0c1436f5bedcbd85c099d582","size":2543,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/17ade346a1042cbe0c1436f5bedcbd85c099d582"},{"path":"comfy/text_encoders/t5_tokenizer/tokenizer.json","mode":"100644","type":"blob","sha":"b11c92d7184d265f0dc857ec5d676aa81aa16262","size":2424256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b11c92d7184d265f0dc857ec5d676aa81aa16262"},{"path":"comfy/text_encoders/t5_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"02020eb6d20746871e1ea93f14c4475cf9368f98","size":20790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/02020eb6d20746871e1ea93f14c4475cf9368f98"},{"path":"comfy/text_encoders/umt5_config_base.json","mode":"100644","type":"blob","sha":"6b3618f075eb4503d0666bd50f2259cc34b653c4","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6b3618f075eb4503d0666bd50f2259cc34b653c4"},{"path":"comfy/text_encoders/umt5_config_xxl.json","mode":"100644","type":"blob","sha":"dfcb4b54bc95469e7b519aed847bb1efb034bdc1","size":512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dfcb4b54bc95469e7b519aed847bb1efb034bdc1"},{"path":"comfy/text_encoders/wan.py","mode":"100644","type":"blob","sha":"d50fa4b28df39ab358ae19bd9745b702985ba74d","size":2235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d50fa4b28df39ab358ae19bd9745b702985ba74d"},{"path":"comfy/utils.py","mode":"100644","type":"blob","sha":"fab28cf088c0049de71527268d0bb4dadc9cfe7e","size":47688,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fab28cf088c0049de71527268d0bb4dadc9cfe7e"},{"path":"comfy/weight_adapter","mode":"040000","type":"tree","sha":"365658d2b8c126f96e8afb96aeaed825fb6bfce0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/365658d2b8c126f96e8afb96aeaed825fb6bfce0"},{"path":"comfy/weight_adapter/__init__.py","mode":"100644","type":"blob","sha":"b40f920e400fc895443d4016076d1ded406ae258","size":786,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b40f920e400fc895443d4016076d1ded406ae258"},{"path":"comfy/weight_adapter/base.py","mode":"100644","type":"blob","sha":"43644b106b0f647b4534af45f0273c38c7ed319b","size":5727,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/43644b106b0f647b4534af45f0273c38c7ed319b"},{"path":"comfy/weight_adapter/boft.py","mode":"100644","type":"blob","sha":"b2a2f1bd46bed5b177f9c583e8d329dc167af1c3","size":3706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b2a2f1bd46bed5b177f9c583e8d329dc167af1c3"},{"path":"comfy/weight_adapter/glora.py","mode":"100644","type":"blob","sha":"939abbba584549b049da0073b4336efab05e1b65","size":3476,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/939abbba584549b049da0073b4336efab05e1b65"},{"path":"comfy/weight_adapter/loha.py","mode":"100644","type":"blob","sha":"55c97a3af0185029e03a68bb9a722d571051b407","size":8815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/55c97a3af0185029e03a68bb9a722d571051b407"},{"path":"comfy/weight_adapter/lokr.py","mode":"100644","type":"blob","sha":"49b0be55f2b1c19099d57f05835c06b7111916cb","size":7605,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/49b0be55f2b1c19099d57f05835c06b7111916cb"},{"path":"comfy/weight_adapter/lora.py","mode":"100644","type":"blob","sha":"47aa17d13403af76d436cccc2d0531695b402c30","size":7206,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/47aa17d13403af76d436cccc2d0531695b402c30"},{"path":"comfy/weight_adapter/oft.py","mode":"100644","type":"blob","sha":"9d498208327f2d25b6cac3e6cb7c272c1bea91a1","size":5430,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d498208327f2d25b6cac3e6cb7c272c1bea91a1"},{"path":"comfy_api","mode":"040000","type":"tree","sha":"ab4f7158c8539d4659b54b3f680dcb405b434f44","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ab4f7158c8539d4659b54b3f680dcb405b434f44"},{"path":"comfy_api/feature_flags.py","mode":"100644","type":"blob","sha":"0d4389a6e9e731a8b9e0f994584ab494981eacbc","size":1820,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d4389a6e9e731a8b9e0f994584ab494981eacbc"},{"path":"comfy_api/generate_api_stubs.py","mode":"100644","type":"blob","sha":"604a7eced8a5a408e77c75a7889f9c25fe3771d4","size":2869,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/604a7eced8a5a408e77c75a7889f9c25fe3771d4"},{"path":"comfy_api/input","mode":"040000","type":"tree","sha":"2b458ee4c4d934681ccfe5a8b54749ab6d390e06","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2b458ee4c4d934681ccfe5a8b54749ab6d390e06"},{"path":"comfy_api/input/__init__.py","mode":"100644","type":"blob","sha":"68ff782706e8ab4f8d40917f8ff5b8aea54c7f51","size":278,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68ff782706e8ab4f8d40917f8ff5b8aea54c7f51"},{"path":"comfy_api/input/basic_types.py","mode":"100644","type":"blob","sha":"5eadce86ac4462c7fd825e1171afa6b315a6be38","size":256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5eadce86ac4462c7fd825e1171afa6b315a6be38"},{"path":"comfy_api/input/video_types.py","mode":"100644","type":"blob","sha":"9ace78cbc039eb0de063ea1ec080134a2b44cac6","size":145,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9ace78cbc039eb0de063ea1ec080134a2b44cac6"},{"path":"comfy_api/input_impl","mode":"040000","type":"tree","sha":"9afa512bfd92c7ea607c717106cd6af72967e30d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9afa512bfd92c7ea607c717106cd6af72967e30d"},{"path":"comfy_api/input_impl/__init__.py","mode":"100644","type":"blob","sha":"b78ff0c08fbe31f073a38c580f4648eebcc47db3","size":192,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b78ff0c08fbe31f073a38c580f4648eebcc47db3"},{"path":"comfy_api/input_impl/video_types.py","mode":"100644","type":"blob","sha":"bd2e56ad51a2fa2340e63409b9038de463af3b2d","size":122,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bd2e56ad51a2fa2340e63409b9038de463af3b2d"},{"path":"comfy_api/internal","mode":"040000","type":"tree","sha":"a48cf623c0d9a64dedf49c75eebfc62811d9f04e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a48cf623c0d9a64dedf49c75eebfc62811d9f04e"},{"path":"comfy_api/internal/__init__.py","mode":"100644","type":"blob","sha":"4ca02e320bcb06ad7f6a8a7c8bd63f6efc18ea98","size":4913,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ca02e320bcb06ad7f6a8a7c8bd63f6efc18ea98"},{"path":"comfy_api/internal/api_registry.py","mode":"100644","type":"blob","sha":"7e3375cf60f8c27aed2774fcd58da4597516f1b7","size":1073,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e3375cf60f8c27aed2774fcd58da4597516f1b7"},{"path":"comfy_api/internal/async_to_sync.py","mode":"100644","type":"blob","sha":"f5f805a6215697a499f2bf48656e8cc10b4a2560","size":39747,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f5f805a6215697a499f2bf48656e8cc10b4a2560"},{"path":"comfy_api/internal/singleton.py","mode":"100644","type":"blob","sha":"75f16f98ed7aab3378f55e749b69e806392d5bd7","size":1122,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/75f16f98ed7aab3378f55e749b69e806392d5bd7"},{"path":"comfy_api/latest","mode":"040000","type":"tree","sha":"20fd014ee1f56b69eed501fd79036b07d99a753b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/20fd014ee1f56b69eed501fd79036b07d99a753b"},{"path":"comfy_api/latest/__init__.py","mode":"100644","type":"blob","sha":"2cee65aa9fb2bb845a9caa2e4fe666924c082b7f","size":4564,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2cee65aa9fb2bb845a9caa2e4fe666924c082b7f"},{"path":"comfy_api/latest/_input","mode":"040000","type":"tree","sha":"136dcb42458a73db48cddc81f965342d877775db","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/136dcb42458a73db48cddc81f965342d877775db"},{"path":"comfy_api/latest/_input/__init__.py","mode":"100644","type":"blob","sha":"14f0e72f46bfb079e85a1c0e56993b5a99425ffe","size":213,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14f0e72f46bfb079e85a1c0e56993b5a99425ffe"},{"path":"comfy_api/latest/_input/basic_types.py","mode":"100644","type":"blob","sha":"245c6cbb1e775cf3b0d5369ca2f954ab6ca504b3","size":930,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/245c6cbb1e775cf3b0d5369ca2f954ab6ca504b3"},{"path":"comfy_api/latest/_input/video_types.py","mode":"100644","type":"blob","sha":"5d95dc507f80bd83c424db88895ae26738f1c05c","size":2570,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5d95dc507f80bd83c424db88895ae26738f1c05c"},{"path":"comfy_api/latest/_input_impl","mode":"040000","type":"tree","sha":"0db1fcd405be184a5ca02e45aab7aa4c14be4c48","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0db1fcd405be184a5ca02e45aab7aa4c14be4c48"},{"path":"comfy_api/latest/_input_impl/__init__.py","mode":"100644","type":"blob","sha":"02901b8b933caa569cd9dd45eb8e39e7c66e43a1","size":145,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/02901b8b933caa569cd9dd45eb8e39e7c66e43a1"},{"path":"comfy_api/latest/_input_impl/video_types.py","mode":"100644","type":"blob","sha":"28de9651dfd77456fad1c7b652f02b8c75728473","size":13454,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28de9651dfd77456fad1c7b652f02b8c75728473"},{"path":"comfy_api/latest/_io.py","mode":"100644","type":"blob","sha":"ec1efb51d1a4f20285b0d143a24eb2271790c650","size":60570,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ec1efb51d1a4f20285b0d143a24eb2271790c650"},{"path":"comfy_api/latest/_resources.py","mode":"100644","type":"blob","sha":"a6bdda97204ef1079a679bc6fe5ed49f05b683f6","size":2385,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a6bdda97204ef1079a679bc6fe5ed49f05b683f6"},{"path":"comfy_api/latest/_ui.py","mode":"100644","type":"blob","sha":"26a55615f8c947f2b6e797a8ab6fd6683103bf70","size":17399,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/26a55615f8c947f2b6e797a8ab6fd6683103bf70"},{"path":"comfy_api/latest/_util","mode":"040000","type":"tree","sha":"bcbd12463fff2b3ff9f5fc0bff25051d6cfdc49d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bcbd12463fff2b3ff9f5fc0bff25051d6cfdc49d"},{"path":"comfy_api/latest/_util/__init__.py","mode":"100644","type":"blob","sha":"9019c46dbbcd58a7024301d3bc1bd53570a83bc0","size":167,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9019c46dbbcd58a7024301d3bc1bd53570a83bc0"},{"path":"comfy_api/latest/_util/video_types.py","mode":"100644","type":"blob","sha":"c3e3d8e3a5bb25cdfe51309f0b9fdb9a55d97eb6","size":1289,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3e3d8e3a5bb25cdfe51309f0b9fdb9a55d97eb6"},{"path":"comfy_api/latest/generated","mode":"040000","type":"tree","sha":"e0c3dd2e08fbe10ac79d5415676d6249f166dbc2","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e0c3dd2e08fbe10ac79d5415676d6249f166dbc2"},{"path":"comfy_api/latest/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"525c074dda49d12f5f9eca7bd3b82abe8799c862","size":867,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/525c074dda49d12f5f9eca7bd3b82abe8799c862"},{"path":"comfy_api/torch_helpers","mode":"040000","type":"tree","sha":"efdfdd85f3d561ddbdce9143e08e2b5385759933","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/efdfdd85f3d561ddbdce9143e08e2b5385759933"},{"path":"comfy_api/torch_helpers/__init__.py","mode":"100644","type":"blob","sha":"be7ae7a6165bdeed5013806a7adde1a02c0ac93f","size":101,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be7ae7a6165bdeed5013806a7adde1a02c0ac93f"},{"path":"comfy_api/torch_helpers/torch_compile.py","mode":"100644","type":"blob","sha":"9223f58db22415897cbf3d6239511d289f5e1091","size":2800,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9223f58db22415897cbf3d6239511d289f5e1091"},{"path":"comfy_api/util.py","mode":"100644","type":"blob","sha":"1aa9606d2e4691657ed3580fc7a1e4a55aaf886c","size":210,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1aa9606d2e4691657ed3580fc7a1e4a55aaf886c"},{"path":"comfy_api/util","mode":"040000","type":"tree","sha":"bc8f4068f0ee1b9d9ec7b697bb0df68a4d7986d7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bc8f4068f0ee1b9d9ec7b697bb0df68a4d7986d7"},{"path":"comfy_api/util/__init__.py","mode":"100644","type":"blob","sha":"4c8a89d1e077d0b331de5506ba69b50a99de2bd2","size":210,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c8a89d1e077d0b331de5506ba69b50a99de2bd2"},{"path":"comfy_api/util/video_types.py","mode":"100644","type":"blob","sha":"68c780d64daffa6fb621821e111330cb388c07e0","size":239,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68c780d64daffa6fb621821e111330cb388c07e0"},{"path":"comfy_api/v0_0_1","mode":"040000","type":"tree","sha":"5670d4c785befc4c48ba8df9d40d6af25968e302","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5670d4c785befc4c48ba8df9d40d6af25968e302"},{"path":"comfy_api/v0_0_1/__init__.py","mode":"100644","type":"blob","sha":"93608771d156017233cadc5af3ba2d52c82f1529","size":977,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93608771d156017233cadc5af3ba2d52c82f1529"},{"path":"comfy_api/v0_0_1/generated","mode":"040000","type":"tree","sha":"74cc9e5b8d9a8e16cc13dddc2d0345a00eba49df","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/74cc9e5b8d9a8e16cc13dddc2d0345a00eba49df"},{"path":"comfy_api/v0_0_1/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"270030324cd155fdadc0f0d5009bca4be948fc0a","size":874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/270030324cd155fdadc0f0d5009bca4be948fc0a"},{"path":"comfy_api/v0_0_2","mode":"040000","type":"tree","sha":"4f12357afbfb2fe1408c409a1d981c39f6101a13","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/4f12357afbfb2fe1408c409a1d981c39f6101a13"},{"path":"comfy_api/v0_0_2/__init__.py","mode":"100644","type":"blob","sha":"de0f95001ba79361ce9f85dff20874351be4e725","size":927,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/de0f95001ba79361ce9f85dff20874351be4e725"},{"path":"comfy_api/v0_0_2/generated","mode":"040000","type":"tree","sha":"c646a6b91593cd4602baba9c77162d179e2445a9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c646a6b91593cd4602baba9c77162d179e2445a9"},{"path":"comfy_api/v0_0_2/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"7fcec685e880e68106a35f6fd8ebf84ea07769e3","size":874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7fcec685e880e68106a35f6fd8ebf84ea07769e3"},{"path":"comfy_api/version_list.py","mode":"100644","type":"blob","sha":"7cb1871d5a1fbce221d100dd63327361343faafe","size":353,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7cb1871d5a1fbce221d100dd63327361343faafe"},{"path":"comfy_api_nodes","mode":"040000","type":"tree","sha":"28594fd549cd99fce0e4f3e1c394913cb763ac1f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/28594fd549cd99fce0e4f3e1c394913cb763ac1f"},{"path":"comfy_api_nodes/README.md","mode":"100644","type":"blob","sha":"f56d6c8606346dc4d6c8d688cc8ca4f52cb5c9cd","size":2836,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f56d6c8606346dc4d6c8d688cc8ca4f52cb5c9cd"},{"path":"comfy_api_nodes/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy_api_nodes/apinode_utils.py","mode":"100644","type":"blob","sha":"f953f86df0de34b2376ba72cc9e0667521645062","size":21821,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f953f86df0de34b2376ba72cc9e0667521645062"},{"path":"comfy_api_nodes/apis","mode":"040000","type":"tree","sha":"8ad629a38dda26a0c5abe00f5f7a225b75011ca6","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8ad629a38dda26a0c5abe00f5f7a225b75011ca6"},{"path":"comfy_api_nodes/apis/PixverseController.py","mode":"100644","type":"blob","sha":"310c0f54655d72a76eb2abe2d843cc47e28bc37a","size":392,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/310c0f54655d72a76eb2abe2d843cc47e28bc37a"},{"path":"comfy_api_nodes/apis/PixverseDto.py","mode":"100644","type":"blob","sha":"323c38e963903e523431fac19f067b88d051e396","size":2000,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/323c38e963903e523431fac19f067b88d051e396"},{"path":"comfy_api_nodes/apis/__init__.py","mode":"100644","type":"blob","sha":"54298e8a98b2f23e98155117f7f6f7b4a31f3d13","size":211830,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/54298e8a98b2f23e98155117f7f6f7b4a31f3d13"},{"path":"comfy_api_nodes/apis/bfl_api.py","mode":"100644","type":"blob","sha":"0e90aef7c6811e2df28a0675563750d35669bf39","size":11208,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0e90aef7c6811e2df28a0675563750d35669bf39"},{"path":"comfy_api_nodes/apis/client.py","mode":"100644","type":"blob","sha":"4ad0b783bc610fd559169ea2056c8a2dbf42b492","size":38221,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ad0b783bc610fd559169ea2056c8a2dbf42b492"},{"path":"comfy_api_nodes/apis/luma_api.py","mode":"100644","type":"blob","sha":"632c4ab9697a8ab2659dc0171890e739788b286d","size":8205,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/632c4ab9697a8ab2659dc0171890e739788b286d"},{"path":"comfy_api_nodes/apis/pixverse_api.py","mode":"100644","type":"blob","sha":"9bb29c3835104784087d99821c85f9ddf6ba218c","size":4206,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9bb29c3835104784087d99821c85f9ddf6ba218c"},{"path":"comfy_api_nodes/apis/recraft_api.py","mode":"100644","type":"blob","sha":"c36d95f24e6ab53f5790b0ac97f71a26087a410f","size":8805,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c36d95f24e6ab53f5790b0ac97f71a26087a410f"},{"path":"comfy_api_nodes/apis/request_logger.py","mode":"100644","type":"blob","sha":"42901e1413dab54fe5fa6454878292009582492c","size":4808,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/42901e1413dab54fe5fa6454878292009582492c"},{"path":"comfy_api_nodes/apis/rodin_api.py","mode":"100644","type":"blob","sha":"b0cf171fa636a0571f2e771732c0cc7f7536835b","size":2026,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b0cf171fa636a0571f2e771732c0cc7f7536835b"},{"path":"comfy_api_nodes/apis/stability_api.py","mode":"100644","type":"blob","sha":"47c87daec1bc3d3f5384855c93ad2c4b929227ff","size":3764,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/47c87daec1bc3d3f5384855c93ad2c4b929227ff"},{"path":"comfy_api_nodes/apis/tripo_api.py","mode":"100644","type":"blob","sha":"9f43d4d0901bb24170f9b628b6aea4d157e21deb","size":13569,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9f43d4d0901bb24170f9b628b6aea4d157e21deb"},{"path":"comfy_api_nodes/canary.py","mode":"100644","type":"blob","sha":"4df7590b64fea8f6f3f77fde912cb2f64fdad357","size":271,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4df7590b64fea8f6f3f77fde912cb2f64fdad357"},{"path":"comfy_api_nodes/mapper_utils.py","mode":"100644","type":"blob","sha":"6fab8f4bbc6ce4495ce41588f2fba8103abeffeb","size":3828,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6fab8f4bbc6ce4495ce41588f2fba8103abeffeb"},{"path":"comfy_api_nodes/nodes_bfl.py","mode":"100644","type":"blob","sha":"c09be8d5bf22d1e70abc344d20ac3cedabf9aa16","size":37668,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c09be8d5bf22d1e70abc344d20ac3cedabf9aa16"},{"path":"comfy_api_nodes/nodes_gemini.py","mode":"100644","type":"blob","sha":"3751fb2a1e2e09e853f81fdf7198dd74d2712dae","size":15728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3751fb2a1e2e09e853f81fdf7198dd74d2712dae"},{"path":"comfy_api_nodes/nodes_ideogram.py","mode":"100644","type":"blob","sha":"db24e6da430c4d62f9972cf58511bbb66515b970","size":25994,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/db24e6da430c4d62f9972cf58511bbb66515b970"},{"path":"comfy_api_nodes/nodes_kling.py","mode":"100644","type":"blob","sha":"9d483bb0e470614e00b2cfa14934ca8a3c27bcb3","size":67128,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d483bb0e470614e00b2cfa14934ca8a3c27bcb3"},{"path":"comfy_api_nodes/nodes_luma.py","mode":"100644","type":"blob","sha":"b3c32bed55c547e981aa5d497d4464e36f78b0d8","size":26336,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b3c32bed55c547e981aa5d497d4464e36f78b0d8"},{"path":"comfy_api_nodes/nodes_minimax.py","mode":"100644","type":"blob","sha":"58d2ed90c45cdf5ad79d06d32502a1ed03de8550","size":11236,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/58d2ed90c45cdf5ad79d06d32502a1ed03de8550"},{"path":"comfy_api_nodes/nodes_moonvalley.py","mode":"100644","type":"blob","sha":"164ca3ea56c72ca297a24b2bcda505d8377cfe9f","size":26767,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/164ca3ea56c72ca297a24b2bcda505d8377cfe9f"},{"path":"comfy_api_nodes/nodes_openai.py","mode":"100644","type":"blob","sha":"ab3c5363bad7177564b3eae1c329e12b22dadd01","size":34285,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab3c5363bad7177564b3eae1c329e12b22dadd01"},{"path":"comfy_api_nodes/nodes_pika.py","mode":"100644","type":"blob","sha":"a8dc43cb3ba2dcb0346696a533601d7edf6a0bd6","size":27035,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a8dc43cb3ba2dcb0346696a533601d7edf6a0bd6"},{"path":"comfy_api_nodes/nodes_pixverse.py","mode":"100644","type":"blob","sha":"7c5a52feb42cde96e9c256f581a5715d1d11ea24","size":18500,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7c5a52feb42cde96e9c256f581a5715d1d11ea24"},{"path":"comfy_api_nodes/nodes_recraft.py","mode":"100644","type":"blob","sha":"c8516b368208455148c00c523eca12e72be14ec3","size":38062,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c8516b368208455148c00c523eca12e72be14ec3"},{"path":"comfy_api_nodes/nodes_rodin.py","mode":"100644","type":"blob","sha":"c89d087e5fd2ab23425c3521a875e22ea0dbab19","size":15886,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c89d087e5fd2ab23425c3521a875e22ea0dbab19"},{"path":"comfy_api_nodes/nodes_runway.py","mode":"100644","type":"blob","sha":"98024a9fa0b8ed7b520ae50f170d3d940c0efac4","size":22532,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/98024a9fa0b8ed7b520ae50f170d3d940c0efac4"},{"path":"comfy_api_nodes/nodes_stability.py","mode":"100644","type":"blob","sha":"31309d831b9d4a36baa447ef90377ab1c7990a82","size":22567,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31309d831b9d4a36baa447ef90377ab1c7990a82"},{"path":"comfy_api_nodes/nodes_tripo.py","mode":"100644","type":"blob","sha":"d08cf9007655f1c6a133d3960f3a139a3e62a1a1","size":22737,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d08cf9007655f1c6a133d3960f3a139a3e62a1a1"},{"path":"comfy_api_nodes/nodes_veo2.py","mode":"100644","type":"blob","sha":"e25dab2f57708884c3f87ddffd2c767fe132389c","size":12951,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e25dab2f57708884c3f87ddffd2c767fe132389c"},{"path":"comfy_api_nodes/redocly-dev.yaml","mode":"100644","type":"blob","sha":"d9e3cab70ff18a924faf3f793a71710846beeae5","size":330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d9e3cab70ff18a924faf3f793a71710846beeae5"},{"path":"comfy_api_nodes/redocly.yaml","mode":"100644","type":"blob","sha":"d102345b1ec932577e310f2e07c4e32017c189d5","size":255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d102345b1ec932577e310f2e07c4e32017c189d5"},{"path":"comfy_api_nodes/util","mode":"040000","type":"tree","sha":"d5b62ed686ef88364cd122f467ef2f2703da5bab","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d5b62ed686ef88364cd122f467ef2f2703da5bab"},{"path":"comfy_api_nodes/util/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy_api_nodes/util/validation_utils.py","mode":"100644","type":"blob","sha":"031b9fbd31b40bb8ebf58243970e529d4e78db95","size":3532,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/031b9fbd31b40bb8ebf58243970e529d4e78db95"},{"path":"comfy_config","mode":"040000","type":"tree","sha":"0ef856f430484cfd2fb39a472d067426fc607341","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0ef856f430484cfd2fb39a472d067426fc607341"},{"path":"comfy_config/config_parser.py","mode":"100644","type":"blob","sha":"8da7bd901f421f3aaa5b620c9595313c30585ae1","size":5781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8da7bd901f421f3aaa5b620c9595313c30585ae1"},{"path":"comfy_config/types.py","mode":"100644","type":"blob","sha":"59448466b2cb6725c622fea1151f51e521d850fc","size":3016,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/59448466b2cb6725c622fea1151f51e521d850fc"},{"path":"comfy_execution","mode":"040000","type":"tree","sha":"5caacb61f9943a36d83eb43fc449524ca8547745","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5caacb61f9943a36d83eb43fc449524ca8547745"},{"path":"comfy_execution/caching.py","mode":"100644","type":"blob","sha":"41224ce3b82e0432ed89523101c2b3c8ef5f8f1a","size":17360,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/41224ce3b82e0432ed89523101c2b3c8ef5f8f1a"},{"path":"comfy_execution/graph.py","mode":"100644","type":"blob","sha":"f4b427265da7c50684dc66bb6f15682b4685bd0d","size":12566,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f4b427265da7c50684dc66bb6f15682b4685bd0d"},{"path":"comfy_execution/graph_utils.py","mode":"100644","type":"blob","sha":"496d2c634982aa5afc8d58b9db758f97b3b5c2d8","size":5626,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/496d2c634982aa5afc8d58b9db758f97b3b5c2d8"},{"path":"comfy_execution/progress.py","mode":"100644","type":"blob","sha":"e8f5ede1ee5b68c50e2af903fd4ba5456c45f7f7","size":11707,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e8f5ede1ee5b68c50e2af903fd4ba5456c45f7f7"},{"path":"comfy_execution/utils.py","mode":"100644","type":"blob","sha":"62d32f1013df633889b59d2207154d1cbbbfe347","size":1529,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/62d32f1013df633889b59d2207154d1cbbbfe347"},{"path":"comfy_execution/validation.py","mode":"100644","type":"blob","sha":"cec105fc9f1bfbecdc17c37cfec9ecf60f188814","size":1558,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cec105fc9f1bfbecdc17c37cfec9ecf60f188814"},{"path":"comfy_extras","mode":"040000","type":"tree","sha":"d16f44a73a538592879a44af21623a02ad24f07a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d16f44a73a538592879a44af21623a02ad24f07a"},{"path":"comfy_extras/chainner_models","mode":"040000","type":"tree","sha":"abf26dd920477463c2e68c7f63839151df973a7c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/abf26dd920477463c2e68c7f63839151df973a7c"},{"path":"comfy_extras/chainner_models/model_loading.py","mode":"100644","type":"blob","sha":"1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c","size":260,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c"},{"path":"comfy_extras/nodes_ace.py","mode":"100644","type":"blob","sha":"cbfec15a2198e542171508704e931021d6df569c","size":1790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cbfec15a2198e542171508704e931021d6df569c"},{"path":"comfy_extras/nodes_advanced_samplers.py","mode":"100644","type":"blob","sha":"5fbb096fbf808e0c6d96159bee024873fb1f4c3e","size":3906,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5fbb096fbf808e0c6d96159bee024873fb1f4c3e"},{"path":"comfy_extras/nodes_align_your_steps.py","mode":"100644","type":"blob","sha":"8d856d0e8592414df823af27d53d421af7753f27","size":2021,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8d856d0e8592414df823af27d53d421af7753f27"},{"path":"comfy_extras/nodes_apg.py","mode":"100644","type":"blob","sha":"25b21b1b8b2b6ecc61911e7c594be59deeab60dc","size":2793,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/25b21b1b8b2b6ecc61911e7c594be59deeab60dc"},{"path":"comfy_extras/nodes_attention_multiply.py","mode":"100644","type":"blob","sha":"4747eb39568afe9e19d34fd583531fcab1acba69","size":5594,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4747eb39568afe9e19d34fd583531fcab1acba69"},{"path":"comfy_extras/nodes_audio.py","mode":"100644","type":"blob","sha":"a90b317795aecc3372e155477d5b990a40156377","size":13148,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a90b317795aecc3372e155477d5b990a40156377"},{"path":"comfy_extras/nodes_camera_trajectory.py","mode":"100644","type":"blob","sha":"5e0e39f914d8ad23eca3b04a433c35decf527546","size":8845,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5e0e39f914d8ad23eca3b04a433c35decf527546"},{"path":"comfy_extras/nodes_canny.py","mode":"100644","type":"blob","sha":"d85e6b85691dcdcc55e31705039934846d466fc1","size":910,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d85e6b85691dcdcc55e31705039934846d466fc1"},{"path":"comfy_extras/nodes_cfg.py","mode":"100644","type":"blob","sha":"5abdc115ab4f9e82ca43151ec8826d234a16b172","size":2432,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5abdc115ab4f9e82ca43151ec8826d234a16b172"},{"path":"comfy_extras/nodes_clip_sdxl.py","mode":"100644","type":"blob","sha":"14269caf352edee45d9f1ca49db3effd5b60b7fb","size":2567,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14269caf352edee45d9f1ca49db3effd5b60b7fb"},{"path":"comfy_extras/nodes_compositing.py","mode":"100644","type":"blob","sha":"2f994fa11d370d31dc5412da90d0582fe6bd6159","size":8322,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2f994fa11d370d31dc5412da90d0582fe6bd6159"},{"path":"comfy_extras/nodes_cond.py","mode":"100644","type":"blob","sha":"58c16f621cd1c5f5abd66dba639ebf5740862789","size":1664,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/58c16f621cd1c5f5abd66dba639ebf5740862789"},{"path":"comfy_extras/nodes_controlnet.py","mode":"100644","type":"blob","sha":"2d20e1fed7c26c8115f4b9878b0b54911e7a2e7f","size":2534,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d20e1fed7c26c8115f4b9878b0b54911e7a2e7f"},{"path":"comfy_extras/nodes_cosmos.py","mode":"100644","type":"blob","sha":"4f49605510e4986f5d030d7bbde14fbf2f7a9c2d","size":6116,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4f49605510e4986f5d030d7bbde14fbf2f7a9c2d"},{"path":"comfy_extras/nodes_custom_sampler.py","mode":"100644","type":"blob","sha":"d011f433b5db84d665dc20349b9b9aa75a703df9","size":35790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d011f433b5db84d665dc20349b9b9aa75a703df9"},{"path":"comfy_extras/nodes_differential_diffusion.py","mode":"100644","type":"blob","sha":"98dbbf102dac861cfb65ed19ad1af499abf7465d","size":1345,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/98dbbf102dac861cfb65ed19ad1af499abf7465d"},{"path":"comfy_extras/nodes_edit_model.py","mode":"100644","type":"blob","sha":"b69f7971591b383774d322b022e3b3b39ec0d704","size":838,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b69f7971591b383774d322b022e3b3b39ec0d704"},{"path":"comfy_extras/nodes_flux.py","mode":"100644","type":"blob","sha":"8a8a1769801c046c8001d1f3f7ad913794997147","size":3078,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8a8a1769801c046c8001d1f3f7ad913794997147"},{"path":"comfy_extras/nodes_freelunch.py","mode":"100644","type":"blob","sha":"e3ac58447b29f604debb5bfc0aed3a5f100a4ae9","size":4891,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e3ac58447b29f604debb5bfc0aed3a5f100a4ae9"},{"path":"comfy_extras/nodes_fresca.py","mode":"100644","type":"blob","sha":"65c2d0d0ea3f35b2795ac92a208424078085c5b2","size":3531,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/65c2d0d0ea3f35b2795ac92a208424078085c5b2"},{"path":"comfy_extras/nodes_gits.py","mode":"100644","type":"blob","sha":"47b1dd049702cc481550dd04d2c4edebfdcf7a0e","size":46086,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/47b1dd049702cc481550dd04d2c4edebfdcf7a0e"},{"path":"comfy_extras/nodes_hidream.py","mode":"100644","type":"blob","sha":"dfb98597b8427622360588994c5fc8f75c3e6a1e","size":2355,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dfb98597b8427622360588994c5fc8f75c3e6a1e"},{"path":"comfy_extras/nodes_hooks.py","mode":"100644","type":"blob","sha":"1edc06f3d7ae6b0682b03afe666ef936b16f2f28","size":28661,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1edc06f3d7ae6b0682b03afe666ef936b16f2f28"},{"path":"comfy_extras/nodes_hunyuan.py","mode":"100644","type":"blob","sha":"d7278e7a7d866dcc0519c66f1f5894d8b7344e1c","size":5783,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d7278e7a7d866dcc0519c66f1f5894d8b7344e1c"},{"path":"comfy_extras/nodes_hunyuan3d.py","mode":"100644","type":"blob","sha":"51e45336ad4a450b8f83be1e22f0033ad3cd4433","size":20279,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/51e45336ad4a450b8f83be1e22f0033ad3cd4433"},{"path":"comfy_extras/nodes_hypernetwork.py","mode":"100644","type":"blob","sha":"665632292782e00fff4d73fa085e9c397a9bec4f","size":4593,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/665632292782e00fff4d73fa085e9c397a9bec4f"},{"path":"comfy_extras/nodes_hypertile.py","mode":"100644","type":"blob","sha":"b366117c7bd811ec98f2464eef4b4cc3e8d86f1b","size":2995,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b366117c7bd811ec98f2464eef4b4cc3e8d86f1b"},{"path":"comfy_extras/nodes_images.py","mode":"100644","type":"blob","sha":"fba80e2aeafe88a6f3d68c1d0715312b34f25b7f","size":23249,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fba80e2aeafe88a6f3d68c1d0715312b34f25b7f"},{"path":"comfy_extras/nodes_ip2p.py","mode":"100644","type":"blob","sha":"c2e70a84c10ca5cc1b3ca853a97adc3c64fbb315","size":1465,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c2e70a84c10ca5cc1b3ca853a97adc3c64fbb315"},{"path":"comfy_extras/nodes_latent.py","mode":"100644","type":"blob","sha":"f33ed1beea538ee28871e6fcb04da73ae8d4b91c","size":9223,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f33ed1beea538ee28871e6fcb04da73ae8d4b91c"},{"path":"comfy_extras/nodes_load_3d.py","mode":"100644","type":"blob","sha":"899608149aba1861b9627f22d517dc0feb41d9cc","size":5827,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/899608149aba1861b9627f22d517dc0feb41d9cc"},{"path":"comfy_extras/nodes_lora_extract.py","mode":"100644","type":"blob","sha":"dfd4fe9f4a5c4b7aff37d244fc25033e9a286119","size":4652,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dfd4fe9f4a5c4b7aff37d244fc25033e9a286119"},{"path":"comfy_extras/nodes_lotus.py","mode":"100644","type":"blob","sha":"739dbdd3dd49d1fd007c511e0f6d0da5bb619550","size":33690,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/739dbdd3dd49d1fd007c511e0f6d0da5bb619550"},{"path":"comfy_extras/nodes_lt.py","mode":"100644","type":"blob","sha":"b5058667a726cc4b97bd8e63f4792f1e8eb3dcea","size":18862,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b5058667a726cc4b97bd8e63f4792f1e8eb3dcea"},{"path":"comfy_extras/nodes_lumina2.py","mode":"100644","type":"blob","sha":"275189785dca4dd6a9c56b58e87a0ab93342d9ec","size":4893,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/275189785dca4dd6a9c56b58e87a0ab93342d9ec"},{"path":"comfy_extras/nodes_mahiro.py","mode":"100644","type":"blob","sha":"8fcdfba759f97515e5f64d3a130b0d892005cff2","size":1452,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8fcdfba759f97515e5f64d3a130b0d892005cff2"},{"path":"comfy_extras/nodes_mask.py","mode":"100644","type":"blob","sha":"2b0f8dd5d72b121532ea1c8b595081210fe4779e","size":13995,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2b0f8dd5d72b121532ea1c8b595081210fe4779e"},{"path":"comfy_extras/nodes_mochi.py","mode":"100644","type":"blob","sha":"1c474faa94eac8dc48f778460c0d833bee94dcf9","size":990,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1c474faa94eac8dc48f778460c0d833bee94dcf9"},{"path":"comfy_extras/nodes_model_advanced.py","mode":"100644","type":"blob","sha":"ae5d2c563183262456fd6a9668445b6b798108ac","size":12235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae5d2c563183262456fd6a9668445b6b798108ac"},{"path":"comfy_extras/nodes_model_downscale.py","mode":"100644","type":"blob","sha":"49420dee9260ced4e0d08c196be937354c5e1d4e","size":2549,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/49420dee9260ced4e0d08c196be937354c5e1d4e"},{"path":"comfy_extras/nodes_model_merging.py","mode":"100644","type":"blob","sha":"f20beab7d480391cbd4deb2f855a43c18d19ae33","size":13768,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f20beab7d480391cbd4deb2f855a43c18d19ae33"},{"path":"comfy_extras/nodes_model_merging_model_specific.py","mode":"100644","type":"blob","sha":"55eb3ccfeadd4dd824932503ce244ecedc815f26","size":11580,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/55eb3ccfeadd4dd824932503ce244ecedc815f26"},{"path":"comfy_extras/nodes_morphology.py","mode":"100644","type":"blob","sha":"075b26c4024bccb510b9052f40f51eb88382ab30","size":3042,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/075b26c4024bccb510b9052f40f51eb88382ab30"},{"path":"comfy_extras/nodes_optimalsteps.py","mode":"100644","type":"blob","sha":"e7c851ca211c923f48506fd01f5a643f60dfaf62","size":2070,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e7c851ca211c923f48506fd01f5a643f60dfaf62"},{"path":"comfy_extras/nodes_pag.py","mode":"100644","type":"blob","sha":"eb28196f41c56fd45fda051a42d0814b96558fb8","size":1789,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eb28196f41c56fd45fda051a42d0814b96558fb8"},{"path":"comfy_extras/nodes_perpneg.py","mode":"100644","type":"blob","sha":"89e5eef905ac5a417b850da7c2f5693915117ec5","size":5984,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/89e5eef905ac5a417b850da7c2f5693915117ec5"},{"path":"comfy_extras/nodes_photomaker.py","mode":"100644","type":"blob","sha":"d358ed6d5b75a37f9195e1f0c663a188eb8aedc3","size":7525,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d358ed6d5b75a37f9195e1f0c663a188eb8aedc3"},{"path":"comfy_extras/nodes_pixart.py","mode":"100644","type":"blob","sha":"8d9276afe4b12c51c818a879cce1cd5453895552","size":1017,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8d9276afe4b12c51c818a879cce1cd5453895552"},{"path":"comfy_extras/nodes_post_processing.py","mode":"100644","type":"blob","sha":"cb1a0d88303eef19fff34ce2b19611cfcb162e91","size":10015,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cb1a0d88303eef19fff34ce2b19611cfcb162e91"},{"path":"comfy_extras/nodes_preview_any.py","mode":"100644","type":"blob","sha":"e6805696f302e785f0ea4afe4ca82aa2eeca0495","size":1172,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e6805696f302e785f0ea4afe4ca82aa2eeca0495"},{"path":"comfy_extras/nodes_primitive.py","mode":"100644","type":"blob","sha":"1f93f87a79531b3650981a651d355466db518ede","size":2385,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1f93f87a79531b3650981a651d355466db518ede"},{"path":"comfy_extras/nodes_rebatch.py","mode":"100644","type":"blob","sha":"e29cb9ed10dae329ac2bea313df72f2387bd7ade","size":5195,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e29cb9ed10dae329ac2bea313df72f2387bd7ade"},{"path":"comfy_extras/nodes_sag.py","mode":"100644","type":"blob","sha":"1bd8d7364fdde4bd8ce9b11f342dfce71d3a4214","size":6224,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bd8d7364fdde4bd8ce9b11f342dfce71d3a4214"},{"path":"comfy_extras/nodes_sd3.py","mode":"100644","type":"blob","sha":"d75b29e606feaf1e0eb125bd63f4abe2bc03b2f5","size":5639,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d75b29e606feaf1e0eb125bd63f4abe2bc03b2f5"},{"path":"comfy_extras/nodes_sdupscale.py","mode":"100644","type":"blob","sha":"bba67e8ddff8064a90ec0f8e71e953ca4e56c4c6","size":1720,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bba67e8ddff8064a90ec0f8e71e953ca4e56c4c6"},{"path":"comfy_extras/nodes_slg.py","mode":"100644","type":"blob","sha":"7adff202eb2fcea8b8d3b57e51e24725859d551c","size":6585,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7adff202eb2fcea8b8d3b57e51e24725859d551c"},{"path":"comfy_extras/nodes_stable3d.py","mode":"100644","type":"blob","sha":"be2e34c28f49f160a21703c313305193ed00546f","size":7152,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be2e34c28f49f160a21703c313305193ed00546f"},{"path":"comfy_extras/nodes_stable_cascade.py","mode":"100644","type":"blob","sha":"0034032150e6eac48d18bb6bd35819114a01fe8d","size":4797,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0034032150e6eac48d18bb6bd35819114a01fe8d"},{"path":"comfy_extras/nodes_string.py","mode":"100644","type":"blob","sha":"b1a8ceef0fd25c47b9238749e59e06f20f6d346d","size":10904,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b1a8ceef0fd25c47b9238749e59e06f20f6d346d"},{"path":"comfy_extras/nodes_tcfg.py","mode":"100644","type":"blob","sha":"35b89a73f7fbab0d4ad5e922997a88f3ef04ec7f","size":2432,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35b89a73f7fbab0d4ad5e922997a88f3ef04ec7f"},{"path":"comfy_extras/nodes_tomesd.py","mode":"100644","type":"blob","sha":"9f77c06fcb12a2dafbb891cbceb50ba8addaa81a","size":6602,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9f77c06fcb12a2dafbb891cbceb50ba8addaa81a"},{"path":"comfy_extras/nodes_torch_compile.py","mode":"100644","type":"blob","sha":"6055366784d0d46de863d8278b0bb2979e904d2a","size":609,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6055366784d0d46de863d8278b0bb2979e904d2a"},{"path":"comfy_extras/nodes_train.py","mode":"100644","type":"blob","sha":"c3aaaee9b03ae7f33c99260851d03b396eee4403","size":32976,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3aaaee9b03ae7f33c99260851d03b396eee4403"},{"path":"comfy_extras/nodes_upscale_model.py","mode":"100644","type":"blob","sha":"04c948341296dfa7e385141498973977c17c906a","size":3044,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/04c948341296dfa7e385141498973977c17c906a"},{"path":"comfy_extras/nodes_video.py","mode":"100644","type":"blob","sha":"969f888b933b2d75774e8ef8dc9e6e0f2541d81a","size":8575,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/969f888b933b2d75774e8ef8dc9e6e0f2541d81a"},{"path":"comfy_extras/nodes_video_model.py","mode":"100644","type":"blob","sha":"0f760aa26627f7dcc9e0d4483e05dae1326a4c66","size":7497,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f760aa26627f7dcc9e0d4483e05dae1326a4c66"},{"path":"comfy_extras/nodes_wan.py","mode":"100644","type":"blob","sha":"f80c83ba61807cf43edafe55e166548667ae4796","size":39235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f80c83ba61807cf43edafe55e166548667ae4796"},{"path":"comfy_extras/nodes_webcam.py","mode":"100644","type":"blob","sha":"5bf80b4c6e055f70ed277ec0a9bbbeb180151a3d","size":987,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5bf80b4c6e055f70ed277ec0a9bbbeb180151a3d"},{"path":"comfyui_version.py","mode":"100644","type":"blob","sha":"29ec07ca6b9db6540465413f89485f9633599dc3","size":128,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/29ec07ca6b9db6540465413f89485f9633599dc3"},{"path":"cuda_malloc.py","mode":"100644","type":"blob","sha":"c1d9ae3cab5cd664b0bd8797e9e07117bc7962f7","size":3574,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1d9ae3cab5cd664b0bd8797e9e07117bc7962f7"},{"path":"custom_nodes","mode":"040000","type":"tree","sha":"279992b15199f35854e1df78db337b2e9d7c1d18","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/279992b15199f35854e1df78db337b2e9d7c1d18"},{"path":"custom_nodes/example_node.py.example","mode":"100644","type":"blob","sha":"29ab2aa72319354b147b7dd79e1c3179e54d3d06","size":6798,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/29ab2aa72319354b147b7dd79e1c3179e54d3d06"},{"path":"custom_nodes/websocket_image_save.py","mode":"100644","type":"blob","sha":"15f87f9f56175f33df18c6142f9e13c4503b1186","size":1220,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/15f87f9f56175f33df18c6142f9e13c4503b1186"},{"path":"execution.py","mode":"100644","type":"blob","sha":"1dc35738b823e84bdbee10806798e98dee35dc22","size":51644,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1dc35738b823e84bdbee10806798e98dee35dc22"},{"path":"extra_model_paths.yaml.example","mode":"100644","type":"blob","sha":"b55913a5a9bcbd46b490e7f560b6632e5c780881","size":1480,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b55913a5a9bcbd46b490e7f560b6632e5c780881"},{"path":"folder_paths.py","mode":"100644","type":"blob","sha":"9ec952940cdda022439f9dcd91c0d858b7801bf4","size":15907,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9ec952940cdda022439f9dcd91c0d858b7801bf4"},{"path":"hook_breaker_ac10a0.py","mode":"100644","type":"blob","sha":"c3e1c063382760535cee82e8bfcbc85d17e2cce4","size":366,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3e1c063382760535cee82e8bfcbc85d17e2cce4"},{"path":"input","mode":"040000","type":"tree","sha":"c5e3994a5e5b4363b882b74594a36fade2ff2515","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c5e3994a5e5b4363b882b74594a36fade2ff2515"},{"path":"input/example.png","mode":"100644","type":"blob","sha":"7b7f3c9cbbe6d8750c4a9eaf65d6ae4d2f108f79","size":8589,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7b7f3c9cbbe6d8750c4a9eaf65d6ae4d2f108f79"},{"path":"latent_preview.py","mode":"100644","type":"blob","sha":"95d3cb7338eafc63ce060b43528c6017d8d55953","size":4349,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/95d3cb7338eafc63ce060b43528c6017d8d55953"},{"path":"main.py","mode":"100644","type":"blob","sha":"9b2a33011fda8cc1bb115e1284aed21717ca81fb","size":14666,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9b2a33011fda8cc1bb115e1284aed21717ca81fb"},{"path":"models","mode":"040000","type":"tree","sha":"9f1c34c8ff77fb1deeb570b0db2a96f38fcba0a3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9f1c34c8ff77fb1deeb570b0db2a96f38fcba0a3"},{"path":"models/checkpoints","mode":"040000","type":"tree","sha":"25672fbdfed73fb4f237f0b4eee275a20619514c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/25672fbdfed73fb4f237f0b4eee275a20619514c"},{"path":"models/checkpoints/put_checkpoints_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/clip","mode":"040000","type":"tree","sha":"0f737c81be44fdb71bf4dd79cd502df792ae8419","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0f737c81be44fdb71bf4dd79cd502df792ae8419"},{"path":"models/clip/put_clip_or_text_encoder_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/clip_vision","mode":"040000","type":"tree","sha":"7106e9d1171ada573be2f99c3072c03fa37b667f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7106e9d1171ada573be2f99c3072c03fa37b667f"},{"path":"models/clip_vision/put_clip_vision_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/configs","mode":"040000","type":"tree","sha":"7b584405486c2b92996c337e193ad334e47313db","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7b584405486c2b92996c337e193ad334e47313db"},{"path":"models/configs/anything_v3.yaml","mode":"100644","type":"blob","sha":"8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34"},{"path":"models/configs/v1-inference.yaml","mode":"100644","type":"blob","sha":"d4effe569e897369918625f9d8be5603a0e6a0d6","size":1873,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d4effe569e897369918625f9d8be5603a0e6a0d6"},{"path":"models/configs/v1-inference_clip_skip_2.yaml","mode":"100644","type":"blob","sha":"8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34"},{"path":"models/configs/v1-inference_clip_skip_2_fp16.yaml","mode":"100644","type":"blob","sha":"7eca31c7b5e571c2b1348e94ed9d69978ebd2d52","size":1956,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7eca31c7b5e571c2b1348e94ed9d69978ebd2d52"},{"path":"models/configs/v1-inference_fp16.yaml","mode":"100644","type":"blob","sha":"147f42b17b835cc839338156f99e8f971df5c1aa","size":1896,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/147f42b17b835cc839338156f99e8f971df5c1aa"},{"path":"models/configs/v1-inpainting-inference.yaml","mode":"100644","type":"blob","sha":"45f3f82d461cd8c6109f26ec3b1da75366eda0b0","size":1992,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/45f3f82d461cd8c6109f26ec3b1da75366eda0b0"},{"path":"models/configs/v2-inference-v.yaml","mode":"100644","type":"blob","sha":"8ec8dfbfefe94ae8522c93017668fea78d580acf","size":1815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8ec8dfbfefe94ae8522c93017668fea78d580acf"},{"path":"models/configs/v2-inference-v_fp32.yaml","mode":"100644","type":"blob","sha":"d5c9b9cb29ca162ade44a7c922f59e75d7d57813","size":1816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d5c9b9cb29ca162ade44a7c922f59e75d7d57813"},{"path":"models/configs/v2-inference.yaml","mode":"100644","type":"blob","sha":"152c4f3c2b36c3b246a9cb10eb8166134b0d2e1c","size":1789,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/152c4f3c2b36c3b246a9cb10eb8166134b0d2e1c"},{"path":"models/configs/v2-inference_fp32.yaml","mode":"100644","type":"blob","sha":"0d03231f3f2c2e8ef8fbe0d781e5f3d65409ef3a","size":1790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d03231f3f2c2e8ef8fbe0d781e5f3d65409ef3a"},{"path":"models/configs/v2-inpainting-inference.yaml","mode":"100644","type":"blob","sha":"32a9471d71b828c51bcbbabfe34c5f6c8282c803","size":4450,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32a9471d71b828c51bcbbabfe34c5f6c8282c803"},{"path":"models/controlnet","mode":"040000","type":"tree","sha":"5a83ae6a0b91bad7a32204467dd1377cdf1ee907","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5a83ae6a0b91bad7a32204467dd1377cdf1ee907"},{"path":"models/controlnet/put_controlnets_and_t2i_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/diffusers","mode":"040000","type":"tree","sha":"cf5cd1731ce17b8a27403bb7e976b9cf519aa360","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cf5cd1731ce17b8a27403bb7e976b9cf519aa360"},{"path":"models/diffusers/put_diffusers_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/diffusion_models","mode":"040000","type":"tree","sha":"6dd7cfa71915656b72a58078ddb50dcfad2a3ce0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6dd7cfa71915656b72a58078ddb50dcfad2a3ce0"},{"path":"models/diffusion_models/put_diffusion_model_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/embeddings","mode":"040000","type":"tree","sha":"f39719329b51d40717bd0a49b6f4e7e49923ce73","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f39719329b51d40717bd0a49b6f4e7e49923ce73"},{"path":"models/embeddings/put_embeddings_or_textual_inversion_concepts_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/gligen","mode":"040000","type":"tree","sha":"40edb77ccd64ca93b7a8bc393e8f3c53d6e3889d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/40edb77ccd64ca93b7a8bc393e8f3c53d6e3889d"},{"path":"models/gligen/put_gligen_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/hypernetworks","mode":"040000","type":"tree","sha":"bb04dbc8c3d79c0f6fae8b895205c18a2a152e79","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bb04dbc8c3d79c0f6fae8b895205c18a2a152e79"},{"path":"models/hypernetworks/put_hypernetworks_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/loras","mode":"040000","type":"tree","sha":"7e90310f36d25711264493c0045f41d94fe42f75","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7e90310f36d25711264493c0045f41d94fe42f75"},{"path":"models/loras/put_loras_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/photomaker","mode":"040000","type":"tree","sha":"3c52c379e6795a69967782659b8db4020a7dcd2f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3c52c379e6795a69967782659b8db4020a7dcd2f"},{"path":"models/photomaker/put_photomaker_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/style_models","mode":"040000","type":"tree","sha":"8b8576516f89d3f0fc46c5d1bd28b68742858dc3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8b8576516f89d3f0fc46c5d1bd28b68742858dc3"},{"path":"models/style_models/put_t2i_style_model_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/text_encoders","mode":"040000","type":"tree","sha":"a7f3fe38ed7a8008f8c0c6d4c5f783b350217e49","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a7f3fe38ed7a8008f8c0c6d4c5f783b350217e49"},{"path":"models/text_encoders/put_text_encoder_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/unet","mode":"040000","type":"tree","sha":"a4b35d7a454474d792eac42ca0acd1e3d8bd801e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a4b35d7a454474d792eac42ca0acd1e3d8bd801e"},{"path":"models/unet/put_unet_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/upscale_models","mode":"040000","type":"tree","sha":"091689c25459ae81ee19e974eb53b30609e4ac4f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/091689c25459ae81ee19e974eb53b30609e4ac4f"},{"path":"models/upscale_models/put_esrgan_and_other_upscale_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/vae","mode":"040000","type":"tree","sha":"39bce83e44ba60a1700e60776d0b62b470cb15ca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/39bce83e44ba60a1700e60776d0b62b470cb15ca"},{"path":"models/vae/put_vae_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/vae_approx","mode":"040000","type":"tree","sha":"fecda1ff613fcbd1e84065941ebda49c81624044","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fecda1ff613fcbd1e84065941ebda49c81624044"},{"path":"models/vae_approx/put_taesd_encoder_pth_and_taesd_decoder_pth_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"new_updater.py","mode":"100644","type":"blob","sha":"9a203acdd71f62b3b1122cb879c75344f5859c5d","size":1261,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9a203acdd71f62b3b1122cb879c75344f5859c5d"},{"path":"node_helpers.py","mode":"100644","type":"blob","sha":"4ff960ef8afeadd935b6e48a9a683b7ef6970b2f","size":1684,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ff960ef8afeadd935b6e48a9a683b7ef6970b2f"},{"path":"nodes.py","mode":"100644","type":"blob","sha":"9448f9c1b383d06e1e62c191144731babe974375","size":98312,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9448f9c1b383d06e1e62c191144731babe974375"},{"path":"output","mode":"040000","type":"tree","sha":"a617907644c7aa5be7b2c911b7fe148196639772","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a617907644c7aa5be7b2c911b7fe148196639772"},{"path":"output/_output_images_will_be_put_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"protocol.py","mode":"100644","type":"blob","sha":"038a0a840d4efba202b54eabeeacc01f0eba0ed3","size":129,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/038a0a840d4efba202b54eabeeacc01f0eba0ed3"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"659b5730ad31d172f42900ff6727e1e8df87301a","size":678,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/659b5730ad31d172f42900ff6727e1e8df87301a"},{"path":"pytest.ini","mode":"100644","type":"blob","sha":"a224d8cbb5511cf6be0c0cf75ae92268339e11d6","size":227,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a224d8cbb5511cf6be0c0cf75ae92268339e11d6"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"56ed85e01f98e3857af090451ffcd4622a24bd3e","size":420,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/56ed85e01f98e3857af090451ffcd4622a24bd3e"},{"path":"script_examples","mode":"040000","type":"tree","sha":"ea05fd7122ca592b2570f09d4ca9329434fc32a4","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ea05fd7122ca592b2570f09d4ca9329434fc32a4"},{"path":"script_examples/basic_api_example.py","mode":"100644","type":"blob","sha":"9128420c4ab1f188b00d7d42a9135029b92e84f7","size":3024,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9128420c4ab1f188b00d7d42a9135029b92e84f7"},{"path":"script_examples/websockets_api_example.py","mode":"100644","type":"blob","sha":"58f26cfb696c5012a36af56e91d339b480359bb5","size":4953,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/58f26cfb696c5012a36af56e91d339b480359bb5"},{"path":"script_examples/websockets_api_example_ws_images.py","mode":"100644","type":"blob","sha":"6508ecc99e732f75c2489e3cddb42229de2d356a","size":4475,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6508ecc99e732f75c2489e3cddb42229de2d356a"},{"path":"server.py","mode":"100644","type":"blob","sha":"8f9c88ebf7714284ba89077e3696182aa6411779","size":41693,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8f9c88ebf7714284ba89077e3696182aa6411779"},{"path":"tests-unit","mode":"040000","type":"tree","sha":"8cffed0a1064e2f879e4735cf7804a1682218cf2","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8cffed0a1064e2f879e4735cf7804a1682218cf2"},{"path":"tests-unit/README.md","mode":"100644","type":"blob","sha":"81692b8f1de8c74fd058e627d10dbd0fc2821257","size":131,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/81692b8f1de8c74fd058e627d10dbd0fc2821257"},{"path":"tests-unit/app_test","mode":"040000","type":"tree","sha":"27780bc20bd08363703458a306868c011253e0b3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/27780bc20bd08363703458a306868c011253e0b3"},{"path":"tests-unit/app_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/app_test/custom_node_manager_test.py","mode":"100644","type":"blob","sha":"b61e25e54e657609b3970358d6ff3354ff8f5a8e","size":5141,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b61e25e54e657609b3970358d6ff3354ff8f5a8e"},{"path":"tests-unit/app_test/frontend_manager_test.py","mode":"100644","type":"blob","sha":"ce43ac564e8a5431566cdaef270aff47f7b0d9ec","size":5892,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce43ac564e8a5431566cdaef270aff47f7b0d9ec"},{"path":"tests-unit/app_test/model_manager_test.py","mode":"100644","type":"blob","sha":"ae59206f65639ca1749b1cf7b6903ebab18fb298","size":1851,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae59206f65639ca1749b1cf7b6903ebab18fb298"},{"path":"tests-unit/comfy_api_nodes_test","mode":"040000","type":"tree","sha":"944e86b7c09099f9ac8c9774d01d592ad3f1831b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/944e86b7c09099f9ac8c9774d01d592ad3f1831b"},{"path":"tests-unit/comfy_api_nodes_test/mapper_utils_test.py","mode":"100644","type":"blob","sha":"69488f69125f91fe886343355116c4e2884e3ad8","size":7916,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/69488f69125f91fe886343355116c4e2884e3ad8"},{"path":"tests-unit/comfy_api_test","mode":"040000","type":"tree","sha":"90aca1b70ee11b924dd8ab4ec7db81cb36ed0033","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/90aca1b70ee11b924dd8ab4ec7db81cb36ed0033"},{"path":"tests-unit/comfy_api_test/input_impl_test.py","mode":"100644","type":"blob","sha":"5fc21a9a74382fef56cd826c65a31210d1313310","size":3566,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5fc21a9a74382fef56cd826c65a31210d1313310"},{"path":"tests-unit/comfy_api_test/video_types_test.py","mode":"100644","type":"blob","sha":"b25fcb1ca866c053452d230d4b734fd5c29b7edd","size":7617,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b25fcb1ca866c053452d230d4b734fd5c29b7edd"},{"path":"tests-unit/comfy_extras_test","mode":"040000","type":"tree","sha":"8488073552f03801784f108098193202c100c615","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8488073552f03801784f108098193202c100c615"},{"path":"tests-unit/comfy_extras_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/comfy_extras_test/image_stitch_test.py","mode":"100644","type":"blob","sha":"b5a0f022cd0ca326fd03f30c5397c0db67547060","size":10241,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b5a0f022cd0ca326fd03f30c5397c0db67547060"},{"path":"tests-unit/comfy_test","mode":"040000","type":"tree","sha":"072bfb3433f670e5e24744d5e8d481413462eadd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/072bfb3433f670e5e24744d5e8d481413462eadd"},{"path":"tests-unit/comfy_test/folder_path_test.py","mode":"100644","type":"blob","sha":"775e15c36ba8a74657161b59ec98ebc62db52512","size":6969,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/775e15c36ba8a74657161b59ec98ebc62db52512"},{"path":"tests-unit/execution_test","mode":"040000","type":"tree","sha":"f00bb08e3b41cbfd1757804ee15910cde5b4c227","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f00bb08e3b41cbfd1757804ee15910cde5b4c227"},{"path":"tests-unit/execution_test/validate_node_input_test.py","mode":"100644","type":"blob","sha":"85a0c9601fd859c9374bfc753bb3382194a709d3","size":4298,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/85a0c9601fd859c9374bfc753bb3382194a709d3"},{"path":"tests-unit/feature_flags_test.py","mode":"100644","type":"blob","sha":"f2702cfc84cdd427f82c3fe0a95148ee83c88f36","size":4000,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f2702cfc84cdd427f82c3fe0a95148ee83c88f36"},{"path":"tests-unit/folder_paths_test","mode":"040000","type":"tree","sha":"fe0a4bd114a54eaae2a493ca29570057b32a6f7b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fe0a4bd114a54eaae2a493ca29570057b32a6f7b"},{"path":"tests-unit/folder_paths_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/folder_paths_test/filter_by_content_types_test.py","mode":"100644","type":"blob","sha":"683f9fc113a842cc3d36ff955aeb61d2ad6ff60b","size":2613,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/683f9fc113a842cc3d36ff955aeb61d2ad6ff60b"},{"path":"tests-unit/folder_paths_test/misc_test.py","mode":"100644","type":"blob","sha":"fcf66745337a09d63e05ed8bbbf38aaccf5d4143","size":1677,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fcf66745337a09d63e05ed8bbbf38aaccf5d4143"},{"path":"tests-unit/prompt_server_test","mode":"040000","type":"tree","sha":"ba0e5dd69c1e812c817636b4ffa859cf1b19017e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ba0e5dd69c1e812c817636b4ffa859cf1b19017e"},{"path":"tests-unit/prompt_server_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/prompt_server_test/user_manager_test.py","mode":"100644","type":"blob","sha":"b939d8e68f821077ca2def1d630f5bd944db8293","size":10103,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b939d8e68f821077ca2def1d630f5bd944db8293"},{"path":"tests-unit/requirements.txt","mode":"100644","type":"blob","sha":"3a6790ee07cdcc37515b9afbd649da0c99d837ca","size":61,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3a6790ee07cdcc37515b9afbd649da0c99d837ca"},{"path":"tests-unit/server","mode":"040000","type":"tree","sha":"54f955116adc323bffd0b492a6616080358c82df","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/54f955116adc323bffd0b492a6616080358c82df"},{"path":"tests-unit/server/utils","mode":"040000","type":"tree","sha":"f2b503c8600691097b5c595847356f53e691d65d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f2b503c8600691097b5c595847356f53e691d65d"},{"path":"tests-unit/server/utils/file_operations_test.py","mode":"100644","type":"blob","sha":"2a45cc47a1447e6c2ace4f40e6543b2b7c5e4fcf","size":1502,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a45cc47a1447e6c2ace4f40e6543b2b7c5e4fcf"},{"path":"tests-unit/utils","mode":"040000","type":"tree","sha":"0dba0b8cf4d9f41c42d063794aaefea154a557ee","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0dba0b8cf4d9f41c42d063794aaefea154a557ee"},{"path":"tests-unit/utils/extra_config_test.py","mode":"100644","type":"blob","sha":"eae1aa3d3ab8c57d668acf4971b4c886d7dd417f","size":10637,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eae1aa3d3ab8c57d668acf4971b4c886d7dd417f"},{"path":"tests-unit/utils/json_util_test.py","mode":"100644","type":"blob","sha":"d3089d8d184533cf7510ed0db14cfaf0644c52cf","size":2040,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d3089d8d184533cf7510ed0db14cfaf0644c52cf"},{"path":"tests-unit/websocket_feature_flags_test.py","mode":"100644","type":"blob","sha":"e93b2e1dde81d9664ed9505ee14aa2d7d994a95d","size":2834,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e93b2e1dde81d9664ed9505ee14aa2d7d994a95d"},{"path":"tests","mode":"040000","type":"tree","sha":"b40a592ca55fde153862bf5c597f2958d8b44200","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b40a592ca55fde153862bf5c597f2958d8b44200"},{"path":"tests/README.md","mode":"100644","type":"blob","sha":"2005fd45b2bbd249fb7f1dfff789b2ae236568ba","size":563,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2005fd45b2bbd249fb7f1dfff789b2ae236568ba"},{"path":"tests/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests/compare","mode":"040000","type":"tree","sha":"5ebaecaab8fbfe1c9bd2c2d81c1aacc452ae375f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5ebaecaab8fbfe1c9bd2c2d81c1aacc452ae375f"},{"path":"tests/compare/conftest.py","mode":"100644","type":"blob","sha":"dd5078c9e6e432c7de2462c5641068bfa8e0aaee","size":1814,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dd5078c9e6e432c7de2462c5641068bfa8e0aaee"},{"path":"tests/compare/test_quality.py","mode":"100644","type":"blob","sha":"01c19054956dde3b611dafe97ad244a3579e0e85","size":7912,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/01c19054956dde3b611dafe97ad244a3579e0e85"},{"path":"tests/conftest.py","mode":"100644","type":"blob","sha":"4e30eb5813f44ba6c22027f5b0f3fc0023f81e6d","size":1430,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e30eb5813f44ba6c22027f5b0f3fc0023f81e6d"},{"path":"tests/inference","mode":"040000","type":"tree","sha":"43fb07521f380a6df7b37615aa999991f341bbba","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/43fb07521f380a6df7b37615aa999991f341bbba"},{"path":"tests/inference/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests/inference/extra_model_paths.yaml","mode":"100644","type":"blob","sha":"68e056564d515893a6860010e6b8c554829f6186","size":69,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68e056564d515893a6860010e6b8c554829f6186"},{"path":"tests/inference/graphs","mode":"040000","type":"tree","sha":"8c57dae7b7548ac5e30d4265f1424beae9363b5c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8c57dae7b7548ac5e30d4265f1424beae9363b5c"},{"path":"tests/inference/graphs/default_graph_sdxl1_0.json","mode":"100644","type":"blob","sha":"c06c6829c6253cc71982f3714620bd10dd41bd73","size":2665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c06c6829c6253cc71982f3714620bd10dd41bd73"},{"path":"tests/inference/test_async_nodes.py","mode":"100644","type":"blob","sha":"f029953dd1eac9799e92a95457ec15a45bcfb126","size":18094,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f029953dd1eac9799e92a95457ec15a45bcfb126"},{"path":"tests/inference/test_execution.py","mode":"100644","type":"blob","sha":"e7b29302e5769fe00c9bc10fda031a713413b078","size":37217,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e7b29302e5769fe00c9bc10fda031a713413b078"},{"path":"tests/inference/test_inference.py","mode":"100644","type":"blob","sha":"7e4a206c41d95d5740c9c8b6e6c9071ad0ee86ce","size":8161,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e4a206c41d95d5740c9c8b6e6c9071ad0ee86ce"},{"path":"tests/inference/testing_nodes","mode":"040000","type":"tree","sha":"42fa0cface44c2906eefb81cac471f44ce8443d8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/42fa0cface44c2906eefb81cac471f44ce8443d8"},{"path":"tests/inference/testing_nodes/testing-pack","mode":"040000","type":"tree","sha":"01bbd9ea04d388f51f942aafd7296025e6d310e7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/01bbd9ea04d388f51f942aafd7296025e6d310e7"},{"path":"tests/inference/testing_nodes/testing-pack/__init__.py","mode":"100644","type":"blob","sha":"3d5ac8a94febb0481c1cf52b7cd89436f0c5c9ce","size":1804,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3d5ac8a94febb0481c1cf52b7cd89436f0c5c9ce"},{"path":"tests/inference/testing_nodes/testing-pack/api_test_nodes.py","mode":"100644","type":"blob","sha":"b2eaae05ec985caeb313ce47f09ab2858782e043","size":2144,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b2eaae05ec985caeb313ce47f09ab2858782e043"},{"path":"tests/inference/testing_nodes/testing-pack/async_test_nodes.py","mode":"100644","type":"blob","sha":"547eea6f4117bee47539eacbbda2a54593cee538","size":10703,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/547eea6f4117bee47539eacbbda2a54593cee538"},{"path":"tests/inference/testing_nodes/testing-pack/conditions.py","mode":"100644","type":"blob","sha":"0c200ee2892d4747d9ec6965b6d33f2223e3c08a","size":5353,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c200ee2892d4747d9ec6965b6d33f2223e3c08a"},{"path":"tests/inference/testing_nodes/testing-pack/flow_control.py","mode":"100644","type":"blob","sha":"ba943be6072f2003ebe1e6aa996d2dd8370c8c09","size":5938,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ba943be6072f2003ebe1e6aa996d2dd8370c8c09"},{"path":"tests/inference/testing_nodes/testing-pack/specific_tests.py","mode":"100644","type":"blob","sha":"4f8f01ae4a48bc46791f4c20851f12adbc0e8beb","size":16762,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4f8f01ae4a48bc46791f4c20851f12adbc0e8beb"},{"path":"tests/inference/testing_nodes/testing-pack/stubs.py","mode":"100644","type":"blob","sha":"a1df87529c65ffa46db64cc197f54aef376ff8c0","size":3729,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1df87529c65ffa46db64cc197f54aef376ff8c0"},{"path":"tests/inference/testing_nodes/testing-pack/tools.py","mode":"100644","type":"blob","sha":"34b28c0eb4892cdbc4e7575e651719f48ca917e9","size":2373,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/34b28c0eb4892cdbc4e7575e651719f48ca917e9"},{"path":"tests/inference/testing_nodes/testing-pack/util.py","mode":"100644","type":"blob","sha":"17741c5f1dff2eeff86fec5173e675bf9ac6cf3b","size":10109,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/17741c5f1dff2eeff86fec5173e675bf9ac6cf3b"},{"path":"utils","mode":"040000","type":"tree","sha":"b9255671f816fe8bbcf4ed93ecea274e413bf369","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b9255671f816fe8bbcf4ed93ecea274e413bf369"},{"path":"utils/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"utils/extra_config.py","mode":"100644","type":"blob","sha":"a0fcda9e8900ee2c67d79a1e588ff973f9ea7ea6","size":1370,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a0fcda9e8900ee2c67d79a1e588ff973f9ea7ea6"},{"path":"utils/install_util.py","mode":"100644","type":"blob","sha":"0f59bcf9193570a36641bd4e0c70c80d05be1a0f","size":572,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f59bcf9193570a36641bd4e0c70c80d05be1a0f"},{"path":"utils/json_util.py","mode":"100644","type":"blob","sha":"da45af4f74f386973d3f1968d88b083ca5906d81","size":781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/da45af4f74f386973d3f1968d88b083ca5906d81"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/resize-compare-reference/load__LICENSE b/docs/hel-892/resize-compare-reference/load__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/resize-compare-reference/load__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/docs/hel-892/resize-compare-reference/load__folder_paths.py b/docs/hel-892/resize-compare-reference/load__folder_paths.py new file mode 100644 index 00000000..9ec95294 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/load__folder_paths.py @@ -0,0 +1,425 @@ +from __future__ import annotations + +import os +import time +import mimetypes +import logging +from typing import Literal, List +from collections.abc import Collection + +from comfy.cli_args import args + +supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'} + +folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {} + +# --base-directory - Resets all default paths configured in folder_paths with a new base path +if args.base_directory: + base_path = os.path.abspath(args.base_directory) +else: + base_path = os.path.dirname(os.path.realpath(__file__)) + +models_dir = os.path.join(base_path, "models") +folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions) +folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"]) + +folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions) +folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions) +folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions) +folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions) +folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions) +folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions) +folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions) +folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"]) +folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions) + +folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions) +folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions) + +folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions) + +folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set()) + +folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions) + +folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions) + +folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""}) + +output_directory = os.path.join(base_path, "output") +temp_directory = os.path.join(base_path, "temp") +input_directory = os.path.join(base_path, "input") +user_directory = os.path.join(base_path, "user") + +filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {} + +class CacheHelper: + """ + Helper class for managing file list cache data. + """ + def __init__(self): + self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {} + self.active = False + + def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]: + if not self.active: + return default + return self.cache.get(key, default) + + def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None: + if self.active: + self.cache[key] = value + + def clear(self): + self.cache.clear() + + def __enter__(self): + self.active = True + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.active = False + self.clear() + +cache_helper = CacheHelper() + +extension_mimetypes_cache = { + "webp" : "image", + "fbx" : "model", +} + +def map_legacy(folder_name: str) -> str: + legacy = {"unet": "diffusion_models", + "clip": "text_encoders"} + return legacy.get(folder_name, folder_name) + +if not os.path.exists(input_directory): + try: + os.makedirs(input_directory) + except: + logging.error("Failed to create input directory") + +def set_output_directory(output_dir: str) -> None: + global output_directory + output_directory = output_dir + +def set_temp_directory(temp_dir: str) -> None: + global temp_directory + temp_directory = temp_dir + +def set_input_directory(input_dir: str) -> None: + global input_directory + input_directory = input_dir + +def get_output_directory() -> str: + global output_directory + return output_directory + +def get_temp_directory() -> str: + global temp_directory + return temp_directory + +def get_input_directory() -> str: + global input_directory + return input_directory + +def get_user_directory() -> str: + return user_directory + +def set_user_directory(user_dir: str) -> None: + global user_directory + user_directory = user_dir + + +#NOTE: used in http server so don't put folders that should not be accessed remotely +def get_directory_by_type(type_name: str) -> str | None: + if type_name == "output": + return get_output_directory() + if type_name == "temp": + return get_temp_directory() + if type_name == "input": + return get_input_directory() + return None + +def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]: + """ + Example: + files = os.listdir(folder_paths.get_input_directory()) + videos = filter_files_content_types(files, ["video"]) + + Note: + - 'model' in MIME context refers to 3D models, not files containing trained weights and parameters + """ + global extension_mimetypes_cache + result = [] + for file in files: + extension = file.split('.')[-1] + if extension not in extension_mimetypes_cache: + mime_type, _ = mimetypes.guess_type(file, strict=False) + if not mime_type: + continue + content_type = mime_type.split('/')[0] + extension_mimetypes_cache[extension] = content_type + else: + content_type = extension_mimetypes_cache[extension] + + if content_type in content_types: + result.append(file) + return result + +# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format +# otherwise use default_path as base_dir +def annotated_filepath(name: str) -> tuple[str, str | None]: + if name.endswith("[output]"): + base_dir = get_output_directory() + name = name[:-9] + elif name.endswith("[input]"): + base_dir = get_input_directory() + name = name[:-8] + elif name.endswith("[temp]"): + base_dir = get_temp_directory() + name = name[:-7] + else: + return name, None + + return name, base_dir + + +def get_annotated_filepath(name: str, default_dir: str | None=None) -> str: + name, base_dir = annotated_filepath(name) + + if base_dir is None: + if default_dir is not None: + base_dir = default_dir + else: + base_dir = get_input_directory() # fallback path + + return os.path.join(base_dir, name) + + +def exists_annotated_filepath(name) -> bool: + name, base_dir = annotated_filepath(name) + + if base_dir is None: + base_dir = get_input_directory() # fallback path + + filepath = os.path.join(base_dir, name) + return os.path.exists(filepath) + + +def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None: + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name in folder_names_and_paths: + paths, _exts = folder_names_and_paths[folder_name] + if full_folder_path in paths: + if is_default and paths[0] != full_folder_path: + # If the path to the folder is not the first in the list, move it to the beginning. + paths.remove(full_folder_path) + paths.insert(0, full_folder_path) + else: + if is_default: + paths.insert(0, full_folder_path) + else: + paths.append(full_folder_path) + else: + folder_names_and_paths[folder_name] = ([full_folder_path], set()) + +def get_folder_paths(folder_name: str) -> list[str]: + folder_name = map_legacy(folder_name) + return folder_names_and_paths[folder_name][0][:] + +def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]: + if not os.path.isdir(directory): + return [], {} + + if excluded_dir_names is None: + excluded_dir_names = [] + + result = [] + dirs = {} + + # Attempt to add the initial directory to dirs with error handling + try: + dirs[directory] = os.path.getmtime(directory) + except FileNotFoundError: + logging.warning(f"Warning: Unable to access {directory}. Skipping this path.") + + logging.debug("recursive file list on directory {}".format(directory)) + dirpath: str + subdirs: list[str] + filenames: list[str] + + for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True): + subdirs[:] = [d for d in subdirs if d not in excluded_dir_names] + for file_name in filenames: + try: + relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory) + result.append(relative_path) + except: + logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.") + continue + + for d in subdirs: + path: str = os.path.join(dirpath, d) + try: + dirs[path] = os.path.getmtime(path) + except FileNotFoundError: + logging.warning(f"Warning: Unable to access {path}. Skipping this path.") + continue + logging.debug("found {} files".format(len(result))) + return result, dirs + +def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]: + return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files))) + + + +def get_full_path(folder_name: str, filename: str) -> str | None: + """ + Get the full path of a file in a folder, has to be a file + """ + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name not in folder_names_and_paths: + return None + folders = folder_names_and_paths[folder_name] + filename = os.path.relpath(os.path.join("/", filename), "/") + for x in folders[0]: + full_path = os.path.join(x, filename) + if os.path.isfile(full_path): + return full_path + elif os.path.islink(full_path): + logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path)) + + return None + + +def get_full_path_or_raise(folder_name: str, filename: str) -> str: + """ + Get the full path of a file in a folder, has to be a file + """ + full_path = get_full_path(folder_name, filename) + if full_path is None: + raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.") + return full_path + + +def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]: + folder_name = map_legacy(folder_name) + global folder_names_and_paths + output_list = set() + folders = folder_names_and_paths[folder_name] + output_folders = {} + for x in folders[0]: + files, folders_all = recursive_search(x, excluded_dir_names=[".git"]) + output_list.update(filter_files_extensions(files, folders[1])) + output_folders = {**output_folders, **folders_all} + + return sorted(list(output_list)), output_folders, time.perf_counter() + +def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None: + strong_cache = cache_helper.get(folder_name) + if strong_cache is not None: + return strong_cache + + global filename_list_cache + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name not in filename_list_cache: + return None + out = filename_list_cache[folder_name] + + for x in out[1]: + time_modified = out[1][x] + folder = x + if os.path.getmtime(folder) != time_modified: + return None + + folders = folder_names_and_paths[folder_name] + for x in folders[0]: + if os.path.isdir(x): + if x not in out[1]: + return None + + return out + +def get_filename_list(folder_name: str) -> list[str]: + folder_name = map_legacy(folder_name) + out = cached_filename_list_(folder_name) + if out is None: + out = get_filename_list_(folder_name) + global filename_list_cache + filename_list_cache[folder_name] = out + cache_helper.set(folder_name, out) + return list(out[0]) + +def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]: + def map_filename(filename: str) -> tuple[int, str]: + prefix_len = len(os.path.basename(filename_prefix)) + prefix = filename[:prefix_len + 1] + try: + digits = int(filename[prefix_len + 1:].split('_')[0]) + except: + digits = 0 + return digits, prefix + + def compute_vars(input: str, image_width: int, image_height: int) -> str: + input = input.replace("%width%", str(image_width)) + input = input.replace("%height%", str(image_height)) + now = time.localtime() + input = input.replace("%year%", str(now.tm_year)) + input = input.replace("%month%", str(now.tm_mon).zfill(2)) + input = input.replace("%day%", str(now.tm_mday).zfill(2)) + input = input.replace("%hour%", str(now.tm_hour).zfill(2)) + input = input.replace("%minute%", str(now.tm_min).zfill(2)) + input = input.replace("%second%", str(now.tm_sec).zfill(2)) + return input + + if "%" in filename_prefix: + filename_prefix = compute_vars(filename_prefix, image_width, image_height) + + subfolder = os.path.dirname(os.path.normpath(filename_prefix)) + filename = os.path.basename(os.path.normpath(filename_prefix)) + + full_output_folder = os.path.join(output_dir, subfolder) + + if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir: + err = "**** ERROR: Saving image outside the output folder is not allowed." + \ + "\n full_output_folder: " + os.path.abspath(full_output_folder) + \ + "\n output_dir: " + output_dir + \ + "\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) + logging.error(err) + raise Exception(err) + + try: + counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1 + except ValueError: + counter = 1 + except FileNotFoundError: + os.makedirs(full_output_folder, exist_ok=True) + counter = 1 + return full_output_folder, filename, counter, subfolder, filename_prefix + +def get_input_subfolders() -> list[str]: + """Returns a list of all subfolder paths in the input directory, recursively. + + Returns: + List of folder paths relative to the input directory, excluding the root directory + """ + input_dir = get_input_directory() + folders = [] + + try: + if not os.path.exists(input_dir): + return [] + + for root, dirs, _ in os.walk(input_dir): + rel_path = os.path.relpath(root, input_dir) + if rel_path != ".": # Only include non-root directories + # Normalize path separators to forward slashes + folders.append(rel_path.replace(os.sep, '/')) + + return sorted(folders) + except FileNotFoundError: + return [] diff --git a/docs/hel-892/resize-compare-reference/load__nodes.py b/docs/hel-892/resize-compare-reference/load__nodes.py new file mode 100644 index 00000000..9448f9c1 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/load__nodes.py @@ -0,0 +1,2408 @@ +from __future__ import annotations +import torch + + +import os +import sys +import json +import hashlib +import inspect +import traceback +import math +import time +import random +import logging + +from PIL import Image, ImageOps, ImageSequence +from PIL.PngImagePlugin import PngInfo + +import numpy as np +import safetensors.torch + +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy")) + +import comfy.diffusers_load +import comfy.samplers +import comfy.sample +import comfy.sd +import comfy.utils +import comfy.controlnet +from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict, FileLocator +from comfy_api.internal import register_versions, ComfyAPIWithVersion +from comfy_api.version_list import supported_versions +from comfy_api.latest import io, ComfyExtension + +import comfy.clip_vision + +import comfy.model_management +from comfy.cli_args import args + +import importlib + +import folder_paths +import latent_preview +import node_helpers + +def before_node_execution(): + comfy.model_management.throw_exception_if_processing_interrupted() + +def interrupt_processing(value=True): + comfy.model_management.interrupt_current_processing(value) + +MAX_RESOLUTION=16384 + +class CLIPTextEncode(ComfyNodeABC): + @classmethod + def INPUT_TYPES(s) -> InputTypeDict: + return { + "required": { + "text": (IO.STRING, {"multiline": True, "dynamicPrompts": True, "tooltip": "The text to be encoded."}), + "clip": (IO.CLIP, {"tooltip": "The CLIP model used for encoding the text."}) + } + } + RETURN_TYPES = (IO.CONDITIONING,) + OUTPUT_TOOLTIPS = ("A conditioning containing the embedded text used to guide the diffusion model.",) + FUNCTION = "encode" + + CATEGORY = "conditioning" + DESCRIPTION = "Encodes a text prompt using a CLIP model into an embedding that can be used to guide the diffusion model towards generating specific images." + + def encode(self, clip, text): + if clip is None: + raise RuntimeError("ERROR: clip input is invalid: None\n\nIf the clip is from a checkpoint loader node your checkpoint does not contain a valid clip or text encoder model.") + tokens = clip.tokenize(text) + return (clip.encode_from_tokens_scheduled(tokens), ) + + +class ConditioningCombine: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_1": ("CONDITIONING", ), "conditioning_2": ("CONDITIONING", )}} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "combine" + + CATEGORY = "conditioning" + + def combine(self, conditioning_1, conditioning_2): + return (conditioning_1 + conditioning_2, ) + +class ConditioningAverage : + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_to": ("CONDITIONING", ), "conditioning_from": ("CONDITIONING", ), + "conditioning_to_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "addWeighted" + + CATEGORY = "conditioning" + + def addWeighted(self, conditioning_to, conditioning_from, conditioning_to_strength): + out = [] + + if len(conditioning_from) > 1: + logging.warning("Warning: ConditioningAverage conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.") + + cond_from = conditioning_from[0][0] + pooled_output_from = conditioning_from[0][1].get("pooled_output", None) + + for i in range(len(conditioning_to)): + t1 = conditioning_to[i][0] + pooled_output_to = conditioning_to[i][1].get("pooled_output", pooled_output_from) + t0 = cond_from[:,:t1.shape[1]] + if t0.shape[1] < t1.shape[1]: + t0 = torch.cat([t0] + [torch.zeros((1, (t1.shape[1] - t0.shape[1]), t1.shape[2]))], dim=1) + + tw = torch.mul(t1, conditioning_to_strength) + torch.mul(t0, (1.0 - conditioning_to_strength)) + t_to = conditioning_to[i][1].copy() + if pooled_output_from is not None and pooled_output_to is not None: + t_to["pooled_output"] = torch.mul(pooled_output_to, conditioning_to_strength) + torch.mul(pooled_output_from, (1.0 - conditioning_to_strength)) + elif pooled_output_from is not None: + t_to["pooled_output"] = pooled_output_from + + n = [tw, t_to] + out.append(n) + return (out, ) + +class ConditioningConcat: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "conditioning_to": ("CONDITIONING",), + "conditioning_from": ("CONDITIONING",), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "concat" + + CATEGORY = "conditioning" + + def concat(self, conditioning_to, conditioning_from): + out = [] + + if len(conditioning_from) > 1: + logging.warning("Warning: ConditioningConcat conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.") + + cond_from = conditioning_from[0][0] + + for i in range(len(conditioning_to)): + t1 = conditioning_to[i][0] + tw = torch.cat((t1, cond_from),1) + n = [tw, conditioning_to[i][1].copy()] + out.append(n) + + return (out, ) + +class ConditioningSetArea: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "width": ("INT", {"default": 64, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 64, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, width, height, x, y, strength): + c = node_helpers.conditioning_set_values(conditioning, {"area": (height // 8, width // 8, y // 8, x // 8), + "strength": strength, + "set_area_to_bounds": False}) + return (c, ) + +class ConditioningSetAreaPercentage: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "width": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}), + "height": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}), + "x": ("FLOAT", {"default": 0, "min": 0, "max": 1.0, "step": 0.01}), + "y": ("FLOAT", {"default": 0, "min": 0, "max": 1.0, "step": 0.01}), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, width, height, x, y, strength): + c = node_helpers.conditioning_set_values(conditioning, {"area": ("percentage", height, width, y, x), + "strength": strength, + "set_area_to_bounds": False}) + return (c, ) + +class ConditioningSetAreaStrength: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, strength): + c = node_helpers.conditioning_set_values(conditioning, {"strength": strength}) + return (c, ) + + +class ConditioningSetMask: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "mask": ("MASK", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, mask, set_cond_area, strength): + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask.shape) < 3: + mask = mask.unsqueeze(0) + + c = node_helpers.conditioning_set_values(conditioning, {"mask": mask, + "set_area_to_bounds": set_area_to_bounds, + "mask_strength": strength}) + return (c, ) + +class ConditioningZeroOut: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", )}} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "zero_out" + + CATEGORY = "advanced/conditioning" + + def zero_out(self, conditioning): + c = [] + for t in conditioning: + d = t[1].copy() + pooled_output = d.get("pooled_output", None) + if pooled_output is not None: + d["pooled_output"] = torch.zeros_like(pooled_output) + conditioning_lyrics = d.get("conditioning_lyrics", None) + if conditioning_lyrics is not None: + d["conditioning_lyrics"] = torch.zeros_like(conditioning_lyrics) + n = [torch.zeros_like(t[0]), d] + c.append(n) + return (c, ) + +class ConditioningSetTimestepRange: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "start": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.001}), + "end": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "set_range" + + CATEGORY = "advanced/conditioning" + + def set_range(self, conditioning, start, end): + c = node_helpers.conditioning_set_values(conditioning, {"start_percent": start, + "end_percent": end}) + return (c, ) + +class VAEDecode: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "samples": ("LATENT", {"tooltip": "The latent to be decoded."}), + "vae": ("VAE", {"tooltip": "The VAE model used for decoding the latent."}) + } + } + RETURN_TYPES = ("IMAGE",) + OUTPUT_TOOLTIPS = ("The decoded image.",) + FUNCTION = "decode" + + CATEGORY = "latent" + DESCRIPTION = "Decodes latent images back into pixel space images." + + def decode(self, vae, samples): + images = vae.decode(samples["samples"]) + if len(images.shape) == 5: #Combine batches + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + +class VAEDecodeTiled: + @classmethod + def INPUT_TYPES(s): + return {"required": {"samples": ("LATENT", ), "vae": ("VAE", ), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 32}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to decode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "decode" + + CATEGORY = "_for_testing" + + def decode(self, vae, samples, tile_size, overlap=64, temporal_size=64, temporal_overlap=8): + if tile_size < overlap * 4: + overlap = tile_size // 4 + if temporal_size < temporal_overlap * 2: + temporal_overlap = temporal_overlap // 2 + temporal_compression = vae.temporal_compression_decode() + if temporal_compression is not None: + temporal_size = max(2, temporal_size // temporal_compression) + temporal_overlap = max(1, min(temporal_size // 2, temporal_overlap // temporal_compression)) + else: + temporal_size = None + temporal_overlap = None + + compression = vae.spacial_compression_decode() + images = vae.decode_tiled(samples["samples"], tile_x=tile_size // compression, tile_y=tile_size // compression, overlap=overlap // compression, tile_t=temporal_size, overlap_t=temporal_overlap) + if len(images.shape) == 5: #Combine batches + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + +class VAEEncode: + @classmethod + def INPUT_TYPES(s): + return {"required": { "pixels": ("IMAGE", ), "vae": ("VAE", )}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "latent" + + def encode(self, vae, pixels): + t = vae.encode(pixels[:,:,:,:3]) + return ({"samples":t}, ) + +class VAEEncodeTiled: + @classmethod + def INPUT_TYPES(s): + return {"required": {"pixels": ("IMAGE", ), "vae": ("VAE", ), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 64}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to encode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "_for_testing" + + def encode(self, vae, pixels, tile_size, overlap, temporal_size=64, temporal_overlap=8): + t = vae.encode_tiled(pixels[:,:,:,:3], tile_x=tile_size, tile_y=tile_size, overlap=overlap, tile_t=temporal_size, overlap_t=temporal_overlap) + return ({"samples": t}, ) + +class VAEEncodeForInpaint: + @classmethod + def INPUT_TYPES(s): + return {"required": { "pixels": ("IMAGE", ), "vae": ("VAE", ), "mask": ("MASK", ), "grow_mask_by": ("INT", {"default": 6, "min": 0, "max": 64, "step": 1}),}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "latent/inpaint" + + def encode(self, vae, pixels, mask, grow_mask_by=6): + x = (pixels.shape[1] // vae.downscale_ratio) * vae.downscale_ratio + y = (pixels.shape[2] // vae.downscale_ratio) * vae.downscale_ratio + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear") + + pixels = pixels.clone() + if pixels.shape[1] != x or pixels.shape[2] != y: + x_offset = (pixels.shape[1] % vae.downscale_ratio) // 2 + y_offset = (pixels.shape[2] % vae.downscale_ratio) // 2 + pixels = pixels[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + mask = mask[:,:,x_offset:x + x_offset, y_offset:y + y_offset] + + #grow mask by a few pixels to keep things seamless in latent space + if grow_mask_by == 0: + mask_erosion = mask + else: + kernel_tensor = torch.ones((1, 1, grow_mask_by, grow_mask_by)) + padding = math.ceil((grow_mask_by - 1) / 2) + + mask_erosion = torch.clamp(torch.nn.functional.conv2d(mask.round(), kernel_tensor, padding=padding), 0, 1) + + m = (1.0 - mask.round()).squeeze(1) + for i in range(3): + pixels[:,:,:,i] -= 0.5 + pixels[:,:,:,i] *= m + pixels[:,:,:,i] += 0.5 + t = vae.encode(pixels) + + return ({"samples":t, "noise_mask": (mask_erosion[:,:,:x,:y].round())}, ) + + +class InpaintModelConditioning: + @classmethod + def INPUT_TYPES(s): + return {"required": {"positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "vae": ("VAE", ), + "pixels": ("IMAGE", ), + "mask": ("MASK", ), + "noise_mask": ("BOOLEAN", {"default": True, "tooltip": "Add a noise mask to the latent so sampling will only happen within the mask. Might improve results or completely break things depending on the model."}), + }} + + RETURN_TYPES = ("CONDITIONING","CONDITIONING","LATENT") + RETURN_NAMES = ("positive", "negative", "latent") + FUNCTION = "encode" + + CATEGORY = "conditioning/inpaint" + + def encode(self, positive, negative, pixels, vae, mask, noise_mask=True): + x = (pixels.shape[1] // 8) * 8 + y = (pixels.shape[2] // 8) * 8 + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear") + + orig_pixels = pixels + pixels = orig_pixels.clone() + if pixels.shape[1] != x or pixels.shape[2] != y: + x_offset = (pixels.shape[1] % 8) // 2 + y_offset = (pixels.shape[2] % 8) // 2 + pixels = pixels[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + mask = mask[:,:,x_offset:x + x_offset, y_offset:y + y_offset] + + m = (1.0 - mask.round()).squeeze(1) + for i in range(3): + pixels[:,:,:,i] -= 0.5 + pixels[:,:,:,i] *= m + pixels[:,:,:,i] += 0.5 + concat_latent = vae.encode(pixels) + orig_latent = vae.encode(orig_pixels) + + out_latent = {} + + out_latent["samples"] = orig_latent + if noise_mask: + out_latent["noise_mask"] = mask + + out = [] + for conditioning in [positive, negative]: + c = node_helpers.conditioning_set_values(conditioning, {"concat_latent_image": concat_latent, + "concat_mask": mask}) + out.append(c) + return (out[0], out[1], out_latent) + + +class SaveLatent: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT", ), + "filename_prefix": ("STRING", {"default": "latents/ComfyUI"})}, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + RETURN_TYPES = () + FUNCTION = "save" + + OUTPUT_NODE = True + + CATEGORY = "_for_testing" + + def save(self, samples, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None): + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + + # support save metadata for latent sharing + prompt_info = "" + if prompt is not None: + prompt_info = json.dumps(prompt) + + metadata = None + if not args.disable_metadata: + metadata = {"prompt": prompt_info} + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata[x] = json.dumps(extra_pnginfo[x]) + + file = f"{filename}_{counter:05}_.latent" + + results: list[FileLocator] = [] + results.append({ + "filename": file, + "subfolder": subfolder, + "type": "output" + }) + + file = os.path.join(full_output_folder, file) + + output = {} + output["latent_tensor"] = samples["samples"].contiguous() + output["latent_format_version_0"] = torch.tensor([]) + + comfy.utils.save_torch_file(output, file, metadata=metadata) + return { "ui": { "latents": results } } + + +class LoadLatent: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f)) and f.endswith(".latent")] + return {"required": {"latent": [sorted(files), ]}, } + + CATEGORY = "_for_testing" + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "load" + + def load(self, latent): + latent_path = folder_paths.get_annotated_filepath(latent) + latent = safetensors.torch.load_file(latent_path, device="cpu") + multiplier = 1.0 + if "latent_format_version_0" not in latent: + multiplier = 1.0 / 0.18215 + samples = {"samples": latent["latent_tensor"].float() * multiplier} + return (samples, ) + + @classmethod + def IS_CHANGED(s, latent): + image_path = folder_paths.get_annotated_filepath(latent) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, latent): + if not folder_paths.exists_annotated_filepath(latent): + return "Invalid latent file: {}".format(latent) + return True + + +class CheckpointLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "config_name": (folder_paths.get_filename_list("configs"), ), + "ckpt_name": (folder_paths.get_filename_list("checkpoints"), )}} + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + FUNCTION = "load_checkpoint" + + CATEGORY = "advanced/loaders" + DEPRECATED = True + + def load_checkpoint(self, config_name, ckpt_name): + config_path = folder_paths.get_full_path("configs", config_name) + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + return comfy.sd.load_checkpoint(config_path, ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + +class CheckpointLoaderSimple: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "ckpt_name": (folder_paths.get_filename_list("checkpoints"), {"tooltip": "The name of the checkpoint (model) to load."}), + } + } + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + OUTPUT_TOOLTIPS = ("The model used for denoising latents.", + "The CLIP model used for encoding text prompts.", + "The VAE model used for encoding and decoding images to and from latent space.") + FUNCTION = "load_checkpoint" + + CATEGORY = "loaders" + DESCRIPTION = "Loads a diffusion model checkpoint, diffusion models are used to denoise latents." + + def load_checkpoint(self, ckpt_name): + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + return out[:3] + +class DiffusersLoader: + @classmethod + def INPUT_TYPES(cls): + paths = [] + for search_path in folder_paths.get_folder_paths("diffusers"): + if os.path.exists(search_path): + for root, subdir, files in os.walk(search_path, followlinks=True): + if "model_index.json" in files: + paths.append(os.path.relpath(root, start=search_path)) + + return {"required": {"model_path": (paths,), }} + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + FUNCTION = "load_checkpoint" + + CATEGORY = "advanced/loaders/deprecated" + + def load_checkpoint(self, model_path, output_vae=True, output_clip=True): + for search_path in folder_paths.get_folder_paths("diffusers"): + if os.path.exists(search_path): + path = os.path.join(search_path, model_path) + if os.path.exists(path): + model_path = path + break + + return comfy.diffusers_load.load_diffusers(model_path, output_vae=output_vae, output_clip=output_clip, embedding_directory=folder_paths.get_folder_paths("embeddings")) + + +class unCLIPCheckpointLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "ckpt_name": (folder_paths.get_filename_list("checkpoints"), ), + }} + RETURN_TYPES = ("MODEL", "CLIP", "VAE", "CLIP_VISION") + FUNCTION = "load_checkpoint" + + CATEGORY = "loaders" + + def load_checkpoint(self, ckpt_name, output_vae=True, output_clip=True): + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, output_clipvision=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + return out + +class CLIPSetLastLayer: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip": ("CLIP", ), + "stop_at_clip_layer": ("INT", {"default": -1, "min": -24, "max": -1, "step": 1}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "set_last_layer" + + CATEGORY = "conditioning" + + def set_last_layer(self, clip, stop_at_clip_layer): + clip = clip.clone() + clip.clip_layer(stop_at_clip_layer) + return (clip,) + +class LoraLoader: + def __init__(self): + self.loaded_lora = None + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL", {"tooltip": "The diffusion model the LoRA will be applied to."}), + "clip": ("CLIP", {"tooltip": "The CLIP model the LoRA will be applied to."}), + "lora_name": (folder_paths.get_filename_list("loras"), {"tooltip": "The name of the LoRA."}), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the diffusion model. This value can be negative."}), + "strength_clip": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the CLIP model. This value can be negative."}), + } + } + + RETURN_TYPES = ("MODEL", "CLIP") + OUTPUT_TOOLTIPS = ("The modified diffusion model.", "The modified CLIP model.") + FUNCTION = "load_lora" + + CATEGORY = "loaders" + DESCRIPTION = "LoRAs are used to modify diffusion and CLIP models, altering the way in which latents are denoised such as applying styles. Multiple LoRA nodes can be linked together." + + def load_lora(self, model, clip, lora_name, strength_model, strength_clip): + if strength_model == 0 and strength_clip == 0: + return (model, clip) + + lora_path = folder_paths.get_full_path_or_raise("loras", lora_name) + lora = None + if self.loaded_lora is not None: + if self.loaded_lora[0] == lora_path: + lora = self.loaded_lora[1] + else: + self.loaded_lora = None + + if lora is None: + lora = comfy.utils.load_torch_file(lora_path, safe_load=True) + self.loaded_lora = (lora_path, lora) + + model_lora, clip_lora = comfy.sd.load_lora_for_models(model, clip, lora, strength_model, strength_clip) + return (model_lora, clip_lora) + +class LoraLoaderModelOnly(LoraLoader): + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "lora_name": (folder_paths.get_filename_list("loras"), ), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01}), + }} + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_lora_model_only" + + def load_lora_model_only(self, model, lora_name, strength_model): + return (self.load_lora(model, None, lora_name, strength_model, 0)[0],) + +class VAELoader: + @staticmethod + def vae_list(): + vaes = folder_paths.get_filename_list("vae") + approx_vaes = folder_paths.get_filename_list("vae_approx") + sdxl_taesd_enc = False + sdxl_taesd_dec = False + sd1_taesd_enc = False + sd1_taesd_dec = False + sd3_taesd_enc = False + sd3_taesd_dec = False + f1_taesd_enc = False + f1_taesd_dec = False + + for v in approx_vaes: + if v.startswith("taesd_decoder."): + sd1_taesd_dec = True + elif v.startswith("taesd_encoder."): + sd1_taesd_enc = True + elif v.startswith("taesdxl_decoder."): + sdxl_taesd_dec = True + elif v.startswith("taesdxl_encoder."): + sdxl_taesd_enc = True + elif v.startswith("taesd3_decoder."): + sd3_taesd_dec = True + elif v.startswith("taesd3_encoder."): + sd3_taesd_enc = True + elif v.startswith("taef1_encoder."): + f1_taesd_dec = True + elif v.startswith("taef1_decoder."): + f1_taesd_enc = True + if sd1_taesd_dec and sd1_taesd_enc: + vaes.append("taesd") + if sdxl_taesd_dec and sdxl_taesd_enc: + vaes.append("taesdxl") + if sd3_taesd_dec and sd3_taesd_enc: + vaes.append("taesd3") + if f1_taesd_dec and f1_taesd_enc: + vaes.append("taef1") + return vaes + + @staticmethod + def load_taesd(name): + sd = {} + approx_vaes = folder_paths.get_filename_list("vae_approx") + + encoder = next(filter(lambda a: a.startswith("{}_encoder.".format(name)), approx_vaes)) + decoder = next(filter(lambda a: a.startswith("{}_decoder.".format(name)), approx_vaes)) + + enc = comfy.utils.load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", encoder)) + for k in enc: + sd["taesd_encoder.{}".format(k)] = enc[k] + + dec = comfy.utils.load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", decoder)) + for k in dec: + sd["taesd_decoder.{}".format(k)] = dec[k] + + if name == "taesd": + sd["vae_scale"] = torch.tensor(0.18215) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesdxl": + sd["vae_scale"] = torch.tensor(0.13025) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesd3": + sd["vae_scale"] = torch.tensor(1.5305) + sd["vae_shift"] = torch.tensor(0.0609) + elif name == "taef1": + sd["vae_scale"] = torch.tensor(0.3611) + sd["vae_shift"] = torch.tensor(0.1159) + return sd + + @classmethod + def INPUT_TYPES(s): + return {"required": { "vae_name": (s.vae_list(), )}} + RETURN_TYPES = ("VAE",) + FUNCTION = "load_vae" + + CATEGORY = "loaders" + + #TODO: scale factor? + def load_vae(self, vae_name): + if vae_name in ["taesd", "taesdxl", "taesd3", "taef1"]: + sd = self.load_taesd(vae_name) + else: + vae_path = folder_paths.get_full_path_or_raise("vae", vae_name) + sd = comfy.utils.load_torch_file(vae_path) + vae = comfy.sd.VAE(sd=sd) + vae.throw_exception_if_invalid() + return (vae,) + +class ControlNetLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "control_net_name": (folder_paths.get_filename_list("controlnet"), )}} + + RETURN_TYPES = ("CONTROL_NET",) + FUNCTION = "load_controlnet" + + CATEGORY = "loaders" + + def load_controlnet(self, control_net_name): + controlnet_path = folder_paths.get_full_path_or_raise("controlnet", control_net_name) + controlnet = comfy.controlnet.load_controlnet(controlnet_path) + if controlnet is None: + raise RuntimeError("ERROR: controlnet file is invalid and does not contain a valid controlnet model.") + return (controlnet,) + +class DiffControlNetLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "control_net_name": (folder_paths.get_filename_list("controlnet"), )}} + + RETURN_TYPES = ("CONTROL_NET",) + FUNCTION = "load_controlnet" + + CATEGORY = "loaders" + + def load_controlnet(self, model, control_net_name): + controlnet_path = folder_paths.get_full_path_or_raise("controlnet", control_net_name) + controlnet = comfy.controlnet.load_controlnet(controlnet_path, model) + return (controlnet,) + + +class ControlNetApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "control_net": ("CONTROL_NET", ), + "image": ("IMAGE", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_controlnet" + + DEPRECATED = True + CATEGORY = "conditioning/controlnet" + + def apply_controlnet(self, conditioning, control_net, image, strength): + if strength == 0: + return (conditioning, ) + + c = [] + control_hint = image.movedim(-1,1) + for t in conditioning: + n = [t[0], t[1].copy()] + c_net = control_net.copy().set_cond_hint(control_hint, strength) + if 'control' in t[1]: + c_net.set_previous_controlnet(t[1]['control']) + n[1]['control'] = c_net + n[1]['control_apply_to_uncond'] = True + c.append(n) + return (c, ) + + +class ControlNetApplyAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": {"positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "control_net": ("CONTROL_NET", ), + "image": ("IMAGE", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "start_percent": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.001}), + "end_percent": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001}) + }, + "optional": {"vae": ("VAE", ), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING") + RETURN_NAMES = ("positive", "negative") + FUNCTION = "apply_controlnet" + + CATEGORY = "conditioning/controlnet" + + def apply_controlnet(self, positive, negative, control_net, image, strength, start_percent, end_percent, vae=None, extra_concat=[]): + if strength == 0: + return (positive, negative) + + control_hint = image.movedim(-1,1) + cnets = {} + + out = [] + for conditioning in [positive, negative]: + c = [] + for t in conditioning: + d = t[1].copy() + + prev_cnet = d.get('control', None) + if prev_cnet in cnets: + c_net = cnets[prev_cnet] + else: + c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent), vae=vae, extra_concat=extra_concat) + c_net.set_previous_controlnet(prev_cnet) + cnets[prev_cnet] = c_net + + d['control'] = c_net + d['control_apply_to_uncond'] = False + n = [t[0], d] + c.append(n) + out.append(c) + return (out[0], out[1]) + + +class UNETLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "unet_name": (folder_paths.get_filename_list("diffusion_models"), ), + "weight_dtype": (["default", "fp8_e4m3fn", "fp8_e4m3fn_fast", "fp8_e5m2"],) + }} + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_unet" + + CATEGORY = "advanced/loaders" + + def load_unet(self, unet_name, weight_dtype): + model_options = {} + if weight_dtype == "fp8_e4m3fn": + model_options["dtype"] = torch.float8_e4m3fn + elif weight_dtype == "fp8_e4m3fn_fast": + model_options["dtype"] = torch.float8_e4m3fn + model_options["fp8_optimizations"] = True + elif weight_dtype == "fp8_e5m2": + model_options["dtype"] = torch.float8_e5m2 + + unet_path = folder_paths.get_full_path_or_raise("diffusion_models", unet_name) + model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options) + return (model,) + +class CLIPLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name": (folder_paths.get_filename_list("text_encoders"), ), + "type": (["stable_diffusion", "stable_cascade", "sd3", "stable_audio", "mochi", "ltxv", "pixart", "cosmos", "lumina2", "wan", "hidream", "chroma", "ace", "omnigen2", "qwen_image"], ), + }, + "optional": { + "device": (["default", "cpu"], {"advanced": True}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "load_clip" + + CATEGORY = "advanced/loaders" + + DESCRIPTION = "[Recipes]\n\nstable_diffusion: clip-l\nstable_cascade: clip-g\nsd3: t5 xxl/ clip-g / clip-l\nstable_audio: t5 base\nmochi: t5 xxl\ncosmos: old t5 xxl\nlumina2: gemma 2 2B\nwan: umt5 xxl\n hidream: llama-3.1 (Recommend) or t5\nomnigen2: qwen vl 2.5 3B" + + def load_clip(self, clip_name, type="stable_diffusion", device="default"): + clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) + + model_options = {} + if device == "cpu": + model_options["load_device"] = model_options["offload_device"] = torch.device("cpu") + + clip_path = folder_paths.get_full_path_or_raise("text_encoders", clip_name) + clip = comfy.sd.load_clip(ckpt_paths=[clip_path], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options) + return (clip,) + +class DualCLIPLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name1": (folder_paths.get_filename_list("text_encoders"), ), + "clip_name2": (folder_paths.get_filename_list("text_encoders"), ), + "type": (["sdxl", "sd3", "flux", "hunyuan_video", "hidream"], ), + }, + "optional": { + "device": (["default", "cpu"], {"advanced": True}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "load_clip" + + CATEGORY = "advanced/loaders" + + DESCRIPTION = "[Recipes]\n\nsdxl: clip-l, clip-g\nsd3: clip-l, clip-g / clip-l, t5 / clip-g, t5\nflux: clip-l, t5\nhidream: at least one of t5 or llama, recommended t5 and llama" + + def load_clip(self, clip_name1, clip_name2, type, device="default"): + clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) + + clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1) + clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2) + + model_options = {} + if device == "cpu": + model_options["load_device"] = model_options["offload_device"] = torch.device("cpu") + + clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options) + return (clip,) + +class CLIPVisionLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name": (folder_paths.get_filename_list("clip_vision"), ), + }} + RETURN_TYPES = ("CLIP_VISION",) + FUNCTION = "load_clip" + + CATEGORY = "loaders" + + def load_clip(self, clip_name): + clip_path = folder_paths.get_full_path_or_raise("clip_vision", clip_name) + clip_vision = comfy.clip_vision.load(clip_path) + if clip_vision is None: + raise RuntimeError("ERROR: clip vision file is invalid and does not contain a valid vision model.") + return (clip_vision,) + +class CLIPVisionEncode: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_vision": ("CLIP_VISION",), + "image": ("IMAGE",), + "crop": (["center", "none"],) + }} + RETURN_TYPES = ("CLIP_VISION_OUTPUT",) + FUNCTION = "encode" + + CATEGORY = "conditioning" + + def encode(self, clip_vision, image, crop): + crop_image = True + if crop != "center": + crop_image = False + output = clip_vision.encode_image(image, crop=crop_image) + return (output,) + +class StyleModelLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "style_model_name": (folder_paths.get_filename_list("style_models"), )}} + + RETURN_TYPES = ("STYLE_MODEL",) + FUNCTION = "load_style_model" + + CATEGORY = "loaders" + + def load_style_model(self, style_model_name): + style_model_path = folder_paths.get_full_path_or_raise("style_models", style_model_name) + style_model = comfy.sd.load_style_model(style_model_path) + return (style_model,) + + +class StyleModelApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "style_model": ("STYLE_MODEL", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}), + "strength_type": (["multiply", "attn_bias"], ), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_stylemodel" + + CATEGORY = "conditioning/style_model" + + def apply_stylemodel(self, conditioning, style_model, clip_vision_output, strength, strength_type): + cond = style_model.get_cond(clip_vision_output).flatten(start_dim=0, end_dim=1).unsqueeze(dim=0) + if strength_type == "multiply": + cond *= strength + + n = cond.shape[1] + c_out = [] + for t in conditioning: + (txt, keys) = t + keys = keys.copy() + # even if the strength is 1.0 (i.e, no change), if there's already a mask, we have to add to it + if "attention_mask" in keys or (strength_type == "attn_bias" and strength != 1.0): + # math.log raises an error if the argument is zero + # torch.log returns -inf, which is what we want + attn_bias = torch.log(torch.Tensor([strength if strength_type == "attn_bias" else 1.0])) + # get the size of the mask image + mask_ref_size = keys.get("attention_mask_img_shape", (1, 1)) + n_ref = mask_ref_size[0] * mask_ref_size[1] + n_txt = txt.shape[1] + # grab the existing mask + mask = keys.get("attention_mask", None) + # create a default mask if it doesn't exist + if mask is None: + mask = torch.zeros((txt.shape[0], n_txt + n_ref, n_txt + n_ref), dtype=torch.float16) + # convert the mask dtype, because it might be boolean + # we want it to be interpreted as a bias + if mask.dtype == torch.bool: + # log(True) = log(1) = 0 + # log(False) = log(0) = -inf + mask = torch.log(mask.to(dtype=torch.float16)) + # now we make the mask bigger to add space for our new tokens + new_mask = torch.zeros((txt.shape[0], n_txt + n + n_ref, n_txt + n + n_ref), dtype=torch.float16) + # copy over the old mask, in quandrants + new_mask[:, :n_txt, :n_txt] = mask[:, :n_txt, :n_txt] + new_mask[:, :n_txt, n_txt+n:] = mask[:, :n_txt, n_txt:] + new_mask[:, n_txt+n:, :n_txt] = mask[:, n_txt:, :n_txt] + new_mask[:, n_txt+n:, n_txt+n:] = mask[:, n_txt:, n_txt:] + # now fill in the attention bias to our redux tokens + new_mask[:, :n_txt, n_txt:n_txt+n] = attn_bias + new_mask[:, n_txt+n:, n_txt:n_txt+n] = attn_bias + keys["attention_mask"] = new_mask.to(txt.device) + keys["attention_mask_img_shape"] = mask_ref_size + + c_out.append([torch.cat((txt, cond), dim=1), keys]) + + return (c_out,) + +class unCLIPConditioning: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.01}), + "noise_augmentation": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_adm" + + CATEGORY = "conditioning" + + def apply_adm(self, conditioning, clip_vision_output, strength, noise_augmentation): + if strength == 0: + return (conditioning, ) + + c = node_helpers.conditioning_set_values(conditioning, {"unclip_conditioning": [{"clip_vision_output": clip_vision_output, "strength": strength, "noise_augmentation": noise_augmentation}]}, append=True) + return (c, ) + +class GLIGENLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "gligen_name": (folder_paths.get_filename_list("gligen"), )}} + + RETURN_TYPES = ("GLIGEN",) + FUNCTION = "load_gligen" + + CATEGORY = "loaders" + + def load_gligen(self, gligen_name): + gligen_path = folder_paths.get_full_path_or_raise("gligen", gligen_name) + gligen = comfy.sd.load_gligen(gligen_path) + return (gligen,) + +class GLIGENTextBoxApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_to": ("CONDITIONING", ), + "clip": ("CLIP", ), + "gligen_textbox_model": ("GLIGEN", ), + "text": ("STRING", {"multiline": True, "dynamicPrompts": True}), + "width": ("INT", {"default": 64, "min": 8, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 64, "min": 8, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning/gligen" + + def append(self, conditioning_to, clip, gligen_textbox_model, text, width, height, x, y): + c = [] + cond, cond_pooled = clip.encode_from_tokens(clip.tokenize(text), return_pooled="unprojected") + for t in conditioning_to: + n = [t[0], t[1].copy()] + position_params = [(cond_pooled, height // 8, width // 8, y // 8, x // 8)] + prev = [] + if "gligen" in n[1]: + prev = n[1]['gligen'][2] + + n[1]['gligen'] = ("position", gligen_textbox_model, prev + position_params) + c.append(n) + return (c, ) + +class EmptyLatentImage: + def __init__(self): + self.device = comfy.model_management.intermediate_device() + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "width": ("INT", {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8, "tooltip": "The width of the latent images in pixels."}), + "height": ("INT", {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8, "tooltip": "The height of the latent images in pixels."}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096, "tooltip": "The number of latent images in the batch."}) + } + } + RETURN_TYPES = ("LATENT",) + OUTPUT_TOOLTIPS = ("The empty latent image batch.",) + FUNCTION = "generate" + + CATEGORY = "latent" + DESCRIPTION = "Create a new batch of empty latent images to be denoised via sampling." + + def generate(self, width, height, batch_size=1): + latent = torch.zeros([batch_size, 4, height // 8, width // 8], device=self.device) + return ({"samples":latent}, ) + + +class LatentFromBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "batch_index": ("INT", {"default": 0, "min": 0, "max": 63}), + "length": ("INT", {"default": 1, "min": 1, "max": 64}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "frombatch" + + CATEGORY = "latent/batch" + + def frombatch(self, samples, batch_index, length): + s = samples.copy() + s_in = samples["samples"] + batch_index = min(s_in.shape[0] - 1, batch_index) + length = min(s_in.shape[0] - batch_index, length) + s["samples"] = s_in[batch_index:batch_index + length].clone() + if "noise_mask" in samples: + masks = samples["noise_mask"] + if masks.shape[0] == 1: + s["noise_mask"] = masks.clone() + else: + if masks.shape[0] < s_in.shape[0]: + masks = masks.repeat(math.ceil(s_in.shape[0] / masks.shape[0]), 1, 1, 1)[:s_in.shape[0]] + s["noise_mask"] = masks[batch_index:batch_index + length].clone() + if "batch_index" not in s: + s["batch_index"] = [x for x in range(batch_index, batch_index+length)] + else: + s["batch_index"] = samples["batch_index"][batch_index:batch_index + length] + return (s,) + +class RepeatLatentBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "amount": ("INT", {"default": 1, "min": 1, "max": 64}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "repeat" + + CATEGORY = "latent/batch" + + def repeat(self, samples, amount): + s = samples.copy() + s_in = samples["samples"] + + s["samples"] = s_in.repeat((amount,) + ((1,) * (s_in.ndim - 1))) + if "noise_mask" in samples and samples["noise_mask"].shape[0] > 1: + masks = samples["noise_mask"] + if masks.shape[0] < s_in.shape[0]: + masks = masks.repeat((math.ceil(s_in.shape[0] / masks.shape[0]),) + ((1,) * (masks.ndim - 1)))[:s_in.shape[0]] + s["noise_mask"] = samples["noise_mask"].repeat((amount,) + ((1,) * (samples["noise_mask"].ndim - 1))) + if "batch_index" in s: + offset = max(s["batch_index"]) - min(s["batch_index"]) + 1 + s["batch_index"] = s["batch_index"] + [x + (i * offset) for i in range(1, amount) for x in s["batch_index"]] + return (s,) + +class LatentUpscale: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "bislerp"] + crop_methods = ["disabled", "center"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "crop": (s.crop_methods,)}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "upscale" + + CATEGORY = "latent" + + def upscale(self, samples, upscale_method, width, height, crop): + if width == 0 and height == 0: + s = samples + else: + s = samples.copy() + + if width == 0: + height = max(64, height) + width = max(64, round(samples["samples"].shape[-1] * height / samples["samples"].shape[-2])) + elif height == 0: + width = max(64, width) + height = max(64, round(samples["samples"].shape[-2] * width / samples["samples"].shape[-1])) + else: + width = max(64, width) + height = max(64, height) + + s["samples"] = comfy.utils.common_upscale(samples["samples"], width // 8, height // 8, upscale_method, crop) + return (s,) + +class LatentUpscaleBy: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "bislerp"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,), + "scale_by": ("FLOAT", {"default": 1.5, "min": 0.01, "max": 8.0, "step": 0.01}),}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "upscale" + + CATEGORY = "latent" + + def upscale(self, samples, upscale_method, scale_by): + s = samples.copy() + width = round(samples["samples"].shape[-1] * scale_by) + height = round(samples["samples"].shape[-2] * scale_by) + s["samples"] = comfy.utils.common_upscale(samples["samples"], width, height, upscale_method, "disabled") + return (s,) + +class LatentRotate: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "rotation": (["none", "90 degrees", "180 degrees", "270 degrees"],), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "rotate" + + CATEGORY = "latent/transform" + + def rotate(self, samples, rotation): + s = samples.copy() + rotate_by = 0 + if rotation.startswith("90"): + rotate_by = 1 + elif rotation.startswith("180"): + rotate_by = 2 + elif rotation.startswith("270"): + rotate_by = 3 + + s["samples"] = torch.rot90(samples["samples"], k=rotate_by, dims=[3, 2]) + return (s,) + +class LatentFlip: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "flip_method": (["x-axis: vertically", "y-axis: horizontally"],), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "flip" + + CATEGORY = "latent/transform" + + def flip(self, samples, flip_method): + s = samples.copy() + if flip_method.startswith("x"): + s["samples"] = torch.flip(samples["samples"], dims=[2]) + elif flip_method.startswith("y"): + s["samples"] = torch.flip(samples["samples"], dims=[3]) + + return (s,) + +class LatentComposite: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples_to": ("LATENT",), + "samples_from": ("LATENT",), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feather": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "composite" + + CATEGORY = "latent" + + def composite(self, samples_to, samples_from, x, y, composite_method="normal", feather=0): + x = x // 8 + y = y // 8 + feather = feather // 8 + samples_out = samples_to.copy() + s = samples_to["samples"].clone() + samples_to = samples_to["samples"] + samples_from = samples_from["samples"] + if feather == 0: + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] + else: + samples_from = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] + mask = torch.ones_like(samples_from) + for t in range(feather): + if y != 0: + mask[:,:,t:1+t,:] *= ((1.0/feather) * (t + 1)) + + if y + samples_from.shape[2] < samples_to.shape[2]: + mask[:,:,mask.shape[2] -1 -t: mask.shape[2]-t,:] *= ((1.0/feather) * (t + 1)) + if x != 0: + mask[:,:,:,t:1+t] *= ((1.0/feather) * (t + 1)) + if x + samples_from.shape[3] < samples_to.shape[3]: + mask[:,:,:,mask.shape[3]- 1 - t: mask.shape[3]- t] *= ((1.0/feather) * (t + 1)) + rev_mask = torch.ones_like(mask) - mask + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] * mask + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] * rev_mask + samples_out["samples"] = s + return (samples_out,) + +class LatentBlend: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "samples1": ("LATENT",), + "samples2": ("LATENT",), + "blend_factor": ("FLOAT", { + "default": 0.5, + "min": 0, + "max": 1, + "step": 0.01 + }), + }} + + RETURN_TYPES = ("LATENT",) + FUNCTION = "blend" + + CATEGORY = "_for_testing" + + def blend(self, samples1, samples2, blend_factor:float, blend_mode: str="normal"): + + samples_out = samples1.copy() + samples1 = samples1["samples"] + samples2 = samples2["samples"] + + if samples1.shape != samples2.shape: + samples2.permute(0, 3, 1, 2) + samples2 = comfy.utils.common_upscale(samples2, samples1.shape[3], samples1.shape[2], 'bicubic', crop='center') + samples2.permute(0, 2, 3, 1) + + samples_blended = self.blend_mode(samples1, samples2, blend_mode) + samples_blended = samples1 * blend_factor + samples_blended * (1 - blend_factor) + samples_out["samples"] = samples_blended + return (samples_out,) + + def blend_mode(self, img1, img2, mode): + if mode == "normal": + return img2 + else: + raise ValueError(f"Unsupported blend mode: {mode}") + +class LatentCrop: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "width": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "crop" + + CATEGORY = "latent/transform" + + def crop(self, samples, width, height, x, y): + s = samples.copy() + samples = samples['samples'] + x = x // 8 + y = y // 8 + + #enfonce minimum size of 64 + if x > (samples.shape[3] - 8): + x = samples.shape[3] - 8 + if y > (samples.shape[2] - 8): + y = samples.shape[2] - 8 + + new_height = height // 8 + new_width = width // 8 + to_x = new_width + x + to_y = new_height + y + s['samples'] = samples[:,:,y:to_y, x:to_x] + return (s,) + +class SetLatentNoiseMask: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "mask": ("MASK",), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "set_mask" + + CATEGORY = "latent/inpaint" + + def set_mask(self, samples, mask): + s = samples.copy() + s["noise_mask"] = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])) + return (s,) + +def common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False): + latent_image = latent["samples"] + latent_image = comfy.sample.fix_empty_latent_channels(model, latent_image) + + if disable_noise: + noise = torch.zeros(latent_image.size(), dtype=latent_image.dtype, layout=latent_image.layout, device="cpu") + else: + batch_inds = latent["batch_index"] if "batch_index" in latent else None + noise = comfy.sample.prepare_noise(latent_image, seed, batch_inds) + + noise_mask = None + if "noise_mask" in latent: + noise_mask = latent["noise_mask"] + + callback = latent_preview.prepare_callback(model, steps) + disable_pbar = not comfy.utils.PROGRESS_BAR_ENABLED + samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, + denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step, + force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) + out = latent.copy() + out["samples"] = samples + return (out, ) + +class KSampler: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL", {"tooltip": "The model used for denoising the input latent."}), + "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True, "tooltip": "The random seed used for creating the noise."}), + "steps": ("INT", {"default": 20, "min": 1, "max": 10000, "tooltip": "The number of steps used in the denoising process."}), + "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01, "tooltip": "The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality."}), + "sampler_name": (comfy.samplers.KSampler.SAMPLERS, {"tooltip": "The algorithm used when sampling, this can affect the quality, speed, and style of the generated output."}), + "scheduler": (comfy.samplers.KSampler.SCHEDULERS, {"tooltip": "The scheduler controls how noise is gradually removed to form the image."}), + "positive": ("CONDITIONING", {"tooltip": "The conditioning describing the attributes you want to include in the image."}), + "negative": ("CONDITIONING", {"tooltip": "The conditioning describing the attributes you want to exclude from the image."}), + "latent_image": ("LATENT", {"tooltip": "The latent image to denoise."}), + "denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01, "tooltip": "The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling."}), + } + } + + RETURN_TYPES = ("LATENT",) + OUTPUT_TOOLTIPS = ("The denoised latent.",) + FUNCTION = "sample" + + CATEGORY = "sampling" + DESCRIPTION = "Uses the provided model, positive and negative conditioning to denoise the latent image." + + def sample(self, model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0): + return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) + +class KSamplerAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": + {"model": ("MODEL",), + "add_noise": (["enable", "disable"], ), + "noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True}), + "steps": ("INT", {"default": 20, "min": 1, "max": 10000}), + "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}), + "sampler_name": (comfy.samplers.KSampler.SAMPLERS, ), + "scheduler": (comfy.samplers.KSampler.SCHEDULERS, ), + "positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "latent_image": ("LATENT", ), + "start_at_step": ("INT", {"default": 0, "min": 0, "max": 10000}), + "end_at_step": ("INT", {"default": 10000, "min": 0, "max": 10000}), + "return_with_leftover_noise": (["disable", "enable"], ), + } + } + + RETURN_TYPES = ("LATENT",) + FUNCTION = "sample" + + CATEGORY = "sampling" + + def sample(self, model, add_noise, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, start_at_step, end_at_step, return_with_leftover_noise, denoise=1.0): + force_full_denoise = True + if return_with_leftover_noise == "enable": + force_full_denoise = False + disable_noise = False + if add_noise == "disable": + disable_noise = True + return common_ksampler(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise, disable_noise=disable_noise, start_step=start_at_step, last_step=end_at_step, force_full_denoise=force_full_denoise) + +class SaveImage: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE", {"tooltip": "The images to save."}), + "filename_prefix": ("STRING", {"default": "ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."}) + }, + "hidden": { + "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO" + }, + } + + RETURN_TYPES = () + FUNCTION = "save_images" + + OUTPUT_NODE = True + + CATEGORY = "image" + DESCRIPTION = "Saves the input images to your ComfyUI output directory." + + def save_images(self, images, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None): + filename_prefix += self.prefix_append + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + results = list() + for (batch_number, image) in enumerate(images): + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + file = f"{filename_with_batch_num}_{counter:05}_.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + counter += 1 + + return { "ui": { "images": results } } + +class PreviewImage(SaveImage): + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 1 + + @classmethod + def INPUT_TYPES(s): + return {"required": + {"images": ("IMAGE", ), }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + +class LoadImage: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + files = folder_paths.filter_files_content_types(files, ["image"]) + return {"required": + {"image": (sorted(files), {"image_upload": True})}, + } + + CATEGORY = "image" + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "load_image" + def load_image(self, image): + image_path = folder_paths.get_annotated_filepath(image) + + img = node_helpers.pillow(Image.open, image_path) + + output_images = [] + output_masks = [] + w, h = None, None + + excluded_formats = ['MPO'] + + for i in ImageSequence.Iterator(img): + i = node_helpers.pillow(ImageOps.exif_transpose, i) + + if i.mode == 'I': + i = i.point(lambda i: i * (1 / 255)) + image = i.convert("RGB") + + if len(output_images) == 0: + w = image.size[0] + h = image.size[1] + + if image.size[0] != w or image.size[1] != h: + continue + + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + if 'A' in i.getbands(): + mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + elif i.mode == 'P' and 'transparency' in i.info: + mask = np.array(i.convert('RGBA').getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + else: + mask = torch.zeros((64,64), dtype=torch.float32, device="cpu") + output_images.append(image) + output_masks.append(mask.unsqueeze(0)) + + if len(output_images) > 1 and img.format not in excluded_formats: + output_image = torch.cat(output_images, dim=0) + output_mask = torch.cat(output_masks, dim=0) + else: + output_image = output_images[0] + output_mask = output_masks[0] + + return (output_image, output_mask) + + @classmethod + def IS_CHANGED(s, image): + image_path = folder_paths.get_annotated_filepath(image) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + +class LoadImageMask: + _color_channels = ["alpha", "red", "green", "blue"] + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + return {"required": + {"image": (sorted(files), {"image_upload": True}), + "channel": (s._color_channels, ), } + } + + CATEGORY = "mask" + + RETURN_TYPES = ("MASK",) + FUNCTION = "load_image" + def load_image(self, image, channel): + image_path = folder_paths.get_annotated_filepath(image) + i = node_helpers.pillow(Image.open, image_path) + i = node_helpers.pillow(ImageOps.exif_transpose, i) + if i.getbands() != ("R", "G", "B", "A"): + if i.mode == 'I': + i = i.point(lambda i: i * (1 / 255)) + i = i.convert("RGBA") + mask = None + c = channel[0].upper() + if c in i.getbands(): + mask = np.array(i.getchannel(c)).astype(np.float32) / 255.0 + mask = torch.from_numpy(mask) + if c == 'A': + mask = 1. - mask + else: + mask = torch.zeros((64,64), dtype=torch.float32, device="cpu") + return (mask.unsqueeze(0),) + + @classmethod + def IS_CHANGED(s, image, channel): + image_path = folder_paths.get_annotated_filepath(image) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + + +class LoadImageOutput(LoadImage): + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("COMBO", { + "image_upload": True, + "image_folder": "output", + "remote": { + "route": "/internal/files/output", + "refresh_button": True, + "control_after_refresh": "first", + }, + }), + } + } + + DESCRIPTION = "Load an image from the output folder. When the refresh button is clicked, the node will update the image list and automatically select the first image, allowing for easy iteration." + EXPERIMENTAL = True + FUNCTION = "load_image" + + +class ImageScale: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + crop_methods = ["disabled", "center"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "crop": (s.crop_methods,)}} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + + CATEGORY = "image/upscaling" + + def upscale(self, image, upscale_method, width, height, crop): + if width == 0 and height == 0: + s = image + else: + samples = image.movedim(-1,1) + + if width == 0: + width = max(1, round(samples.shape[3] * height / samples.shape[2])) + elif height == 0: + height = max(1, round(samples.shape[2] * width / samples.shape[3])) + + s = comfy.utils.common_upscale(samples, width, height, upscale_method, crop) + s = s.movedim(1,-1) + return (s,) + +class ImageScaleBy: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,), + "scale_by": ("FLOAT", {"default": 1.0, "min": 0.01, "max": 8.0, "step": 0.01}),}} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + + CATEGORY = "image/upscaling" + + def upscale(self, image, upscale_method, scale_by): + samples = image.movedim(-1,1) + width = round(samples.shape[3] * scale_by) + height = round(samples.shape[2] * scale_by) + s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled") + s = s.movedim(1,-1) + return (s,) + +class ImageInvert: + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",)}} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "invert" + + CATEGORY = "image" + + def invert(self, image): + s = 1.0 - image + return (s,) + +class ImageBatch: + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image1": ("IMAGE",), "image2": ("IMAGE",)}} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "batch" + + CATEGORY = "image" + + def batch(self, image1, image2): + if image1.shape[1:] != image2.shape[1:]: + image2 = comfy.utils.common_upscale(image2.movedim(-1,1), image1.shape[2], image1.shape[1], "bilinear", "center").movedim(1,-1) + s = torch.cat((image1, image2), dim=0) + return (s,) + +class EmptyImage: + def __init__(self, device="cpu"): + self.device = device + + @classmethod + def INPUT_TYPES(s): + return {"required": { "width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}), + "height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096}), + "color": ("INT", {"default": 0, "min": 0, "max": 0xFFFFFF, "step": 1, "display": "color"}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "generate" + + CATEGORY = "image" + + def generate(self, width, height, batch_size=1, color=0): + r = torch.full([batch_size, height, width, 1], ((color >> 16) & 0xFF) / 0xFF) + g = torch.full([batch_size, height, width, 1], ((color >> 8) & 0xFF) / 0xFF) + b = torch.full([batch_size, height, width, 1], ((color) & 0xFF) / 0xFF) + return (torch.cat((r, g, b), dim=-1), ) + +class ImagePadForOutpaint: + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 40, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, left, top, right, bottom, feathering): + d1, d2, d3, d4 = image.size() + + new_image = torch.ones( + (d1, d2 + top + bottom, d3 + left + right, d4), + dtype=torch.float32, + ) * 0.5 + + new_image[:, top:top + d2, left:left + d3, :] = image + + mask = torch.ones( + (d2 + top + bottom, d3 + left + right), + dtype=torch.float32, + ) + + t = torch.zeros( + (d2, d3), + dtype=torch.float32 + ) + + if feathering > 0 and feathering * 2 < d2 and feathering * 2 < d3: + + for i in range(d2): + for j in range(d3): + dt = i if top != 0 else d2 + db = d2 - i if bottom != 0 else d2 + + dl = j if left != 0 else d3 + dr = d3 - j if right != 0 else d3 + + d = min(dt, db, dl, dr) + + if d >= feathering: + continue + + v = (feathering - d) / feathering + + t[i, j] = v * v + + mask[top:top + d2, left:left + d3] = t + + return (new_image, mask.unsqueeze(0)) + + +NODE_CLASS_MAPPINGS = { + "KSampler": KSampler, + "CheckpointLoaderSimple": CheckpointLoaderSimple, + "CLIPTextEncode": CLIPTextEncode, + "CLIPSetLastLayer": CLIPSetLastLayer, + "VAEDecode": VAEDecode, + "VAEEncode": VAEEncode, + "VAEEncodeForInpaint": VAEEncodeForInpaint, + "VAELoader": VAELoader, + "EmptyLatentImage": EmptyLatentImage, + "LatentUpscale": LatentUpscale, + "LatentUpscaleBy": LatentUpscaleBy, + "LatentFromBatch": LatentFromBatch, + "RepeatLatentBatch": RepeatLatentBatch, + "SaveImage": SaveImage, + "PreviewImage": PreviewImage, + "LoadImage": LoadImage, + "LoadImageMask": LoadImageMask, + "LoadImageOutput": LoadImageOutput, + "ImageScale": ImageScale, + "ImageScaleBy": ImageScaleBy, + "ImageInvert": ImageInvert, + "ImageBatch": ImageBatch, + "ImagePadForOutpaint": ImagePadForOutpaint, + "EmptyImage": EmptyImage, + "ConditioningAverage": ConditioningAverage , + "ConditioningCombine": ConditioningCombine, + "ConditioningConcat": ConditioningConcat, + "ConditioningSetArea": ConditioningSetArea, + "ConditioningSetAreaPercentage": ConditioningSetAreaPercentage, + "ConditioningSetAreaStrength": ConditioningSetAreaStrength, + "ConditioningSetMask": ConditioningSetMask, + "KSamplerAdvanced": KSamplerAdvanced, + "SetLatentNoiseMask": SetLatentNoiseMask, + "LatentComposite": LatentComposite, + "LatentBlend": LatentBlend, + "LatentRotate": LatentRotate, + "LatentFlip": LatentFlip, + "LatentCrop": LatentCrop, + "LoraLoader": LoraLoader, + "CLIPLoader": CLIPLoader, + "UNETLoader": UNETLoader, + "DualCLIPLoader": DualCLIPLoader, + "CLIPVisionEncode": CLIPVisionEncode, + "StyleModelApply": StyleModelApply, + "unCLIPConditioning": unCLIPConditioning, + "ControlNetApply": ControlNetApply, + "ControlNetApplyAdvanced": ControlNetApplyAdvanced, + "ControlNetLoader": ControlNetLoader, + "DiffControlNetLoader": DiffControlNetLoader, + "StyleModelLoader": StyleModelLoader, + "CLIPVisionLoader": CLIPVisionLoader, + "VAEDecodeTiled": VAEDecodeTiled, + "VAEEncodeTiled": VAEEncodeTiled, + "unCLIPCheckpointLoader": unCLIPCheckpointLoader, + "GLIGENLoader": GLIGENLoader, + "GLIGENTextBoxApply": GLIGENTextBoxApply, + "InpaintModelConditioning": InpaintModelConditioning, + + "CheckpointLoader": CheckpointLoader, + "DiffusersLoader": DiffusersLoader, + + "LoadLatent": LoadLatent, + "SaveLatent": SaveLatent, + + "ConditioningZeroOut": ConditioningZeroOut, + "ConditioningSetTimestepRange": ConditioningSetTimestepRange, + "LoraLoaderModelOnly": LoraLoaderModelOnly, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + # Sampling + "KSampler": "KSampler", + "KSamplerAdvanced": "KSampler (Advanced)", + # Loaders + "CheckpointLoader": "Load Checkpoint With Config (DEPRECATED)", + "CheckpointLoaderSimple": "Load Checkpoint", + "VAELoader": "Load VAE", + "LoraLoader": "Load LoRA", + "CLIPLoader": "Load CLIP", + "ControlNetLoader": "Load ControlNet Model", + "DiffControlNetLoader": "Load ControlNet Model (diff)", + "StyleModelLoader": "Load Style Model", + "CLIPVisionLoader": "Load CLIP Vision", + "UpscaleModelLoader": "Load Upscale Model", + "UNETLoader": "Load Diffusion Model", + # Conditioning + "CLIPVisionEncode": "CLIP Vision Encode", + "StyleModelApply": "Apply Style Model", + "CLIPTextEncode": "CLIP Text Encode (Prompt)", + "CLIPSetLastLayer": "CLIP Set Last Layer", + "ConditioningCombine": "Conditioning (Combine)", + "ConditioningAverage ": "Conditioning (Average)", + "ConditioningConcat": "Conditioning (Concat)", + "ConditioningSetArea": "Conditioning (Set Area)", + "ConditioningSetAreaPercentage": "Conditioning (Set Area with Percentage)", + "ConditioningSetMask": "Conditioning (Set Mask)", + "ControlNetApply": "Apply ControlNet (OLD)", + "ControlNetApplyAdvanced": "Apply ControlNet", + # Latent + "VAEEncodeForInpaint": "VAE Encode (for Inpainting)", + "SetLatentNoiseMask": "Set Latent Noise Mask", + "VAEDecode": "VAE Decode", + "VAEEncode": "VAE Encode", + "LatentRotate": "Rotate Latent", + "LatentFlip": "Flip Latent", + "LatentCrop": "Crop Latent", + "EmptyLatentImage": "Empty Latent Image", + "LatentUpscale": "Upscale Latent", + "LatentUpscaleBy": "Upscale Latent By", + "LatentComposite": "Latent Composite", + "LatentBlend": "Latent Blend", + "LatentFromBatch" : "Latent From Batch", + "RepeatLatentBatch": "Repeat Latent Batch", + # Image + "SaveImage": "Save Image", + "PreviewImage": "Preview Image", + "LoadImage": "Load Image", + "LoadImageMask": "Load Image (as Mask)", + "LoadImageOutput": "Load Image (from Outputs)", + "ImageScale": "Upscale Image", + "ImageScaleBy": "Upscale Image By", + "ImageUpscaleWithModel": "Upscale Image (using Model)", + "ImageInvert": "Invert Image", + "ImagePadForOutpaint": "Pad Image for Outpainting", + "ImageBatch": "Batch Images", + "ImageCrop": "Image Crop", + "ImageStitch": "Image Stitch", + "ImageBlend": "Image Blend", + "ImageBlur": "Image Blur", + "ImageQuantize": "Image Quantize", + "ImageSharpen": "Image Sharpen", + "ImageScaleToTotalPixels": "Scale Image to Total Pixels", + "GetImageSize": "Get Image Size", + # _for_testing + "VAEDecodeTiled": "VAE Decode (Tiled)", + "VAEEncodeTiled": "VAE Encode (Tiled)", +} + +EXTENSION_WEB_DIRS = {} + +# Dictionary of successfully loaded module names and associated directories. +LOADED_MODULE_DIRS = {} + + +def get_module_name(module_path: str) -> str: + """ + Returns the module name based on the given module path. + Examples: + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node.py") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__.py") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__/") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node.disabled") -> "custom_nodes + Args: + module_path (str): The path of the module. + Returns: + str: The module name. + """ + base_path = os.path.basename(module_path) + if os.path.isfile(module_path): + base_path = os.path.splitext(base_path)[0] + return base_path + + +async def load_custom_node(module_path: str, ignore=set(), module_parent="custom_nodes") -> bool: + module_name = get_module_name(module_path) + if os.path.isfile(module_path): + sp = os.path.splitext(module_path) + module_name = sp[0] + sys_module_name = module_name + elif os.path.isdir(module_path): + sys_module_name = module_path.replace(".", "_x_") + + try: + logging.debug("Trying to load custom node {}".format(module_path)) + if os.path.isfile(module_path): + module_spec = importlib.util.spec_from_file_location(sys_module_name, module_path) + module_dir = os.path.split(module_path)[0] + else: + module_spec = importlib.util.spec_from_file_location(sys_module_name, os.path.join(module_path, "__init__.py")) + module_dir = module_path + + module = importlib.util.module_from_spec(module_spec) + sys.modules[sys_module_name] = module + module_spec.loader.exec_module(module) + + LOADED_MODULE_DIRS[module_name] = os.path.abspath(module_dir) + + try: + from comfy_config import config_parser + + project_config = config_parser.extract_node_configuration(module_path) + + web_dir_name = project_config.tool_comfy.web + + if web_dir_name: + web_dir_path = os.path.join(module_path, web_dir_name) + + if os.path.isdir(web_dir_path): + project_name = project_config.project.name + + EXTENSION_WEB_DIRS[project_name] = web_dir_path + + logging.info("Automatically register web folder {} for {}".format(web_dir_name, project_name)) + except Exception as e: + logging.warning(f"Unable to parse pyproject.toml due to lack dependency pydantic-settings, please run 'pip install -r requirements.txt': {e}") + + if hasattr(module, "WEB_DIRECTORY") and getattr(module, "WEB_DIRECTORY") is not None: + web_dir = os.path.abspath(os.path.join(module_dir, getattr(module, "WEB_DIRECTORY"))) + if os.path.isdir(web_dir): + EXTENSION_WEB_DIRS[module_name] = web_dir + + # V1 node definition + if hasattr(module, "NODE_CLASS_MAPPINGS") and getattr(module, "NODE_CLASS_MAPPINGS") is not None: + for name, node_cls in module.NODE_CLASS_MAPPINGS.items(): + if name not in ignore: + NODE_CLASS_MAPPINGS[name] = node_cls + node_cls.RELATIVE_PYTHON_MODULE = "{}.{}".format(module_parent, get_module_name(module_path)) + if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS") and getattr(module, "NODE_DISPLAY_NAME_MAPPINGS") is not None: + NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS) + return True + # V3 Extension Definition + elif hasattr(module, "comfy_entrypoint"): + entrypoint = getattr(module, "comfy_entrypoint") + if not callable(entrypoint): + logging.warning(f"comfy_entrypoint in {module_path} is not callable, skipping.") + return False + try: + if inspect.iscoroutinefunction(entrypoint): + extension = await entrypoint() + else: + extension = entrypoint() + if not isinstance(extension, ComfyExtension): + logging.warning(f"comfy_entrypoint in {module_path} did not return a ComfyExtension, skipping.") + return False + node_list = await extension.get_node_list() + if not isinstance(node_list, list): + logging.warning(f"comfy_entrypoint in {module_path} did not return a list of nodes, skipping.") + return False + for node_cls in node_list: + node_cls: io.ComfyNode + schema = node_cls.GET_SCHEMA() + if schema.node_id not in ignore: + NODE_CLASS_MAPPINGS[schema.node_id] = node_cls + node_cls.RELATIVE_PYTHON_MODULE = "{}.{}".format(module_parent, get_module_name(module_path)) + if schema.display_name is not None: + NODE_DISPLAY_NAME_MAPPINGS[schema.node_id] = schema.display_name + return True + except Exception as e: + logging.warning(f"Error while calling comfy_entrypoint in {module_path}: {e}") + return False + else: + logging.warning(f"Skip {module_path} module for custom nodes due to the lack of NODE_CLASS_MAPPINGS or NODES_LIST (need one).") + return False + except Exception as e: + logging.warning(traceback.format_exc()) + logging.warning(f"Cannot import {module_path} module for custom nodes: {e}") + return False + +async def init_external_custom_nodes(): + """ + Initializes the external custom nodes. + + This function loads custom nodes from the specified folder paths and imports them into the application. + It measures the import times for each custom node and logs the results. + + Returns: + None + """ + base_node_names = set(NODE_CLASS_MAPPINGS.keys()) + node_paths = folder_paths.get_folder_paths("custom_nodes") + node_import_times = [] + for custom_node_path in node_paths: + possible_modules = os.listdir(os.path.realpath(custom_node_path)) + if "__pycache__" in possible_modules: + possible_modules.remove("__pycache__") + + for possible_module in possible_modules: + module_path = os.path.join(custom_node_path, possible_module) + if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue + if module_path.endswith(".disabled"): continue + if args.disable_all_custom_nodes and possible_module not in args.whitelist_custom_nodes: + logging.info(f"Skipping {possible_module} due to disable_all_custom_nodes and whitelist_custom_nodes") + continue + time_before = time.perf_counter() + success = await load_custom_node(module_path, base_node_names, module_parent="custom_nodes") + node_import_times.append((time.perf_counter() - time_before, module_path, success)) + + if len(node_import_times) > 0: + logging.info("\nImport times for custom nodes:") + for n in sorted(node_import_times): + if n[2]: + import_message = "" + else: + import_message = " (IMPORT FAILED)" + logging.info("{:6.1f} seconds{}: {}".format(n[0], import_message, n[1])) + logging.info("") + +async def init_builtin_extra_nodes(): + """ + Initializes the built-in extra nodes in ComfyUI. + + This function loads the extra node files located in the "comfy_extras" directory and imports them into ComfyUI. + If any of the extra node files fail to import, a warning message is logged. + + Returns: + None + """ + extras_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_extras") + extras_files = [ + "nodes_latent.py", + "nodes_hypernetwork.py", + "nodes_upscale_model.py", + "nodes_post_processing.py", + "nodes_mask.py", + "nodes_compositing.py", + "nodes_rebatch.py", + "nodes_model_merging.py", + "nodes_tomesd.py", + "nodes_clip_sdxl.py", + "nodes_canny.py", + "nodes_freelunch.py", + "nodes_custom_sampler.py", + "nodes_hypertile.py", + "nodes_model_advanced.py", + "nodes_model_downscale.py", + "nodes_images.py", + "nodes_video_model.py", + "nodes_train.py", + "nodes_sag.py", + "nodes_perpneg.py", + "nodes_stable3d.py", + "nodes_sdupscale.py", + "nodes_photomaker.py", + "nodes_pixart.py", + "nodes_cond.py", + "nodes_morphology.py", + "nodes_stable_cascade.py", + "nodes_differential_diffusion.py", + "nodes_ip2p.py", + "nodes_model_merging_model_specific.py", + "nodes_pag.py", + "nodes_align_your_steps.py", + "nodes_attention_multiply.py", + "nodes_advanced_samplers.py", + "nodes_webcam.py", + "nodes_audio.py", + "nodes_sd3.py", + "nodes_gits.py", + "nodes_controlnet.py", + "nodes_hunyuan.py", + "nodes_flux.py", + "nodes_lora_extract.py", + "nodes_torch_compile.py", + "nodes_mochi.py", + "nodes_slg.py", + "nodes_mahiro.py", + "nodes_lt.py", + "nodes_hooks.py", + "nodes_load_3d.py", + "nodes_cosmos.py", + "nodes_video.py", + "nodes_lumina2.py", + "nodes_wan.py", + "nodes_lotus.py", + "nodes_hunyuan3d.py", + "nodes_primitive.py", + "nodes_cfg.py", + "nodes_optimalsteps.py", + "nodes_hidream.py", + "nodes_fresca.py", + "nodes_apg.py", + "nodes_preview_any.py", + "nodes_ace.py", + "nodes_string.py", + "nodes_camera_trajectory.py", + "nodes_edit_model.py", + "nodes_tcfg.py", + ] + + import_failed = [] + for node_file in extras_files: + if not await load_custom_node(os.path.join(extras_dir, node_file), module_parent="comfy_extras"): + import_failed.append(node_file) + + return import_failed + + +async def init_builtin_api_nodes(): + api_nodes_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_api_nodes") + api_nodes_files = [ + "nodes_ideogram.py", + "nodes_openai.py", + "nodes_minimax.py", + "nodes_veo2.py", + "nodes_kling.py", + "nodes_bfl.py", + "nodes_luma.py", + "nodes_recraft.py", + "nodes_pixverse.py", + "nodes_stability.py", + "nodes_pika.py", + "nodes_runway.py", + "nodes_tripo.py", + "nodes_moonvalley.py", + "nodes_rodin.py", + "nodes_gemini.py", + ] + + if not await load_custom_node(os.path.join(api_nodes_dir, "canary.py"), module_parent="comfy_api_nodes"): + return api_nodes_files + + import_failed = [] + for node_file in api_nodes_files: + if not await load_custom_node(os.path.join(api_nodes_dir, node_file), module_parent="comfy_api_nodes"): + import_failed.append(node_file) + + return import_failed + +async def init_public_apis(): + register_versions([ + ComfyAPIWithVersion( + version=getattr(v, "VERSION"), + api_class=v + ) for v in supported_versions + ]) + +async def init_extra_nodes(init_custom_nodes=True, init_api_nodes=True): + await init_public_apis() + + import_failed = await init_builtin_extra_nodes() + + import_failed_api = [] + if init_api_nodes: + import_failed_api = await init_builtin_api_nodes() + + if init_custom_nodes: + await init_external_custom_nodes() + else: + logging.info("Skipping loading of custom nodes") + + if len(import_failed_api) > 0: + logging.warning("WARNING: some comfy_api_nodes/ nodes did not import correctly. This may be because they are missing some dependencies.\n") + for node in import_failed_api: + logging.warning("IMPORT FAILED: {}".format(node)) + logging.warning("\nThis issue might be caused by new missing dependencies added the last time you updated ComfyUI.") + if args.windows_standalone_build: + logging.warning("Please run the update script: update/update_comfyui.bat") + else: + logging.warning("Please do a: pip install -r requirements.txt") + logging.warning("") + + if len(import_failed) > 0: + logging.warning("WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.\n") + for node in import_failed: + logging.warning("IMPORT FAILED: {}".format(node)) + logging.warning("\nThis issue might be caused by new missing dependencies added the last time you updated ComfyUI.") + if args.windows_standalone_build: + logging.warning("Please run the update script: update/update_comfyui.bat") + else: + logging.warning("Please do a: pip install -r requirements.txt") + logging.warning("") + + return import_failed diff --git a/docs/hel-892/resize-compare-reference/rgthree-members.json b/docs/hel-892/resize-compare-reference/rgthree-members.json new file mode 100644 index 00000000..36958b1a --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree-members.json @@ -0,0 +1,258 @@ +[ + ".github/workflows/publish_comfy_registry_action.yml", + ".gitignore", + ".prettierrc.json", + ".pylintrc", + ".style.yapf", + "LICENSE", + "README.md", + "__build__.py", + "__commit__.py", + "__init__.py", + "__update_comfy__.py", + "docs/rgthree_advanced.png", + "docs/rgthree_advanced_metadata.png", + "docs/rgthree_context.png", + "docs/rgthree_context_metadata.png", + "docs/rgthree_router.png", + "docs/rgthree_seed.png", + "package-lock.json", + "package.json", + "prestartup_script.py", + "py/__init__.py", + "py/any_switch.py", + "py/config.py", + "py/constants.py", + "py/context.py", + "py/context_big.py", + "py/context_merge.py", + "py/context_merge_big.py", + "py/context_switch.py", + "py/context_switch_big.py", + "py/context_utils.py", + "py/display_any.py", + "py/dynamic_context.py", + "py/dynamic_context_switch.py", + "py/image_comparer.py", + "py/image_inset_crop.py", + "py/image_or_latent_size.py", + "py/image_resize.py", + "py/ksampler_config.py", + "py/log.py", + "py/lora_stack.py", + "py/power_lora_loader.py", + "py/power_primitive.py", + "py/power_prompt.py", + "py/power_prompt_simple.py", + "py/power_prompt_utils.py", + "py/power_puter.py", + "py/pyproject.py", + "py/sdxl_empty_latent_image.py", + "py/sdxl_power_prompt_postive.py", + "py/sdxl_power_prompt_simple.py", + "py/seed.py", + "py/server/rgthree_server.py", + "py/server/routes_config.py", + "py/server/routes_model_info.py", + "py/server/utils_info.py", + "py/server/utils_server.py", + "py/utils.py", + "py/utils_userdata.py", + "pyproject.toml", + "requirements.txt", + "rgthree_config.json.default", + "src_web/comfyui/any_switch.ts", + "src_web/comfyui/base_any_input_connected_node.ts", + "src_web/comfyui/base_node.ts", + "src_web/comfyui/base_node_collector.ts", + "src_web/comfyui/base_node_mode_changer.ts", + "src_web/comfyui/base_power_prompt.ts", + "src_web/comfyui/bookmark.ts", + "src_web/comfyui/bypasser.ts", + "src_web/comfyui/comfy_ui_bar.ts", + "src_web/comfyui/config.ts", + "src_web/comfyui/constants.ts", + "src_web/comfyui/context.ts", + "src_web/comfyui/dialog_info.ts", + "src_web/comfyui/display_any.ts", + "src_web/comfyui/dynamic_context.ts", + "src_web/comfyui/dynamic_context_base.ts", + "src_web/comfyui/dynamic_context_switch.ts", + "src_web/comfyui/fast_actions_button.ts", + "src_web/comfyui/fast_groups_bypasser.ts", + "src_web/comfyui/fast_groups_muter.ts", + "src_web/comfyui/feature_group_fast_toggle.ts", + "src_web/comfyui/feature_import_individual_nodes.ts", + "src_web/comfyui/image_comparer.ts", + "src_web/comfyui/image_inset_crop.ts", + "src_web/comfyui/image_or_latent_size.ts", + "src_web/comfyui/label.ts", + "src_web/comfyui/menu_auto_nest.ts", + "src_web/comfyui/menu_copy_image.ts", + "src_web/comfyui/menu_queue_node.ts", + "src_web/comfyui/muter.ts", + "src_web/comfyui/node_collector.ts", + "src_web/comfyui/node_mode_relay.ts", + "src_web/comfyui/node_mode_repeater.ts", + "src_web/comfyui/power_conductor.ts", + "src_web/comfyui/power_lora_loader.ts", + "src_web/comfyui/power_primitive.ts", + "src_web/comfyui/power_prompt.ts", + "src_web/comfyui/power_puter.ts", + "src_web/comfyui/random_unmuter.ts", + "src_web/comfyui/reroute.ts", + "src_web/comfyui/rgthree.scss", + "src_web/comfyui/rgthree.ts", + "src_web/comfyui/seed.ts", + "src_web/comfyui/services/bookmarks_services.ts", + "src_web/comfyui/services/config_service.ts", + "src_web/comfyui/services/context_service.ts", + "src_web/comfyui/services/fast_groups_service.ts", + "src_web/comfyui/services/key_events_services.ts", + "src_web/comfyui/testing/comfyui_env.ts", + "src_web/comfyui/testing/runner.ts", + "src_web/comfyui/tests/context_dynamic_tests.ts", + "src_web/comfyui/tests/image_or_latent_size_tests.ts", + "src_web/comfyui/tests/power_puter.ts", + "src_web/comfyui/utils.ts", + "src_web/comfyui/utils_canvas.ts", + "src_web/comfyui/utils_inputs_outputs.ts", + "src_web/comfyui/utils_menu.ts", + "src_web/comfyui/utils_widgets.ts", + "src_web/common/comfyui_shim.ts", + "src_web/common/comfyui_shim_pnginfo.ts", + "src_web/common/components/base_custom_element.ts", + "src_web/common/css/buttons.scss", + "src_web/common/css/dialog.scss", + "src_web/common/css/dialog_lora_chooser.scss", + "src_web/common/css/dialog_model_info.scss", + "src_web/common/css/menu.scss", + "src_web/common/css/pages_base.scss", + "src_web/common/dialog.ts", + "src_web/common/link_fixer.ts", + "src_web/common/media/rgthree.svg", + "src_web/common/media/svgs.ts", + "src_web/common/menu.ts", + "src_web/common/model_info_service.ts", + "src_web/common/progress_bar.ts", + "src_web/common/prompt_service.ts", + "src_web/common/py_parser.ts", + "src_web/common/rgthree_api.ts", + "src_web/common/shared_utils.ts", + "src_web/common/utils_dom.ts", + "src_web/common/utils_templates.ts", + "src_web/common/utils_workflow.ts", + "src_web/lib/tree-sitter-python.wasm", + "src_web/lib/tree-sitter.js", + "src_web/lib/tree-sitter.wasm", + "src_web/link_fixer/icon_file_json.png", + "src_web/link_fixer/index.html", + "src_web/link_fixer/link_page.ts", + "src_web/models/components/model-info-card.html", + "src_web/models/components/model-info-card.scss", + "src_web/models/components/model-info-card.ts", + "src_web/models/index.html", + "src_web/models/models.scss", + "src_web/models/models_info_page.ts", + "src_web/scripts_comfy/README.md", + "src_web/scripts_comfy/api.ts", + "src_web/scripts_comfy/app.ts", + "src_web/scripts_comfy/ui/components/button.ts", + "src_web/scripts_comfy/ui/components/buttonGroup.ts", + "src_web/scripts_comfy/ui/components/popup.ts", + "src_web/scripts_comfy/widgets.ts", + "src_web/typings/comfy.d.ts", + "src_web/typings/index.d.ts", + "src_web/typings/litegraph.d.ts", + "src_web/typings/rgthree.d.ts", + "src_web/typings/web-tree-sitter.d.ts", + "tsconfig.json", + "web/comfyui/any_switch.js", + "web/comfyui/base_any_input_connected_node.js", + "web/comfyui/base_node.js", + "web/comfyui/base_node_collector.js", + "web/comfyui/base_node_mode_changer.js", + "web/comfyui/base_power_prompt.js", + "web/comfyui/bookmark.js", + "web/comfyui/bypasser.js", + "web/comfyui/comfy_ui_bar.js", + "web/comfyui/config.js", + "web/comfyui/constants.js", + "web/comfyui/context.js", + "web/comfyui/dialog_info.js", + "web/comfyui/display_any.js", + "web/comfyui/dynamic_context.js", + "web/comfyui/dynamic_context_base.js", + "web/comfyui/dynamic_context_switch.js", + "web/comfyui/fast_actions_button.js", + "web/comfyui/fast_groups_bypasser.js", + "web/comfyui/fast_groups_muter.js", + "web/comfyui/feature_group_fast_toggle.js", + "web/comfyui/feature_import_individual_nodes.js", + "web/comfyui/image_comparer.js", + "web/comfyui/image_inset_crop.js", + "web/comfyui/image_or_latent_size.js", + "web/comfyui/label.js", + "web/comfyui/menu_auto_nest.js", + "web/comfyui/menu_copy_image.js", + "web/comfyui/menu_queue_node.js", + "web/comfyui/muter.js", + "web/comfyui/node_collector.js", + "web/comfyui/node_mode_relay.js", + "web/comfyui/node_mode_repeater.js", + "web/comfyui/power_conductor.js", + "web/comfyui/power_lora_loader.js", + "web/comfyui/power_primitive.js", + "web/comfyui/power_prompt.js", + "web/comfyui/power_puter.js", + "web/comfyui/random_unmuter.js", + "web/comfyui/reroute.js", + "web/comfyui/rgthree.css", + "web/comfyui/rgthree.js", + "web/comfyui/seed.js", + "web/comfyui/services/bookmarks_services.js", + "web/comfyui/services/config_service.js", + "web/comfyui/services/context_service.js", + "web/comfyui/services/fast_groups_service.js", + "web/comfyui/services/key_events_services.js", + "web/comfyui/utils.js", + "web/comfyui/utils_canvas.js", + "web/comfyui/utils_inputs_outputs.js", + "web/comfyui/utils_menu.js", + "web/comfyui/utils_widgets.js", + "web/common/comfyui_shim.js", + "web/common/comfyui_shim_pnginfo.js", + "web/common/components/base_custom_element.js", + "web/common/css/buttons.css", + "web/common/css/dialog.css", + "web/common/css/dialog_lora_chooser.css", + "web/common/css/dialog_model_info.css", + "web/common/css/menu.css", + "web/common/css/pages_base.css", + "web/common/dialog.js", + "web/common/link_fixer.js", + "web/common/media/rgthree.svg", + "web/common/media/svgs.js", + "web/common/menu.js", + "web/common/model_info_service.js", + "web/common/progress_bar.js", + "web/common/prompt_service.js", + "web/common/py_parser.js", + "web/common/rgthree_api.js", + "web/common/shared_utils.js", + "web/common/utils_dom.js", + "web/common/utils_templates.js", + "web/common/utils_workflow.js", + "web/lib/tree-sitter-python.wasm", + "web/lib/tree-sitter.js", + "web/lib/tree-sitter.wasm", + "web/link_fixer/icon_file_json.png", + "web/link_fixer/index.html", + "web/link_fixer/link_page.js", + "web/models/components/model-info-card.css", + "web/models/components/model-info-card.html", + "web/models/components/model-info-card.js", + "web/models/index.html", + "web/models/models.css", + "web/models/models_info_page.js" +] diff --git a/docs/hel-892/resize-compare-reference/rgthree-registry.json b/docs/hel-892/resize-compare-reference/rgthree-registry.json new file mode 100644 index 00000000..cc6a996a --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree-registry.json @@ -0,0 +1 @@ +{"changelog":"","createdAt":"2025-10-06T00:58:58.121407Z","dependencies":[],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip","id":"35df2680-1544-442a-9bc5-af7862d244a5","node_id":"rgthree-comfy","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.0.2510052058"} diff --git a/docs/hel-892/resize-compare-reference/rgthree-source.zip b/docs/hel-892/resize-compare-reference/rgthree-source.zip new file mode 100644 index 00000000..144c18e8 Binary files /dev/null and b/docs/hel-892/resize-compare-reference/rgthree-source.zip differ diff --git a/docs/hel-892/resize-compare-reference/rgthree__LICENSE b/docs/hel-892/resize-compare-reference/rgthree__LICENSE new file mode 100644 index 00000000..5a4eb87c --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree__LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Regis Gaughan, III (rgthree) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/hel-892/resize-compare-reference/rgthree____init__.py b/docs/hel-892/resize-compare-reference/rgthree____init__.py new file mode 100644 index 00000000..4d564850 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree____init__.py @@ -0,0 +1,112 @@ +""" +@author: rgthree +@title: Comfy Nodes +@nickname: rgthree +@description: A bunch of nodes I created that I also find useful. +""" + +from glob import glob +import json +import os +import shutil +import re +import random + +import execution + +from .py.log import log +from .py.config import get_config_value +from .py.server.rgthree_server import * + +from .py.context import RgthreeContext +from .py.context_switch import RgthreeContextSwitch +from .py.context_switch_big import RgthreeContextSwitchBig +from .py.display_any import RgthreeDisplayAny, RgthreeDisplayInt +from .py.lora_stack import RgthreeLoraLoaderStack +from .py.seed import RgthreeSeed +from .py.sdxl_empty_latent_image import RgthreeSDXLEmptyLatentImage +from .py.power_prompt import RgthreePowerPrompt +from .py.power_prompt_simple import RgthreePowerPromptSimple +from .py.image_inset_crop import RgthreeImageInsetCrop +from .py.context_big import RgthreeBigContext +from .py.dynamic_context import RgthreeDynamicContext +from .py.dynamic_context_switch import RgthreeDynamicContextSwitch +from .py.ksampler_config import RgthreeKSamplerConfig +from .py.sdxl_power_prompt_postive import RgthreeSDXLPowerPromptPositive +from .py.sdxl_power_prompt_simple import RgthreeSDXLPowerPromptSimple +from .py.any_switch import RgthreeAnySwitch +from .py.context_merge import RgthreeContextMerge +from .py.context_merge_big import RgthreeContextMergeBig +from .py.image_comparer import RgthreeImageComparer +from .py.power_lora_loader import RgthreePowerLoraLoader +from .py.power_primitive import RgthreePowerPrimitive +from .py.image_or_latent_size import RgthreeImageOrLatentSize +from .py.image_resize import RgthreeImageResize +from .py.power_puter import RgthreePowerPuter + +NODE_CLASS_MAPPINGS = { + RgthreeBigContext.NAME: RgthreeBigContext, + RgthreeContext.NAME: RgthreeContext, + RgthreeContextSwitch.NAME: RgthreeContextSwitch, + RgthreeContextSwitchBig.NAME: RgthreeContextSwitchBig, + RgthreeContextMerge.NAME: RgthreeContextMerge, + RgthreeContextMergeBig.NAME: RgthreeContextMergeBig, + RgthreeDisplayInt.NAME: RgthreeDisplayInt, + RgthreeDisplayAny.NAME: RgthreeDisplayAny, + RgthreeLoraLoaderStack.NAME: RgthreeLoraLoaderStack, + RgthreeSeed.NAME: RgthreeSeed, + RgthreeImageInsetCrop.NAME: RgthreeImageInsetCrop, + RgthreePowerPrompt.NAME: RgthreePowerPrompt, + RgthreePowerPromptSimple.NAME: RgthreePowerPromptSimple, + RgthreeKSamplerConfig.NAME: RgthreeKSamplerConfig, + RgthreeSDXLEmptyLatentImage.NAME: RgthreeSDXLEmptyLatentImage, + RgthreeSDXLPowerPromptPositive.NAME: RgthreeSDXLPowerPromptPositive, + RgthreeSDXLPowerPromptSimple.NAME: RgthreeSDXLPowerPromptSimple, + RgthreeAnySwitch.NAME: RgthreeAnySwitch, + RgthreeImageComparer.NAME: RgthreeImageComparer, + RgthreePowerLoraLoader.NAME: RgthreePowerLoraLoader, + RgthreePowerPrimitive.NAME: RgthreePowerPrimitive, + RgthreeImageOrLatentSize.NAME: RgthreeImageOrLatentSize, + RgthreeImageResize.NAME: RgthreeImageResize, + RgthreePowerPuter.NAME: RgthreePowerPuter, +} + +if get_config_value('unreleased.dynamic_context.enabled') is True: + NODE_CLASS_MAPPINGS[RgthreeDynamicContext.NAME] = RgthreeDynamicContext + NODE_CLASS_MAPPINGS[RgthreeDynamicContextSwitch.NAME] = RgthreeDynamicContextSwitch + +# WEB_DIRECTORY is the comfyui nodes directory that ComfyUI will link and auto-load. +WEB_DIRECTORY = "./web/comfyui" + +THIS_DIR = os.path.dirname(os.path.abspath(__file__)) +DIR_WEB = os.path.abspath(f'{THIS_DIR}/{WEB_DIRECTORY}') +DIR_PY = os.path.abspath(f'{THIS_DIR}/py') + +# remove old directories +OLD_DIRS = [ + os.path.abspath(f'{THIS_DIR}/../../web/extensions/rgthree'), + os.path.abspath(f'{THIS_DIR}/../../web/extensions/rgthree-comfy'), +] +for old_dir in OLD_DIRS: + if os.path.exists(old_dir): + shutil.rmtree(old_dir) + +__all__ = ['NODE_CLASS_MAPPINGS', 'WEB_DIRECTORY'] + +NOT_NODES = ['constants', 'log', 'utils', 'rgthree', 'rgthree_server', 'image_clipbaord', 'config'] + +nodes = [] +for file in glob(os.path.join(DIR_PY, '*.py')) + glob(os.path.join(DIR_WEB, '*.js')): + name = os.path.splitext(os.path.basename(file))[0] + if name in NOT_NODES or name in nodes: + continue + if name.startswith('_') or name.startswith('base') or 'utils' in name: + continue + nodes.append(name) + if name == 'display_any': + nodes.append('display_int') + +print() +adjs = ['exciting', 'extraordinary', 'epic', 'fantastic', 'magnificent'] +log(f'Loaded {len(nodes)} {random.choice(adjs)} nodes. 🎉', color='BRIGHT_GREEN') +print() diff --git a/docs/hel-892/resize-compare-reference/rgthree__py__constants.py b/docs/hel-892/resize-compare-reference/rgthree__py__constants.py new file mode 100644 index 00000000..73b7d687 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree__py__constants.py @@ -0,0 +1,11 @@ + +NAMESPACE='rgthree' + +def get_name(name): + return '{} ({})'.format(name, NAMESPACE) + +def get_category(sub_dirs = None): + if sub_dirs is None: + return NAMESPACE + else: + return "{}/utils".format(NAMESPACE) diff --git a/docs/hel-892/resize-compare-reference/rgthree__py__display_any.py b/docs/hel-892/resize-compare-reference/rgthree__py__display_any.py new file mode 100644 index 00000000..19238dba --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree__py__display_any.py @@ -0,0 +1,77 @@ +import json +from .constants import get_category, get_name +from .utils import any_type, get_dict_value + + +class RgthreeDisplayAny: + """Display any data node.""" + + NAME = get_name('Display Any') + CATEGORY = get_category() + + @classmethod + def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstring + return { + "required": { + "source": (any_type, {}), + }, + "hidden": { + "unique_id": "UNIQUE_ID", + "extra_pnginfo": "EXTRA_PNGINFO", + }, + } + + RETURN_TYPES = () + FUNCTION = "main" + OUTPUT_NODE = True + + def main(self, source=None, unique_id=None, extra_pnginfo=None): + value = 'None' + if isinstance(source, str): + value = source + elif isinstance(source, (int, float, bool)): + value = str(source) + elif source is not None: + try: + value = json.dumps(source) + except Exception: + try: + value = str(source) + except Exception: + value = 'source exists, but could not be serialized.' + + # Save the output to the pnginfo so it's pre-filled when loading the data. + if extra_pnginfo and unique_id: + for node in get_dict_value(extra_pnginfo, 'workflow.nodes', []): + if str(node['id']) == str(unique_id): + node['widgets_values'] = [value] + break + + return {"ui": {"text": (value,)}} + + +class RgthreeDisplayInt: + """Old DisplayInt node. + + Can be ported over to DisplayAny if https://github.com/comfyanonymous/ComfyUI/issues/1527 fixed. + """ + + NAME = get_name('Display Int') + CATEGORY = get_category() + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "input": ("INT", { + "forceInput": True + }), + }, + } + + RETURN_TYPES = () + FUNCTION = "main" + OUTPUT_NODE = True + + def main(self, input=None): + return {"ui": {"text": (input,)}} diff --git a/docs/hel-892/resize-compare-reference/rgthree__py__utils.py b/docs/hel-892/resize-compare-reference/rgthree__py__utils.py new file mode 100644 index 00000000..f282cc6c --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree__py__utils.py @@ -0,0 +1,162 @@ +import json +import os +import re + +from typing import Union + + +class AnyType(str): + """A special class that is always equal in not equal comparisons. Credit to pythongosssss""" + + def __ne__(self, __value: object) -> bool: + return False + + +class FlexibleOptionalInputType(dict): + """A special class to make flexible nodes that pass data to our python handlers. + + Enables both flexible/dynamic input types (like for Any Switch) or a dynamic number of inputs + (like for Any Switch, Context Switch, Context Merge, Power Lora Loader, etc). + + Initially, ComfyUI only needed to return True for `__contains__` below, which told ComfyUI that + our node will handle the input, regardless of what it is. + + However, after https://github.com/comfyanonymous/ComfyUI/pull/2666 ComdyUI's execution changed + also checking the data for the key; specifcially, the type which is the first tuple entry. This + type is supplied to our FlexibleOptionalInputType and returned for any non-data key. This can be a + real type, or use the AnyType for additional flexibility. + """ + + def __init__(self, type, data: Union[dict, None] = None): + """Initializes the FlexibleOptionalInputType. + + Args: + type: The flexible type to use when ComfyUI retrieves an unknown key (via `__getitem__`). + data: An optional dict to use as the basis. This is stored both in a `data` attribute, so we + can look it up without hitting our overrides, as well as iterated over and adding its key + and values to our `self` keys. This way, when looked at, we will appear to represent this + data. When used in an "optional" INPUT_TYPES, these are the starting optional node types. + """ + self.type = type + self.data = data + if self.data is not None: + for k, v in self.data.items(): + self[k] = v + + def __getitem__(self, key): + # If we have this key in the initial data, then return it. Otherwise return the tuple with our + # flexible type. + if self.data is not None and key in self.data: + val = self.data[key] + return val + return (self.type,) + + def __contains__(self, key): + """Always contain a key, and we'll always return the tuple above when asked for it.""" + return True + + +any_type = AnyType("*") + + +def is_dict_value_falsy(data: dict, dict_key: str): + """Checks if a dict value is falsy.""" + val = get_dict_value(data, dict_key) + return not val + + +def get_dict_value(data: dict, dict_key: str, default=None): + """Gets a deeply nested value given a dot-delimited key.""" + keys = dict_key.split('.') + key = keys.pop(0) if len(keys) > 0 else None + found = data[key] if key in data else None + if found is not None and len(keys) > 0: + return get_dict_value(found, '.'.join(keys), default) + return found if found is not None else default + + +def set_dict_value(data: dict, dict_key: str, value, create_missing_objects=True): + """Sets a deeply nested value given a dot-delimited key.""" + keys = dict_key.split('.') + key = keys.pop(0) if len(keys) > 0 else None + if key not in data: + if create_missing_objects is False: + return data + data[key] = {} + if len(keys) == 0: + data[key] = value + else: + set_dict_value(data[key], '.'.join(keys), value, create_missing_objects) + + return data + + +def dict_has_key(data: dict, dict_key): + """Checks if a dict has a deeply nested dot-delimited key.""" + keys = dict_key.split('.') + key = keys.pop(0) if len(keys) > 0 else None + if key is None or key not in data: + return False + if len(keys) == 0: + return True + return dict_has_key(data[key], '.'.join(keys)) + + +def load_json_file(file: str, default=None): + """Reads a json file and returns the json dict, stripping out "//" comments first.""" + if path_exists(file): + with open(file, 'r', encoding='UTF-8') as file: + config = file.read() + try: + return json.loads(config) + except json.decoder.JSONDecodeError: + try: + config = re.sub(r"^\s*//\s.*", "", config, flags=re.MULTILINE) + return json.loads(config) + except json.decoder.JSONDecodeError: + try: + config = re.sub(r"(?:^|\s)//.*", "", config, flags=re.MULTILINE) + return json.loads(config) + except json.decoder.JSONDecodeError: + pass + return default + + +def save_json_file(file_path: str, data: dict): + """Saves a json file.""" + os.makedirs(os.path.dirname(file_path), exist_ok=True) + with open(file_path, 'w+', encoding='UTF-8') as file: + json.dump(data, file, sort_keys=False, indent=2, separators=(",", ": ")) + + +def path_exists(path): + """Checks if a path exists, accepting None type.""" + if path is not None: + return os.path.exists(path) + return False + + +def file_exists(path): + """Checks if a file exists, accepting None type.""" + if path is not None: + return os.path.isfile(path) + return False + + +def remove_path(path): + """Removes a path, if it exists.""" + if path_exists(path): + os.remove(path) + return True + return False + + +class ByPassTypeTuple(tuple): + """A special class that will return additional "AnyType" strings beyond defined values. + Credit to Trung0246 + """ + + def __getitem__(self, index): + if index > len(self) - 1: + return AnyType("*") + return super().__getitem__(index) diff --git a/docs/hel-892/resize-compare-reference/rgthree__web__comfyui__display_any.js b/docs/hel-892/resize-compare-reference/rgthree__web__comfyui__display_any.js new file mode 100644 index 00000000..cff00f92 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/rgthree__web__comfyui__display_any.js @@ -0,0 +1,35 @@ +import { app } from "../../scripts/app.js"; +import { ComfyWidgets } from "../../scripts/widgets.js"; +import { addConnectionLayoutSupport } from "./utils.js"; +import { rgthree } from "./rgthree.js"; +let hasShownAlertForUpdatingInt = false; +app.registerExtension({ + name: "rgthree.DisplayAny", + async beforeRegisterNodeDef(nodeType, nodeData, app) { + if (nodeData.name === "Display Any (rgthree)" || nodeData.name === "Display Int (rgthree)") { + const onNodeCreated = nodeType.prototype.onNodeCreated; + nodeType.prototype.onNodeCreated = function () { + onNodeCreated ? onNodeCreated.apply(this, []) : undefined; + this.showValueWidget = ComfyWidgets["STRING"](this, "output", ["STRING", { multiline: true }], app).widget; + this.showValueWidget.inputEl.readOnly = true; + this.showValueWidget.serializeValue = async (node, index) => { + const n = rgthree.getNodeFromInitialGraphToPromptSerializedWorkflowBecauseComfyUIBrokeStuff(node); + if (n) { + n.widgets_values[index] = ""; + } + else { + console.warn("No serialized node found in workflow. May be attributed to " + + "https://github.com/comfyanonymous/ComfyUI/issues/2193"); + } + return ""; + }; + }; + addConnectionLayoutSupport(nodeType, app, [["Left"], ["Right"]]); + const onExecuted = nodeType.prototype.onExecuted; + nodeType.prototype.onExecuted = function (message) { + onExecuted === null || onExecuted === void 0 ? void 0 : onExecuted.apply(this, [message]); + this.showValueWidget.value = message.text[0]; + }; + } + }, +}); diff --git a/docs/hel-892/resize-compare-reference/sources.json b/docs/hel-892/resize-compare-reference/sources.json new file mode 100644 index 00000000..87d24d86 --- /dev/null +++ b/docs/hel-892/resize-compare-reference/sources.json @@ -0,0 +1,279 @@ +{ + "sources": [ + { + "id": "load", + "file": "nodes.py", + "local_file": "load__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5", + "git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375" + }, + { + "id": "load", + "file": "folder_paths.py", + "local_file": "load__folder_paths.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/folder_paths.py", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "99d77f12a87d7d25ceac544d9c29dbe988d2718e94c0357b3eb754e79f4b7547", + "git_blob_sha1": "9ec952940cdda022439f9dcd91c0d858b7801bf4" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "load__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE", + "commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7", + "git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b" + }, + { + "id": "core", + "file": "comfy/utils.py", + "local_file": "core__comfy__utils.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509", + "git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d" + }, + { + "id": "core", + "file": "folder_paths.py", + "local_file": "core__folder_paths.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/folder_paths.py", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "df82630df610edbaf86cecf0376871e1d026a05c12aa439670916099ecdd4f7a", + "git_blob_sha1": "f110d832bb23c84ec27fa3135eb958cb66acb069" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE", + "commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a", + "git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb", + "git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE", + "commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "layer", + "file": "__init__.py", + "local_file": "layer____init__.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a" + }, + { + "id": "layer", + "file": "py/image_scale_restore_v2.py", + "local_file": "layer__py__image_scale_restore_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43", + "git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13" + }, + { + "id": "layer", + "file": "py/image_scale_by_aspect_ratio_v2.py", + "local_file": "layer__py__image_scale_by_aspect_ratio_v2.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5", + "git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE", + "commit": "89014d833d2ad0998d724090eff1456692692a1d", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559" + }, + { + "id": "impact", + "file": "__init__.py", + "local_file": "impact____init__.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0" + }, + { + "id": "impact", + "file": "LICENSE.txt", + "local_file": "impact__LICENSE.txt", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "id": "rgthree", + "file": "__init__.py", + "local_file": "rgthree____init__.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb" + }, + { + "id": "rgthree", + "file": "py/display_any.py", + "local_file": "rgthree__py__display_any.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840" + }, + { + "id": "rgthree", + "file": "py/constants.py", + "local_file": "rgthree__py__constants.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558" + }, + { + "id": "rgthree", + "file": "web/comfyui/display_any.js", + "local_file": "rgthree__web__comfyui__display_any.js", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d" + }, + { + "id": "rgthree", + "file": "LICENSE", + "local_file": "rgthree__LICENSE", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1" + }, + { + "id": "impact", + "file": "modules/impact/logics.py", + "local_file": "impact__modules__impact__logics.py", + "url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip", + "commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "git_commit_binding": "unknown", + "package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c", + "sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb" + }, + { + "id": "rgthree", + "file": "py/utils.py", + "local_file": "rgthree__py__utils.py", + "url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip", + "commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "git_commit_binding": "unknown", + "package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1", + "sha256": "47dcb57dae78b6562abd51e6796fb64df5b3820a081273394a41d250e6b14284" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588", + "git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent" + }, + { + "id": "frontend", + "file": "src/scripts/widgets.ts", + "local_file": "../seedvr2-reference/frontend__src__scripts__widgets.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c", + "git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent" + }, + { + "id": "frontend", + "file": "src/extensions/core/uploadImage.ts", + "local_file": "../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06", + "git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent" + }, + { + "id": "frontend", + "file": "LICENSE", + "local_file": "../seedvr2-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent" + }, + { + "id": "frontend", + "file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "local_file": "frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts", + "commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff", + "sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c", + "git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0", + "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent" + } + ] +} diff --git a/docs/hel-892/图像放大比较固定参考中文说明.md b/docs/hel-892/图像放大比较固定参考中文说明.md new file mode 100644 index 00000000..3261333c --- /dev/null +++ b/docs/hel-892/图像放大比较固定参考中文说明.md @@ -0,0 +1,998 @@ +# 图像放大比较固定参考中文说明 + +新增35保存位置/0注释;旧33图1034位置+25注释逐对象不变,现34图1069+25仅参考。155定稿0/实跑0/新增转换0。 + +来源local_file以docs/hel-892/resize-compare-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。 + +## 图像放大比较 + +这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。 + +仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。 + +源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json` + +SHA1:b16eb7cea17ce125be95637c2309c941870cd25b + +原字节SHA256:1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4 + +规范全图SHA256:bb8e2be66e72bf1ffb37837ce13dfc18b9c66182dc8ea1d2593c1f925a486061 + +load→d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8 + +core→51696e3fdcdfad657cb15854345fbcbbe70eef8d + +kj→f7eb33abc80a2aded1b46dff0dd14d07856a7d50 + +layer→89014d833d2ad0998d724090eff1456692692a1d + +impact→发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;Git绑定未知 + +rgthree→发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;Git绑定未知 + +frontend→7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;仅参考假设1.45.20,源前端未知 + +### 具体连线与处理条件 + +这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。 + +17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。 + +四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImage;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。 + +11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存720,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。 + +5保存scale为JSON int1但schema为FLOAT;original_size未接,scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。 + +7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。 + +2当前stretch/lanczos/cpu,width480、height720经过divisible_by16向下对齐;pad_color与crop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。 + +源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未知,转换关闭。 + +4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分别13/14显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。 + +未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输入、mask及original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。 + +准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。 + +身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设,不称宿主版本。 + +UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。 + +旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case06排除。 + +原边 root [1, 1, 0, 2, 0, "IMAGE"] + +原边 root [2, 2, 0, 3, 0, "IMAGE"] + +原边 root [3, 1, 0, 4, 0, "IMAGE"] + +原边 root [4, 1, 0, 5, 0, "IMAGE"] + +原边 root [5, 1, 0, 7, 0, "IMAGE"] + +原边 root [6, 4, 0, 8, 0, "IMAGE"] + +原边 root [7, 5, 0, 9, 0, "IMAGE"] + +原边 root [8, 7, 0, 10, 0, "IMAGE"] + +原边 root [9, 11, 0, 2, 2, "INT"] + +原边 root [10, 12, 0, 2, 3, "INT"] + +原边 root [11, 12, 0, 4, 3, "INT"] + +原边 root [12, 12, 0, 5, 6, "INT"] + +原边 root [13, 12, 0, 7, 9, "INT"] + +原边 root [14, 11, 0, 4, 2, "INT"] + +原边 root [17, 2, 1, 13, 0, "*"] + +原边 root [18, 2, 2, 14, 0, "*"] + +原边 root [19, 5, 3, 15, 0, "*"] + +原边 root [20, 5, 4, 16, 0, "*"] + +原边 root [21, 7, 3, 17, 0, "*"] + +原边 root [22, 7, 4, 18, 0, "*"] + +### 使用与核对 + +这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。 + +操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。 + +操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。 + +操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。 + +### 逐保存位置说明 + +#### 1. 节点1 · 输入图片文件名(image) + +选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。 + +```json +"360截图20251018220547863.jpg" +``` + +类:LoadImage;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/0/widgets_values/0`;源输入口:`/nodes/0/inputs/0` + +定义默认:未显式指定默认;输入目录图片排序枚举;单位:文件名 + +范围/条件:依赖准确运行目录和素材;不存在或校验失败不能加载 + +节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [0] 准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得;nodes.py 1626~1700行;commit d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 2. 节点1 · 上传控件保存占位(upload) + +保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。 + +```json +"image" +``` + +类:LoadImage;JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/0/widgets_values/1`;源输入口:`/nodes/0/inputs/1` + +定义默认:后端无upload参数;参考前端自动补控件;单位:前端状态 + +范围/条件:保存字符串image;准确宿主前端及扩展恢复未知 + +节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [24] 仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数;src/extensions/core/uploadImage.ts 10~40行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 3. 节点4 · 核心重采样方法(upscale_method) + +核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。 + +```json +"nearest-exact" +``` + +类:ImageScale;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/1/widgets_values/0`;源输入口:`/nodes/1/inputs/1` + +定义默认:未显式默认;首选项nearest-exact;单位:枚举 + +范围/条件:nearest-exact/bilinear/area/bicubic/lanczos + +节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 4. 节点4 · 核心分支宽度缓存(width) + +缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。 + +```json +480 +``` + +类:ImageScale;JSON类型:int;角色:linked_cache。 + +源保存位置:`/nodes/1/widgets_values/1`;源输入口:`/nodes/1/inputs/2` + +定义默认:512;单位:像素 + +范围/条件:INT 0~16384,step1;0按另一轴推算;两轴0直接返回 + +节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边14覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 5. 节点4 · 核心分支高度缓存(height) + +缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。 + +```json +720 +``` + +类:ImageScale;JSON类型:int;角色:linked_cache。 + +源保存位置:`/nodes/1/widgets_values/2`;源输入口:`/nodes/1/inputs/3` + +定义默认:512;单位:像素 + +范围/条件:INT 0~16384,step1;0按另一轴推算 + +节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边11覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 6. 节点4 · 核心裁剪开关(crop) + +当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。 + +```json +"disabled" +``` + +类:ImageScale;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/1/widgets_values/3`;源输入口:`/nodes/1/inputs/4` + +定义默认:未显式默认;首选项disabled;单位:枚举 + +范围/条件:disabled/center + +节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 7. 节点12 · 高度及长度整数(value) + +保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。 + +```json +720 +``` + +类:ImpactInt;JSON类型:int;角色:scalar。 + +源保存位置:`/nodes/2/widgets_values/0`;源输入口:`/nodes/2/inputs/0` + +定义默认:0;单位:整数;长度输入为像素 + +范围/条件:INT 0~sys.maxsize,step1;不是内存或图像尺寸保证 + +节点12保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [15] 准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回;modules/impact/logics.py 239~255行;commit 发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 8. 节点11 · 共同宽度整数(value) + +保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。 + +```json +480 +``` + +类:ImpactInt;JSON类型:int;角色:scalar。 + +源保存位置:`/nodes/3/widgets_values/0`;源输入口:`/nodes/3/inputs/0` + +定义默认:0;单位:整数;接宽度时为像素 + +范围/条件:INT 0~sys.maxsize,step1;资源上限另受下游约束 + +节点11保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [15] 准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回;modules/impact/logics.py 239~255行;commit 发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 9. 节点2 · KJ宽度缓存(width) + +缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。 + +```json +480 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:linked_cache。 + +源保存位置:`/nodes/4/widgets_values/0`;源输入口:`/nodes/4/inputs/2` + +定义默认:512;单位:像素 + +范围/条件:INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384 + +节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边9覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 10. 节点2 · KJ高度缓存(height) + +缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。 + +```json +720 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:linked_cache。 + +源保存位置:`/nodes/4/widgets_values/1`;源输入口:`/nodes/4/inputs/3` + +定义默认:512;单位:像素 + +范围/条件:INT 0~宿主MAX_RESOLUTION,step1 + +节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边10覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 11. 节点2 · KJ重采样方法(upscale_method) + +保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。 + +```json +"lanczos" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/4/widgets_values/2`;源输入口:`/nodes/4/inputs/4` + +定义默认:未显式默认;首选项nearest-exact;单位:枚举 + +范围/条件:nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos + +节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 12. 节点2 · KJ比例处理(keep_proportion) + +当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。 + +```json +"stretch" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/4/widgets_values/3`;源输入口:`/nodes/4/inputs/5` + +定义默认:源码显式False(与枚举类型不一致);不改写为stretch;单位:枚举 + +范围/条件:stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开 + +节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 13. 节点2 · KJ填充颜色(pad_color) + +保存黑色0, 0, 0,当前stretch不采用该颜色。 + +```json +"0, 0, 0" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/4/widgets_values/4`;源输入口:`/nodes/4/inputs/6` + +定义默认:0, 0, 0;单位:RGB文本 + +范围/条件:STRING;仅pad/pad_edge路径调用填边 + +节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 14. 节点2 · KJ裁剪位置(crop_position) + +保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。 + +```json +"center" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/4/widgets_values/5`;源输入口:`/nodes/4/inputs/7` + +定义默认:center;单位:枚举 + +范围/条件:center/top/bottom/left/right;仅crop分支 + +节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 15. 节点2 · KJ尺寸倍数(divisible_by) + +保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。 + +```json +16 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源保存位置:`/nodes/4/widgets_values/6`;源输入口:`/nodes/4/inputs/8` + +定义默认:2;单位:像素倍数 + +范围/条件:INT 0~512,step1;>1向下取整,0/1不对齐 + +节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 16. 节点2 · KJ处理设备(device) + +保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。 + +```json +"cpu" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/4/widgets_values/7`;源输入口:`/nodes/4/inputs/9` + +定义默认:schema未显式;首项cpu,函数默认cpu;单位:设备枚举 + +范围/条件:cpu/gpu;gpu+lanczos主动抛错 + +节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py +- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +#### 17. 节点5 · 恢复分支倍率(scale) + +当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。 + +```json +1 +``` + +类:LayerUtility: ImageScaleRestore V2;JSON类型:int;角色:scalar。 + +源保存位置:`/nodes/5/widgets_values/0`;源输入口:`/nodes/5/inputs/3` + +定义默认:1;单位:倍数 + +范围/条件:FLOAT 0.01~100,step0.01;源JSON为int1 + +节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 18. 节点5 · 恢复分支重采样(method) + +保存lanczos,经PIL RGB resize;是否改善观感未知。 + +```json +"lanczos" +``` + +类:LayerUtility: ImageScaleRestore V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/5/widgets_values/1`;源输入口:`/nodes/5/inputs/4` + +定义默认:未显式默认;首项lanczos;单位:枚举 + +范围/条件:lanczos/bicubic/hamming/bilinear/box/nearest + +节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 19. 节点5 · 恢复分支尺寸方式(scale_by) + +当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。 + +```json +"by_scale" +``` + +类:LayerUtility: ImageScaleRestore V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/5/widgets_values/2`;源输入口:`/nodes/5/inputs/5` + +定义默认:未显式默认;首项by_scale;单位:枚举 + +范围/条件:by_scale/longest/shortest/width/height/total_pixel(kilo pixel) + +节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 20. 节点5 · 恢复分支长度缓存(scale_by_length) + +缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。 + +```json +720 +``` + +类:LayerUtility: ImageScaleRestore V2;JSON类型:int;角色:linked_cache。 + +源保存位置:`/nodes/5/widgets_values/3`;源输入口:`/nodes/5/inputs/6` + +定义默认:1024;单位:像素;total_pixel模式为千像素 + +范围/条件:INT 4~99999999,step1;仅长度/面积分支采用 + +节点5保存mode0;源无具名保存表,不制造具名保存值。源输入边12覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 21. 节点7 · 比例分支目标比例(aspect_ratio) + +保存original从输入宽高取比例;不是custom的1:1。 + +```json +"original" +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/0`;源输入口:`/nodes/6/inputs/2` + +定义默认:未显式默认;首项original;单位:枚举 + +范围/条件:original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16 + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 22. 节点7 · 自定比例宽(proportional_width) + +保存1,当前original不使用该值计算目标比例。 + +```json +1 +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:int;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/1`;源输入口:`/nodes/6/inputs/3` + +定义默认:1;单位:比例份数 + +范围/条件:INT 1~1e8,step1;仅custom读取 + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 23. 节点7 · 自定比例高(proportional_height) + +保存1,当前original不使用该值,不据两项1声称方图。 + +```json +1 +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:int;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/2`;源输入口:`/nodes/6/inputs/4` + +定义默认:1;单位:比例份数 + +范围/条件:INT 1~1e8,step1;仅custom读取 + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 24. 节点7 · 比例分支适配方式(fit) + +letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。 + +```json +"letterbox" +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/3`;源输入口:`/nodes/6/inputs/5` + +定义默认:未显式默认;首项letterbox;单位:枚举 + +范围/条件:letterbox/crop/fill + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [12] letterbox居中填色、crop居中裁剪、fill直接伸缩;py/imagefunc.py 591~618行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py + +#### 25. 节点7 · 比例分支重采样(method) + +保存lanczos,供适配图片的PIL resize使用,不保证画质。 + +```json +"lanczos" +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/4`;源输入口:`/nodes/6/inputs/6` + +定义默认:未显式默认;首项lanczos;单位:枚举 + +范围/条件:lanczos/bicubic/hamming/bilinear/box/nearest + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 26. 节点7 · 比例分支倍数对齐(round_to_multiple) + +源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。 + +```json +"8" +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/5`;源输入口:`/nodes/6/inputs/7` + +定义默认:未显式默认;首项字符串8;单位:像素倍数枚举 + +范围/条件:8/16/32/64/128/256/512/None,全部字符串 + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [13] 向上取整到倍数;不同于KJ向下取整;py/imagefunc.py 1967~1973行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py + +#### 27. 节点7 · 比例分支缩放基准(scale_to_side) + +当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。 + +```json +"None" +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/6`;源输入口:`/nodes/6/inputs/8` + +定义默认:未显式默认;首项字符串None;单位:枚举 + +范围/条件:None/longest/shortest/width/height/total_pixel(kilo pixel) + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 28. 节点7 · 比例分支长度缓存(scale_to_length) + +缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。 + +```json +720 +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:int;角色:linked_cache。 + +源保存位置:`/nodes/6/widgets_values/7`;源输入口:`/nodes/6/inputs/9` + +定义默认:1024;单位:像素;total_pixel模式为千像素 + +范围/条件:INT 4~1e8,step1;按scale_to_side分支读取 + +节点7保存mode0;源无具名保存表,不制造具名保存值。源输入边13覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +#### 29. 节点7 · 比例分支背景色(background_color) + +保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。 + +```json +"#000000" +``` + +类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。 + +源保存位置:`/nodes/6/widgets_values/8`;源输入口:`/nodes/6/inputs/10` + +定义默认:#000000;单位:颜色字符串 + +范围/条件:STRING;letterbox用PIL颜色创建背景 + +节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [12] letterbox居中填色、crop居中裁剪、fill直接伸缩;py/imagefunc.py 591~618行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py + +#### 30. 节点17 · 显示宽度文本(output) + +节点17接7.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。 + +```json +"" +``` + +类:Display Any (rgthree);JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/7/widgets_values/0`;源输入口:`/nodes/7/widgets_values/0` + +定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本 + +范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高 + +节点17保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +#### 31. 节点13 · 显示宽度文本(output) + +节点13接2.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。 + +```json +"" +``` + +类:Display Any (rgthree);JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/8/widgets_values/0`;源输入口:`/nodes/8/widgets_values/0` + +定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本 + +范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高 + +节点13保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +#### 32. 节点18 · 显示高度文本(output) + +节点18接7.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。 + +```json +"" +``` + +类:Display Any (rgthree);JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/9/widgets_values/0`;源输入口:`/nodes/9/widgets_values/0` + +定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本 + +范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高 + +节点18保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +#### 33. 节点15 · 显示宽度文本(output) + +节点15接5.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。 + +```json +"" +``` + +类:Display Any (rgthree);JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/10/widgets_values/0`;源输入口:`/nodes/10/widgets_values/0` + +定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本 + +范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高 + +节点15保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +#### 34. 节点16 · 显示高度文本(output) + +节点16接5.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。 + +```json +"" +``` + +类:Display Any (rgthree);JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/11/widgets_values/0`;源输入口:`/nodes/11/widgets_values/0` + +定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本 + +范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高 + +节点16保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +#### 35. 节点14 · 显示高度文本(output) + +节点14接2.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。 + +```json +"" +``` + +类:Display Any (rgthree);JSON类型:str;角色:frontend_control。 + +源保存位置:`/nodes/12/widgets_values/0`;源输入口:`/nodes/12/widgets_values/0` + +定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本 + +范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高 + +节点14保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。 + +依据: +- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip +- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts +- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +### 零保存节点与源注释 + +3 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。 + +8 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。 + +9 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。 + +10 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。 + +### 固定原件索引 + +0. 准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得;nodes.py 第1626~1700行;提交d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py + +1. 准确core0.3.50 LoadImage注册;nodes.py 第1957~1959行;提交d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py + +2. 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 第1778~1806行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +3. PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符;nodes.py 第1561~1628行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +4. 准确核心节点注册;nodes.py 第1957~1967行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +5. MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 第52~52行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py + +6. lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 第858~900行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py + +7. KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 第2376~2502行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py + +8. KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知;nodes/image_nodes.py 第21~21行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py + +9. 准确KJ ImageResizeKJv2注册;__init__.py 第75~85行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py + +10. 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 第7~132行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py + +11. 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 第8~186行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py + +12. letterbox居中填色、crop居中裁剪、fill直接伸缩;py/imagefunc.py 第591~618行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py + +13. 向上取整到倍数;不同于KJ向下取整;py/imagefunc.py 第1967~1973行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py + +14. LayerStyle包逐模块合并注册,未执行;__init__.py 第29~48行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py + +15. 准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回;modules/impact/logics.py 第239~255行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip + +16. ImpactPack logics导入;__init__.py 第48~48行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip + +17. ImpactInt注册;__init__.py 第259~259行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip + +18. 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 第6~50行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +19. 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 第1~35行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +20. Display Any (rgthree)准确命名;py/constants.py 第2~5行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +21. DisplayAny准确注册;__init__.py 第47~54行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +22. 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 第917~925行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +23. 仅参考假设位置序列化;不证明目标实际恢复;src/lib/litegraph/src/LGraphNode.ts 第972~984行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts + +24. 仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数;src/extensions/core/uploadImage.ts 第10~40行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts + +25. 仅参考假设IMAGEUPLOAD控件构造入口;src/scripts/widgets.ts 第305~308行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts + +26. 仅参考假设上传控件行为;源保存image原样保留,未上传;src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts 第1~136行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts + +27. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE + +28. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE + +29. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE + +30. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~21行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE + +31. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE.txt 第1~674行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip + +32. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~21行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip + +33. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE diff --git a/e2e/resize-compare-document.mjs b/e2e/resize-compare-document.mjs new file mode 100644 index 00000000..5df77378 --- /dev/null +++ b/e2e/resize-compare-document.mjs @@ -0,0 +1,102 @@ +// Local GET-only: 35 interpolation positions, no source Notes, 33 frozen summaries. +import fs from 'node:fs'; +import assert from 'node:assert/strict'; +const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright'); +const out='.local-evidence/resize-compare-document/browser';fs.mkdirSync(out,{recursive:true}); +const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={},interceptions=[];let group='aggregate'; +function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);} +const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE}); +try { + const page=await browser.newPage({viewport:{width:1440,height:1000}}); + await page.route('**/*',route=>{ + const u=new URL(route.request().url()); + if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});} + if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();} + return route.continue(); + }); + page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});}); + page.on('pageerror',e=>errors.push(e.message)); + requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'}); + const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json(); + const names=['图像放大比较','VOSR2_图像超分放大','Seedvr2_3b_int8_视频放大','Seedvr2_3b_int8_图像放大','RTX_video_upscale','RTX_image_upscale','手动按分镜视频截取','sam3_图像视频-提示词遮罩分割','多视频合成分屏展示','图像4种添加水印节点','birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述']; + const details=[]; + for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());} + check(details.length===34&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===1069,'34图1069保存位置'); + check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===25,'34图25源注释'); + await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'}); + const dialog=page.getByRole('dialog',{name:'工作流说明'}); + const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})}); + async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;} + async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));} + for(const width of [1440,390]){ + await page.setViewportSize({width,height:width===390?844:1000}); + for(const d of details){ + group=details.indexOf(d)<1?'new_resize_compare':'old_thirty_three';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded(); + const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})}); + check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`); + check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`); + check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`); + const visible=await fixedCard.innerText(); + check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`); + check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`); + for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`); + check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`); + check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`); + check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`); + await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0); + if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`}); + if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;} + await dialog.getByText('源图与审校记录',{exact:true}).click(); + check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`); + await dialog.getByText('核对范围与来源依据',{exact:true}).click(); + const flowText=await fixedCard.innerText(); + for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`); + if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-branch-flow.png`});} + await dialog.getByText('版本、源图与连线依据',{exact:true}).click(); + check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`); + const versionText=await fixedCard.innerText(); + for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`); + if(details.indexOf(d)<1){ + for(const f of b.fields){ + const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..'); + check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`); + let text=await box.innerText();check(text.includes(f.effect)&&text.includes(f.limits)&&text.includes(f.schema_default)&&text.includes(f.execution_note)&&text.includes(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`); + check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`); + check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`); + await box.getByText('来源依据',{exact:true}).click();text=await box.innerText(); + check(text.includes(f.pointer)&&text.includes(f.class_type)&&text.includes(f.json_type)&&f.evidence.every(i=>{const e=b.sources[i];return text.includes(e.commit)&&text.includes(e.sha256)&&text.includes(e.lines.join('~'));}),`${width} ${f.node_id}.${f.field}精确源码/类型/指针`); + check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`); + if((width===1440&&f.field==='scale_by_length'&&f.node_id==='5')||(width===390&&f.field==='scale_to_side'&&f.node_id==='7'))await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`}); + await summary.click(); + } + for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${n.node_id}-note.png`});}await summary.click();} + await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`); + } + await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`); + } + } + group='shared_regressions'; + for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');} + // Missing summary and mismatched bindings are tested with local GET fixtures, without writes. + for(const variant of ['missing-overview','mismatched','html-summary']){ + const d=structuredClone(details[0]); + if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview; + if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'}; + if(variant==='html-summary')d.doc_json.fixed_version.user_overview='仅纯文本'; + await page.route(`**/api/workflows/${d.id}`,route=>{interceptions.push({variant,url:route.request().url()});return 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=>{interceptions.push({variant:"late",url:route.request().url()});entered();await hold;await route.fulfill({json:details[0]});delivered();}); + await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done; + check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到放大比较响应不覆盖旧VOSR2图片摘要/46字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`); + await page.route(`**/api/workflows/${details[0].id}`,route=>{interceptions.push({variant:'failure',url:route.request().url()});return route.fulfill({status:500,json:{detail:'隔离失败夹具'}});});await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape'); + check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求'); + const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname)); + const fixed=requests.filter(r=>!polling.includes(r)); + const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length])); + fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,interceptions,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2)); +} finally {await browser.close();} diff --git a/e2e/run-resize-compare-document.py b/e2e/run-resize-compare-document.py new file mode 100644 index 00000000..7258c6e1 --- /dev/null +++ b/e2e/run-resize-compare-document.py @@ -0,0 +1,92 @@ +"""Foreground local browser check; stop every owned service before returning.""" + +from __future__ import annotations + +import os +import signal +import subprocess +import sys +import time +import urllib.error +import urllib.request +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +OUT = ROOT / ".local-evidence/resize-compare-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 = ["resize-compare"] + for name in names: + subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True) + finally: + for p in processes: + if p.poll() is None: + os.killpg(p.pid, signal.SIGTERM) + try: + p.wait(timeout=10) + except subprocess.TimeoutExpired: + os.killpg(p.pid, signal.SIGKILL) + p.wait(timeout=5) + for log in logs: + log.close() + import json + + released = [] + for port in (8247, 5173): + with socket.socket() as sock: + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + sock.bind(("127.0.0.1", port)) + released.append(port) + (OUT / "service-stop.json").write_text( + json.dumps( + dict(ports_released=released, child_exit_codes=[p.returncode for p in processes]) + ) + + "\n" + ) + print("All owned browser services stopped; ports released.") + + +if __name__ == "__main__": + main()