docs(HEL-892): record MP3 and mixed LayerStyle source and coverage evidence
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
本轮新增音频转MP3、图像嵌入文字两份完整 reference-only 保存态候选。它们没有真实 API 配套,均为 `comparison_unavailable`,不代表黄金导出等价、目标版本匹配、通用可靠转换或执行成功。生产导入资格和全量目标保持,145份UI通用可靠转换尚未证明,155份说明定稿/必要实跑仍0。
|
||||
|
||||
原 PR #25:https://gitea.xbay.cc/leefer/aigc-home/pulls/25;分支 `agent/agent/a64a969a6a44`,base `main`。增量基点 `a8cd8e8ac57fb2b7289eca21ee52a0a79010848a`;受测代码 `8ed420ebac207c130ac4d1645e89640d57000c0d`。本轮新checkout先产生运行分支,已切回原PR分支;没有竞争PR。Multica关联表未列PR,另只读核实Gitea实际PR为open、head原分支/base main。Git无本地身份配置,单次commit沿用同卡上一提交leefer身份,没有修改共享或全局配置。最终仅证据提交及远端head见交付评论,`tested-code.json`提供四文件哈希。
|
||||
|
||||
## 两图真实结果与来源
|
||||
|
||||
源路径均在 `example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/`。
|
||||
|
||||
| 文件 | 运行节点 | 标量/最终连线 | 源SHA256 | 候选SHA256 |
|
||||
| --- | ---: | ---: | --- | --- |
|
||||
| 音频转MP3格式.json | 2 | 5/1 | c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b | 354fd42b41602d7a9d1a60d516a09364b46d0735ecbc1b1029cd5779d09df9a8 |
|
||||
| 图像嵌入文字描述.json | 5 | 12/4 | 938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3 | d3f061e1e28d5659250f8b81c5a92fcf90069fa8eecc92b9cc45b1ea42ea4431 |
|
||||
|
||||
完整节点class_type、标题、每项inputs的值/类型及源JSON指针、最终上游ID/槽分别在 `media-evidence/mp3-candidate.json`、`reel-candidate.json` 的成功attempt内,共6项和16项字段证据。字段清单独立回读源字节核对;没有API值反推或硬编码预期prompt。无部分prompt输出,错误任一节点/控件/连线整图关闭。
|
||||
|
||||
两图均无前端声明。本轮**明确选择**未改写的官方前端v1.37.11,commit `4bf6a1960028cc5cda57d48f9fb01a74dfaade43`,属于有标签的参考假设,不是确认源版本。两个新profile单独记录 `explicit_media_reference_assumption`、缺失节点声明、目标版本未知、UE序列化未知、动态文件/字体选项未知;显式版本冲突拒绝,未增加其他前端版本profile。普通旧profile不放宽。
|
||||
|
||||
音频选择core v0.11.0固定commit `09725967cf76304371c390ca1d6483e04061da48`,不是由无声明默认推断。源节点4 SaveAudioMP3和1 LoadAudio均缺cnr_id/ver,在attempt的missing_node_declarations中逐指针列出。复用 `structure-reference/sources.json` 原始nodes_audio.py:147-171(MP3 schema/execute)、261-281(LoadAudio)、669-682(extension注册);GPL-3.0。两个节点分别只有filename_prefix/quality和audio文件COMBO;品质准确为V0/128k/320k,保存态原值V0不替换为execute函数默认128k。
|
||||
|
||||
公开原件:https://github.com/Comfy-Org/ComfyUI/blob/09725967cf76304371c390ca1d6483e04061da48/comfy_extras/nodes_audio.py
|
||||
|
||||
前端uploadAudio.ts:93-140/185-259按节点追加audioUI和上传按钮。LoadAudio原保存数组为 `[文件名,null,""]`:标准持久化按原widget索引留下DOM空洞,上传按钮保留在第三位;恢复时跳过widget.serialize=false的DOM,按钮消费null,但按钮options.serialize=false使其不进API。仅接受该已证明形状及既有null按钮占位,不接受任意额外值。SaveAudioMP3保存数组为 `["audio/ComfyUI","V0"]`;尾部DOM不持久化。graphToPrompt检查的是options.serialize,DOM只设置widget.serialize=false,故两节点audioUI仍按无getValue的DOM getter序列化为空串,不能擅自删除。文件名/前缀完整保留,包括中文和空格;未运行编码器、读取音频或提交任务。
|
||||
|
||||
MP3 ui/history链固定在新增 `_ui.py` 的27-65、260-386行、`_io.py` 的1979-1991行与 `execution.py` 的360-366、736-745行:execute返回NodeOutput(ui=AudioSaveHelper),SavedAudios.as_dict为audio列表,项为filename/subfolder/type,execution写入history.outputs。V0设置qscale=1,128k/320k设置bitrate;只是源码事实,未验证编码产物。新增测试只使用显式合成描述符,不称真实音频/history;字符串路径和URL不作为文件。SaveAudioMP3在旧生产registry已存在,本轮未添加注册、未改变auto_output_map/启用资格;参考prompt从不进入导入器。
|
||||
|
||||
图像图核心节点3/4 LoadImage、5 PreviewImage均声明core0.4.0,已从官方v0.4.0解析并固定commit `fc657f471a29d07696ca16b566000e8e555d67d1`,nodes.py:1629-1660/1964-1975证明定义/注册;GPL-3.0。LoadImage准确为文件名+非执行上传按钮;输出IMAGE/MASK,PreviewImage仅images输入、无控件。没有拿旧0.21.1版本替代。
|
||||
|
||||
https://github.com/Comfy-Org/ComfyUI/blob/fc657f471a29d07696ca16b566000e8e555d67d1/nodes.py
|
||||
|
||||
两个LayerStyle提交均在原仓库 `chflame163/ComfyUI_LayerStyle` 核实,pyproject.toml的name=comfyui_layerstyle、Repository和MIT许可、根注册扫描及py/image_reel.py:216-224的准确类注册均保存。开始猜测的独立image_reel_composit.py路径两次404,随后确认两类同在image_reel.py,不循环检索。两提交相关原件字节相同,仍各自保留URL/commit/SHA/时间,不合并冒充同版本。
|
||||
|
||||
- 节点1 ImageReel:`4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c`,18-41行;四个STRING文本、reel_height INT[64,2048]、border INT[8,512],image1必需、image2-4可选,Reel出口。原现值image1/image2/image3/image4、512/32分别保持。
|
||||
- 节点2 ImageReelComposit:`42ccdd8f75ab312285eaa77073a5cc20bdba484c`,98-133行;font_file动态COMBO、font_size INT[4,1024]、border INT[8,512]、color_theme静态light/dark;reel_1必需、2-4可选,IMAGE出口。原字体Alibaba-PuHuiTi-Heavy.ttf、40/32/light分别保持。
|
||||
|
||||
https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/image_reel.py
|
||||
|
||||
https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/py/image_reel.py
|
||||
|
||||
分别检查两提交全部4个JS:dz_mtb_widgets.js:494-567的自定义类型/节点名分支不作用于这些普通STRING/INT/COMBO输入,dz_node_palette只改颜色;color_theme是静态枚举,不套颜色picker。复用官方普通控件构造/持久化/graphToPrompt链。py/imagefunc.py:2347-2383表明字体列表来自默认font目录及resource_dir.ini的FONT_dir、ttf/otf扫描;仅保存字符串,不证明字体可用,不下载字体或运行字体渲染。源UE7.5.1/connectability信息与是否存在运行时改写分开;显式假设未改写控件。多级连线完整保持3→1、4→1、1→2、2→5;合成双Reel/Composit实例证明文本、字号和绑定不串值。混提交实际可安装性仍未知。
|
||||
|
||||
全部新原件的原URL、完整commit、内容SHA256、行号、获取时间、许可见 `media-reference/sources.json`;逐类字段/前端链及未知项见 `contract.json`。24份新增固定来源按完整commit在线重取SHA一致,160份新旧缓存来源本地SHA/行号核验通过。未导入执行任何插件,没有依赖安装或模型下载。
|
||||
|
||||
## 跨库覆盖差集与准确计数
|
||||
|
||||
实际将13个profile应用当前145UI:1885次判定,1667不适用、218进入转换,其中212拒绝/6完整候选,0冲突。139无配套中新增2、现3完整参考候选/136关闭;6有配套中原3完整候选/3关闭。原ASR和case01/02/04均不算新增。全部成功profile/假设/哈希保留,冲突报告不取首个;无配套均comparison_unavailable。98份前端版本无适用规则的路径集合与上批严格相同,没有扩张这些版本范围。
|
||||
|
||||
同源运行旧11profile,并与上批不可变library.json逐图逐attempt的状态/候选/哈希/问题/阶段/字段证据比较,完全一致;旧六份差分报告也逐字典相同。`coverage-delta.json`保存本轮比较结果、仍关闭139份精确集合及分组差集,复用历史原件,不再复制全套旧清单。完整新结果在 `media-evidence/library.json`。
|
||||
|
||||
**勘误:旧交付评论的778错误,上批实际1303组/4214条occurrences/涉及43份进入被拒图;历史工件不改写。** 本轮1792组/6049条occurrences/涉及41份进入被拒图。组键严格为type、provider、声明version、profile、code、完整rule_gap,不按节点类型数量算覆盖。完整关闭总139还包含98份前端不适用。新增507个分组,完整移除18个分组;共21个旧组发生27条occurrences移除,新profile增加1862条occurrences,4214−27+1862=6049。新profile记录更多具体拒因使组数增加,不是旧能力退步。保留重复问题记录是上批raw计数口径;按组内source_path/node_pointer/node_id去重则旧3516/新5075,另列不混用。
|
||||
|
||||
下一方向只来自实际gap:`视频-音频分离.json`仍因节点17/10显式核心版本冲突、4个PreviewAudio及AudioSeparation缺契约关闭。只加PreviewAudio规则至多减少缺口,不能宣称整图闭环;须先按其真实声明核对核心版本和AudioSeparation,再判断能否新增完整候选。未扩到所有旧节点/循环/静音或98份其他前端,也未开启新规划阶段。
|
||||
|
||||
## 本轮验证与保护
|
||||
|
||||
本轮365 passed/0 failed/1项第三方Starlette弃用警告,含56项新测试;覆盖源码AST独立读schema/注册、实际两图全部class/input值类型/原指针/最终端点、品质变化、中文前缀、空串/多行文本、两输入/双Reel实例独立、字体动态可用性未知,bool/int/float/null/缺项区别、范围/枚举/混版本互换/自定义控件/错误socket/link类型/槽/静音/动态表达式整图拒绝。合成history只测描述符边界;通用多profile冲突、范围排除、SHA绑定、原case01/02/04、ASR及旧profile均在受影响套件。四变更文件Ruff check和format分别通过,git diff --check通过。未称全仓lint或全后台全绿。
|
||||
|
||||
本轮离线wheel/sdist构建通过;两个运行模块、protocol_references/source_reviews/delivery_scope资源与包内字节一致。源码未变后复验最终四文件SHA一致。上批309/277只作为历史,不冒称重跑。总工独立全量8fail/1122pass/6skip属于其上批证据,本轮未运行全后台,不修无关既有失败。
|
||||
|
||||
隔离新库155导入/1排除、155重导skipped;16 pending_check/139 needs_conversion,全部停用、doc_completed_at/exec_verified_at全空。源具名值1217/位置控件3660/配套值294保持,用户整行保护与幂等在受影响回归通过;6 companion_unverified/16 environment_unchecked不清除。156原图和7份API共163份原字节与基点完全一致。新候选仅在审计报告中,不写生产库。case06继续排除。原差异保持。
|
||||
|
||||
## 复现与交接
|
||||
|
||||
在仓库根执行;只使用锁定的既有依赖,不启动ComfyUI:
|
||||
|
||||
```bash
|
||||
uv run --project calliope-backend --offline python calliope-backend/scripts/audit_reference_conversion.py --repo . --library --output media-library.json
|
||||
uv run --project calliope-backend --offline python calliope-backend/scripts/verify_frontend_sources.py --source-dir docs/hel-892/media-reference --output media-source-check.json
|
||||
uv run --project calliope-backend --offline pytest calliope-backend/tests/test_media_reference.py calliope-backend/tests/test_asr_library_reference.py calliope-backend/tests/test_case04_saved_reference.py calliope-backend/tests/test_promoted_preview_reference.py calliope-backend/tests/test_structure_reference.py calliope-backend/tests/test_controlnet_reference.py calliope-backend/tests/test_reference_serialization.py calliope-backend/tests/test_ui2api_differential.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_supplied_companions.py calliope-backend/tests/test_delivery_scope.py calliope-backend/tests/test_output_protocol_references.py -q
|
||||
uv build --project calliope-backend --offline
|
||||
```
|
||||
|
||||
原脚本复用入口,不新建转换框架:serialization_reference.py增加两个显式最小契约;ui2api.py增加profile接入及其连线类型校验;audit_reference_conversion.py记录选择/缺失声明、两图逐字段来源并将本批基线改为原11profile;test_media_reference.py为真实源/合成变形和文件描述符边界专项。固定来源/证据/本说明独立提交。
|
||||
|
||||
剩余全量目标保留,不合并部署。本轮不需用户补材料、快照、模型包或开放机器;未连接目标机、停TTS、启ComfyUI、提交prompt、运行安装上游插件、下载权重、引新依赖、付费调用、改界面、写在线库。请总管转HEL-893审核本次实际增量。
|
||||
@@ -0,0 +1,4 @@
|
||||
Building source distribution...
|
||||
Building wheel from source distribution...
|
||||
Successfully built calliope-backend/dist/calliope-1.5.8.tar.gz
|
||||
Successfully built calliope-backend/dist/calliope-1.5.8-py3-none-any.whl
|
||||
@@ -0,0 +1,702 @@
|
||||
[
|
||||
{
|
||||
"manifest": "docs/hel-892/promoted-reference/sources.json",
|
||||
"result": {
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "1.37.11:src/renderer/extensions/vueNodes/widgets/composables/useMarkdownWidget.ts",
|
||||
"sha256": "d51c760e6dbfedad73d86bd4836620130bc4f482a150fe1a9b9d3ad446da7543"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/stores/widgetValueStore.ts",
|
||||
"sha256": "c2aa35433b597a922a86ff4880d2f00647c73cced7183611780013a121354b52"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/types/widgetId.ts",
|
||||
"sha256": "7730cccc80b6436ce0316f589f11d71c459a128d44459473da274174134beb35"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/lib/litegraph/src/subgraph/SubgraphInput.ts",
|
||||
"sha256": "f7683d58aa9e30a8a52448ad3771a6cf8550ac455eb4595f68b4a115be7bc4c5"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/lib/litegraph/src/LGraphNode.ts",
|
||||
"sha256": "7d312ebe5182c4c69d45b5d5e4434dfd42405f72455310886acded76ce1d60ed"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/stores/widgetValueStore.ts",
|
||||
"sha256": "ecf18bbc714070a7e67a00599ae09b711d1b6eebf5675dd7a6d56ef6d3a3e40a"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/types/widgetId.ts",
|
||||
"sha256": "a803a0701d0f8f29e6af3e44519c8a6e8f6a45704416bc48cca56ea67bcc16af"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/subgraph/SubgraphInput.ts",
|
||||
"sha256": "a729607feeae4afebbd9c25ada167987dd31984b9e7c1b378e9bccd0de124660"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/LGraphNode.ts",
|
||||
"sha256": "01f7e784e32acef112a4b91d94f33253d7a898acc4796c8ab014500c1cd8d682"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/subgraph/promotedWidgetStoreProjection.ts",
|
||||
"sha256": "2caccfda18d4715e1a4d77ce5026db3170d03b590dbe1ec15c41a47b9ea568c6"
|
||||
},
|
||||
{
|
||||
"id": "0.31.0:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "0.31.0:nodes.py",
|
||||
"sha256": "aa7e2a87bb7c1b43273736eef9fcf4811cb55497c5bde2e201135b244b97431a"
|
||||
},
|
||||
{
|
||||
"id": "0.31.0:comfy_extras/nodes_qwen.py",
|
||||
"sha256": "b8d18d9f897c4bd5a4b2651b30643bed277f1808e033c9c376dc21025fed00a5"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:nodes.py",
|
||||
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_minimax_music.py",
|
||||
"sha256": "ff0c9d6dfcd63b76fea0bf52026ee408272dc7a1ffc43fa6ced2097608e25af5"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_qwen.py",
|
||||
"sha256": "54ce02aa9e167c0b497ce026ac6b558f539427d2d1ed4fc1fcc2ec8e6bc529da"
|
||||
},
|
||||
{
|
||||
"id": "0.31.0:comfy_extras/nodes_logic.py",
|
||||
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1"
|
||||
},
|
||||
{
|
||||
"id": "0.31.0:comfy_extras/nodes_primitive.py",
|
||||
"sha256": "ee3882214ebdd0d20c8061691075cebb1642c303e162f6d22ae525d75aa59b2d"
|
||||
},
|
||||
{
|
||||
"id": "0.31.0:comfy_extras/nodes_textgen.py",
|
||||
"sha256": "b328e8a2dc89cfd3a93ab49c1be880a3e89ec4521eef506823753617c86c99e9"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_logic.py",
|
||||
"sha256": "6a146d3a814e37c65c9e749c2fde6d8f0ea8c1fc3f215cb249009e87303908bf"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_primitive.py",
|
||||
"sha256": "329963dd20fbf8985539b7b990780291f4b82ee9cfd42b96b571288b77eaa47a"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_textgen.py",
|
||||
"sha256": "ce41b40babe829cf8773aee3c3e43079f91205db921f6d964685e5fb0e5d7f54"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
|
||||
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
|
||||
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/extensions/core/dynamicPrompts.ts",
|
||||
"sha256": "31004dc7ba9b8ea5c8caa92ab3a15a0e63af8a822f57cb487079aad84d06f4bd"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
|
||||
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
|
||||
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/extensions/core/dynamicPrompts.ts",
|
||||
"sha256": "31004dc7ba9b8ea5c8caa92ab3a15a0e63af8a822f57cb487079aad84d06f4bd"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
|
||||
"sha256": "4f2621d7b7ce770e2592ba0aad7b786a51de9d6d1e1cdc3efd51f79b22009c91"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/scripts/widgets.ts",
|
||||
"sha256": "ecdcd4a6acade9718598aa93fa87901997e0befdcc7ffdc16a55a2de519871d2"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
|
||||
"sha256": "1790b25076266242dc7e61e14e3496c80476317dbe4acad6635063b638f79065"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/scripts/widgets.ts",
|
||||
"sha256": "932a143a1a48c93aa3bee43b6dc3f932cd7f9a946802530650b4acdd41d36bd5"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
},
|
||||
{
|
||||
"manifest": "docs/hel-892/structure-reference/sources.json",
|
||||
"result": {
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "1.37.11:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "1.37.11:src/extensions/core/widgetInputs.ts",
|
||||
"sha256": "488d38eb209816778a6da8cb8f734f539e3fbd7f77aae41ec649a52b8764b613"
|
||||
},
|
||||
{
|
||||
"id": "1.37.11:src/utils/executionUtil.ts",
|
||||
"sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36"
|
||||
},
|
||||
{
|
||||
"id": "1.37.11:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
|
||||
"sha256": "fd2e19a6b8f4369e6e97d79f407cc1bec130feec9d6d3c979cc03b0a556f249f"
|
||||
},
|
||||
{
|
||||
"id": "1.37.11:src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
|
||||
},
|
||||
{
|
||||
"id": "1.37.11:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"sha256": "d4f1017495158a6133ff770441a4d517dfbf2a328ba42b0405f8729853fe8209"
|
||||
},
|
||||
{
|
||||
"id": "1.37.11:src/lib/litegraph/src/LLink.ts",
|
||||
"sha256": "1d58845322b30f122aeafb23ca286ca7349ca23215469f96afb7a98fd6596af4"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/extensions/core/widgetInputs.ts",
|
||||
"sha256": "fdceceedc727e8a696f273a810fc39a075004a09ea793e0df51418f96ac52a61"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/utils/executionUtil.ts",
|
||||
"sha256": "264e11395f28880603e7f9fe36d2e61c74cd59d6d88be990225cce8510e3f816"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
|
||||
"sha256": "64baa71b46bd67440b032e18e4d9aebb67a6cc135fe7c4509ae1b5bc25acc2a3"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"sha256": "822b0cdde3fe6a096f82310075a6285ae967dc58d760f19d743442ea20f4f15f"
|
||||
},
|
||||
{
|
||||
"id": "1.48.7:src/lib/litegraph/src/LLink.ts",
|
||||
"sha256": "9e9c92acacd5edc58a9c1ad2b3ba66679f27ebda28da74765947d88ce11df656"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/extensions/core/widgetInputs.ts",
|
||||
"sha256": "f6b3d33b9ffdf4f68136ee0f72d03dabf4affa3292721d1f221b47de792e0daf"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/utils/executionUtil.ts",
|
||||
"sha256": "b29fd312e66c7415fa4c720654ac121dc67600b0c1fedf079b6575a174960698"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
|
||||
"sha256": "0c0ca487822a9f86324925c2fb4ea59c6c032ad5d042a83ac367cb15196454fe"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"sha256": "29f2da27396bcc426180d819549f654278d65de973ade651d57c4905e319fb9c"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/lib/litegraph/src/LLink.ts",
|
||||
"sha256": "562694d5bccb5682222c500a7e7069501eeb94e69eeb1b9a534d1e511902ef57"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:src/extensions/core/widgetInputs.ts",
|
||||
"sha256": "fdceceedc727e8a696f273a810fc39a075004a09ea793e0df51418f96ac52a61"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:src/utils/executionUtil.ts",
|
||||
"sha256": "264e11395f28880603e7f9fe36d2e61c74cd59d6d88be990225cce8510e3f816"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
|
||||
"sha256": "64baa71b46bd67440b032e18e4d9aebb67a6cc135fe7c4509ae1b5bc25acc2a3"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"sha256": "822b0cdde3fe6a096f82310075a6285ae967dc58d760f19d743442ea20f4f15f"
|
||||
},
|
||||
{
|
||||
"id": "1.48.6:src/lib/litegraph/src/LLink.ts",
|
||||
"sha256": "9e9c92acacd5edc58a9c1ad2b3ba66679f27ebda28da74765947d88ce11df656"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/extensions/core/previewAny.ts",
|
||||
"sha256": "2b19989ac8a3c26e198c7db7f7e2210936b0a4f4d3b26183917baafb841c1874"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/extensions/core/uploadAudio.ts",
|
||||
"sha256": "0a11f1ad5651d238130bc06aca2a4b31a41f8bec98d0f8512e02ffb42b262e66"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/scripts/widgets.ts",
|
||||
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/scripts/app.ts",
|
||||
"sha256": "e57985f7d365abb035bc2fc755a8f5b10efbca97a7dcb5b2a4a05bcbc78b9d5c"
|
||||
},
|
||||
{
|
||||
"id": "1038lab/ComfyUI-QwenASR:AILab_QwenASR.py",
|
||||
"sha256": "f8cda2d0d39517f93ace1a73263146a4bea59a02604e58919a05393c45ade6b7"
|
||||
},
|
||||
{
|
||||
"id": "1038lab/ComfyUI-QwenASR:__init__.py",
|
||||
"sha256": "0919008142c12f8fe9a12671a1ca1de548ded128dd7287a13f6230d9729b47c2"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI:comfy_extras/nodes_audio.py",
|
||||
"sha256": "d47eefe226c273f20561545f6a664bfdfa5c193cec7178c925b5dc5ccb642a9c"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI:comfy_extras/nodes_preview_any.py",
|
||||
"sha256": "f8c526dbc4ec512f88a067524865f59eb24db636858f37d601e848885b2d0751"
|
||||
},
|
||||
{
|
||||
"id": "qwen-history:aaf40688c93c8e083f8a47d9107e6f95405ea7c9",
|
||||
"sha256": "f8cda2d0d39517f93ace1a73263146a4bea59a02604e58919a05393c45ade6b7"
|
||||
},
|
||||
{
|
||||
"id": "qwen-history:b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"sha256": "af7721c1015fef8cb40a724226fb0f720397d70fb1ce367f9145a3b653dd0cd9"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/utils/nodeDefUtil.ts",
|
||||
"sha256": "9c62901804e584a2e9d7e17e7914475113e41993c44df3d063f0027e95735dc1"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
|
||||
"sha256": "b734a2584d558de501150e8011e1c16031f33778c2cd3b4c712f296ce4f05396"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:packages/shared-frontend-utils/src/formatUtil.ts",
|
||||
"sha256": "7313418fe3a92aae99f2ef91f081257c2b2162b1578155d7346f2f03ab440039"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/scripts/domWidget.ts",
|
||||
"sha256": "34ec3c58d6b236f4e99bfa0c82dcab8e15c6a6b51c6dcb9ace30e37d1a395800"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI_frontend:src/lib/litegraph/src/LGraphNode.ts",
|
||||
"sha256": "706225a8a06cd7929f9e04fe2388bcdb8f158cdac756c65c45657c020ab7b319"
|
||||
},
|
||||
{
|
||||
"id": "1038lab/ComfyUI-QwenASR:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "1038lab/ComfyUI-QwenASR:__init__.py",
|
||||
"sha256": "e35f18c3986ee7b00a918ed644e375bc7cee1b88f740cc52fd93b45ace621a41"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/lib/litegraph/src/widgets/BaseWidget.ts",
|
||||
"sha256": "6a77b402bbf8c67b9ea2ce58de28c61a1b17da82bb437c29565fb260b721b8c7"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/lib/litegraph/src/widgets/LegacyWidget.ts",
|
||||
"sha256": "05d098254988191736f1c72f7efc57e3f350d97c82267a97f0b8c193d65daa96"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
|
||||
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
},
|
||||
{
|
||||
"manifest": "docs/hel-892/serialization-evidence/sources.json",
|
||||
"result": {
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "ComfyUI_frontend:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI:comfy_extras/nodes_images.py",
|
||||
"sha256": "40f22183dcbc9f871030145ca33d52f3dd9d8f64b21ceb071c2fdf6cd49ff501"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI:comfy_extras/nodes_canny.py",
|
||||
"sha256": "c69f945190aaeb02fd3e81bbe21f5bf2dd70395a3bf17cbe8726261739146fff"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI:nodes.py",
|
||||
"sha256": "e09534d2c275b2bd389ba7d28677a24d86ce174cdb2419f3d424ff5e50b5d62a"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/extensions/core/dynamicPrompts.ts",
|
||||
"sha256": "d190ef52ad9ca6d0351a8e08881773baf1dac49cd2eed71c2cceb20d90838216"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/extensions/core/rerouteNode.ts",
|
||||
"sha256": "53abe69665c97427faa7e41d4d0b9b33c8c1415fff84f582ed51862bdf7bfcd8"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/extensions/core/uploadImage.ts",
|
||||
"sha256": "935687284bebc3bbb49616976ccaf83c31998dd7abba231e5c8eaab0e8aa9e04"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/lib/litegraph/src/LGraphNode.ts",
|
||||
"sha256": "706225a8a06cd7929f9e04fe2388bcdb8f158cdac756c65c45657c020ab7b319"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
|
||||
"sha256": "fd2e19a6b8f4369e6e97d79f407cc1bec130feec9d6d3c979cc03b0a556f249f"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
|
||||
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
|
||||
"sha256": "578955db305e760d317b394d0c155caa6aa1e60a235a076e14aadadbd25222d4"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"sha256": "a6536de10db2ee4dca8f858f1b2ee68077e9313393e3657e9c22a49c408629e5"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
|
||||
"sha256": "77d0603c9cb4397cdb33bcbee5721a3690b63f28e82eb11e79a356f0306e149d"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "68cb754c9c9ba48da2031981d65eca244d66c611314fc5690e96fdb941a0e8ff"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/scripts/widgets.ts",
|
||||
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/services/litegraphService.ts",
|
||||
"sha256": "ccd4b316a41b6e090716e6243f50135f87b209ff1531a4c3d6e29d99e4392041"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/utils/executionUtil.ts",
|
||||
"sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/utils/litegraphUtil.ts",
|
||||
"sha256": "816d80ceb6a42abb61090f97172345e53827ab8ba1993817108ec6f8abc61505"
|
||||
},
|
||||
{
|
||||
"id": "ComfyUI_frontend:src/workbench/utils/nodeDefOrderingUtil.ts",
|
||||
"sha256": "27e98379fef3cb7158b2968d1b920ff16db662e4e0c5252ed62c7c7edc6f2227"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
},
|
||||
{
|
||||
"manifest": "docs/hel-892/case04-reference/sources.json",
|
||||
"result": {
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_resolution.py",
|
||||
"sha256": "3fe5c3f9aeceed343725a91c6feaa13377b5ebad2c95fd633e3806d69d10bcc8"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_images.py",
|
||||
"sha256": "f8e171f428e2e81de8d7b1cd582ac4ac82cd7ae5a3c947f118ecf85df920bf50"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_extras/nodes_preview_any.py",
|
||||
"sha256": "48cffa3b2ddd08c311af609642da8703abc9bac9e624c400c3dc41f6edcea930"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_api/latest/_io.py",
|
||||
"sha256": "e697ed00732deffb46d7a017d82dae48ee2504a8d356f911a1447ec6146294f7"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_api/latest/_io_public.py",
|
||||
"sha256": "c805d754d61aba1ea72ed2d9d5c371de35be9affa5305d35426fb298fcb7c046"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy/samplers.py",
|
||||
"sha256": "f2c264ca9d394612f828e3ffe167c856a278a10e1711b269f0ba65dccb66393f"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/scripts/valueControl.ts",
|
||||
"sha256": "007c7204d1fe88d156e07fee783a55e79fa7610e98a8a9f7761704a076a60458"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/scripts/app.ts",
|
||||
"sha256": "ba650ea75b14affbdd1fbf4d821679d29dde59bd09986666a4734c8a160f7027"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
|
||||
"sha256": "4316e8869b8673488ea9b136dbd4027160626c53cab9372fa1ca7aab059cf124"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/extensions/core/previewAny.ts",
|
||||
"sha256": "da8f4361b054d8619c09b4abaae1c2c464d6c8927968e60f18e61b467d2a3366"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/core/graph/widgets/dynamicWidgets.ts",
|
||||
"sha256": "35cbe6eae6470bdd9aa45f17000ba444dce21597fdb8edf54da43ffb840936c1"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/schemas/nodeDef/migration.ts",
|
||||
"sha256": "ae357da184625b93c492c0b73ce9bd2f3b49d158ca19a2944c6500f924a7a533"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
|
||||
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/scripts/promotedWidgetControl.ts",
|
||||
"sha256": "30b0703305b8c3f921be3e700d9a1406f5721a7d5f8a8d1be56c8964e32743a4"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/extensions/core/textPreviewWidgets.ts",
|
||||
"sha256": "453e4c11c902e84dc9950475f8439d4364d0244bfe370c4b74770b84c2592a75"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/services/litegraphService.ts",
|
||||
"sha256": "84ffdeae56bc73065fd2a44ae924b6ab4fd48bb7e79a710210e858cce508784e"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:packages/shared-frontend-utils/src/formatUtil.ts",
|
||||
"sha256": "939faea5d135ce2aeb78c4dc92232de7e4836ab90d9fb61a804a457bbc910253"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/extensions/core/saveImageExtraOutput.ts",
|
||||
"sha256": "2115ffeb31f3099e0e97b46304b802653c1ba58ad746323d1b094a1605265682"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/extensions/core/uploadImage.ts",
|
||||
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/utils/searchAndReplace.ts",
|
||||
"sha256": "c7462edebf266b8b8cc62954a371ca3ec3fd1ee4c188e1b80a675003b49887d4"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/core/graph/subgraph/promotedInputWidget.ts",
|
||||
"sha256": "9d785e3515e0cfc84cbfbdaf33dc00cd668b243fcab9739a66c1954c22e15936"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/core/graph/subgraph/resolveConcretePromotedWidget.ts",
|
||||
"sha256": "9833f86c3533518ed6ce2085a38afc8039cf903e4729bb10572551bd148a317d"
|
||||
},
|
||||
{
|
||||
"id": "0.38.0:comfy_api/internal/__init__.py",
|
||||
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
|
||||
"sha256": "11395e93cf9199ea2a7a9f097306e01434a43d6a9df2c0db773170c5ecd85451"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/core/graph/subgraph/resolveSubgraphInputLink.ts",
|
||||
"sha256": "20fe9c7dd9a30f316e8b903df53db693434f0827187286a4dfb6a7f4c7fff6f7"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
},
|
||||
{
|
||||
"manifest": "docs/hel-892/controlnet-reference/sources.json",
|
||||
"result": {
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "controlnet_aux:__init__.py",
|
||||
"sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4"
|
||||
},
|
||||
{
|
||||
"id": "controlnet_aux:utils.py",
|
||||
"sha256": "7d217c7ba934556ee0ffa2ff8cd7a705873381b274db179623c11b829f71a375"
|
||||
},
|
||||
{
|
||||
"id": "controlnet_aux:node_wrappers/depth_anything.py",
|
||||
"sha256": "f769ac091bd2725065f4d8cddc6fba9ae636d659d16c3d2a79b9c202b099ec17"
|
||||
},
|
||||
{
|
||||
"id": "controlnet_aux:pyproject.toml",
|
||||
"sha256": "e8ec5486ae4d2fd82192e56efbbcecaa80e27f217ba06c216b10fac6ef147894"
|
||||
},
|
||||
{
|
||||
"id": "controlnet_aux:LICENSE.txt",
|
||||
"sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
},
|
||||
{
|
||||
"manifest": "docs/hel-892/media-reference/sources.json",
|
||||
"result": {
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:pyproject.toml",
|
||||
"sha256": "d1dbfd911b9729a86851c0575a88a702192afabf026914a3bec7e04f3e615d00"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:pyproject.toml",
|
||||
"sha256": "96a1df2f226872a986a8c23276647f63999199cbf78bb3a210ba844feed94614"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:nodes.py",
|
||||
"sha256": "684b367dd0e6ddd61dd78c5c6bb4dd107c6b944e8775bc0f593e7f5337a49d14"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_io.py",
|
||||
"sha256": "3852e5c6efa9a146e59f1e7c2d4f1df59180f2082972b39b7d0ccd7389232e63"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/internal/__init__.py",
|
||||
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:execution.py",
|
||||
"sha256": "b2d736d1f7a01ff7c288e8454401888703a2d67918c19873579e54752d72cd6f"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,936 @@
|
||||
{
|
||||
"cases": [
|
||||
{
|
||||
"id": "01",
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
|
||||
"state": "pending_check",
|
||||
"adopted": true,
|
||||
"api_nodes": 22,
|
||||
"api_inputs": 57,
|
||||
"new_api_literal_params": 34,
|
||||
"field_comparison": {
|
||||
"unnamed_or_virtual_boundary_unverified": 34,
|
||||
"link_difference": 9,
|
||||
"link_equal": 14
|
||||
},
|
||||
"source_only_ids": [
|
||||
"31",
|
||||
"32",
|
||||
"24",
|
||||
"35"
|
||||
],
|
||||
"api_only_ids": [],
|
||||
"named_evidence_differences": [],
|
||||
"output_map": [
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "3"
|
||||
},
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "5"
|
||||
},
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "11"
|
||||
},
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "13"
|
||||
},
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "22"
|
||||
},
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "36"
|
||||
},
|
||||
{
|
||||
"class_type": "PreviewImage",
|
||||
"kind": "image",
|
||||
"label": "预览图像",
|
||||
"nodeId": "37"
|
||||
}
|
||||
],
|
||||
"kind": "image",
|
||||
"issues": [
|
||||
{
|
||||
"code": "companion_unverified",
|
||||
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
|
||||
}
|
||||
],
|
||||
"general_conversion_verified": false,
|
||||
"execution_verified": false,
|
||||
"evidence_file": "01.json"
|
||||
},
|
||||
{
|
||||
"id": "02",
|
||||
"source_path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
|
||||
"state": "pending_check",
|
||||
"adopted": true,
|
||||
"api_nodes": 6,
|
||||
"api_inputs": 21,
|
||||
"new_api_literal_params": 16,
|
||||
"field_comparison": {
|
||||
"link_equal": 5,
|
||||
"unnamed_or_virtual_boundary_unverified": 15,
|
||||
"link_difference": 1
|
||||
},
|
||||
"source_only_ids": [
|
||||
"7"
|
||||
],
|
||||
"api_only_ids": [],
|
||||
"named_evidence_differences": [],
|
||||
"output_map": [],
|
||||
"kind": "unknown",
|
||||
"issues": [
|
||||
{
|
||||
"code": "companion_unverified",
|
||||
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
|
||||
}
|
||||
],
|
||||
"general_conversion_verified": false,
|
||||
"execution_verified": false,
|
||||
"evidence_file": "02.json"
|
||||
},
|
||||
{
|
||||
"id": "03",
|
||||
"source_path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
|
||||
"state": "pending_check",
|
||||
"adopted": true,
|
||||
"api_nodes": 12,
|
||||
"api_inputs": 40,
|
||||
"new_api_literal_params": 24,
|
||||
"field_comparison": {
|
||||
"named_equal": 16,
|
||||
"link_difference": 9,
|
||||
"link_equal": 15
|
||||
},
|
||||
"source_only_ids": [
|
||||
"39",
|
||||
"40",
|
||||
"37"
|
||||
],
|
||||
"api_only_ids": [],
|
||||
"named_evidence_differences": [
|
||||
{
|
||||
"node_id": "37:6",
|
||||
"field": "unet_name",
|
||||
"api_value": "MiniMax/minimax_music3_dit_fp16.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "minimax_music3_dit_fp16.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
55,
|
||||
-10,
|
||||
4,
|
||||
6,
|
||||
0,
|
||||
"COMBO"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
4
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "37:13",
|
||||
"field": "caption",
|
||||
"api_value": "Global Metadata: Lo-fi hip-hop, chillhop. 78 BPM, D flat major, major scale with jazzy extensions. Laid-back and dreamy throughout, a gentle warm drift with a subtle late-night glow that deepens in the middle and dissolves softly at the end. Studying, raining-outside, headphones-on late-night listening. Bedroom production: muddy warm texture, heavy vinyl crackle, tape hiss and wow-flutter pitch wobble, low-passed dusty mix, soft-clipped drums, everything slightly detuned and cozy.\n\nVocal Details: Soft androgynous vocal, hushed half-sung half-spoken delivery, sitting low in the mix like another instrument, lazy behind-the-beat phrasing, gentle breathy timbre. Sparse murmured double-tracked harmonies, occasional wordless \"mmm\" and \"ooh\" hums drenched in tape delay and warm spring reverb. Long stretches with no vocals at all.\n\nArrangement: Dusty boom-bap drums with a soft thumping kick, cracked snare with lazy swing, brushed hi-hats, low round sub bass. Warm Rhodes piano chords with slow chorus wobble as the harmonic bed, mellow jazzy guitar licks answering the vocal lines, constant vinyl crackle as texture. Intro: rain and vinyl noise, solo Rhodes chords fading in, drums slipping in halfway. Verses: minimal — drums, bass, Rhodes, soft guitar fills between lines. Instrumental sections: guitar and Rhodes trade relaxed jazzy phrases over the beat, occasional muted trumpet ghost notes far in the background. Bridge: drums drop away to rain, crackle, and floating detuned Rhodes, then the beat eases back in. Outro: elements fade one by one until only vinyl crackle and a last unresolved Rhodes chord remain.",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
45,
|
||||
-10,
|
||||
0,
|
||||
13,
|
||||
1,
|
||||
"STRING"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
0
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "37:13",
|
||||
"field": "lyrics",
|
||||
"api_value": "[Intro]\nMmm...\n(rain on the window)\nOoh...\n\n[Verse]\nMidnight and the canvas glows\nDragging little wires where the current flows\nType a quiet dream, let the sampler drift\nNoise into a picture, like the fog just lifts\nTwenty slow steps, I'm in no hurry now\nLatents turning colors and I don't know how\nEvery render's like a polaroid I found\nSoft focus memories, no sound\n\n[Instrumental]\n\n[Verse]\nQueue another frame, let the motion breathe\nPictures start to move like the falling leaves\nVideo drifting by at twenty-four\nLittle animations on my bedroom floor\nSeed after seed like the rain outside\nSome of them are keepers, some I let slide\nSave the ones that feel like a Sunday slow\nNode to node to node... and off we go\n\n[Chorus]\nMmm... let it render on\n(take your time, take your time)\nOoh... by the morning it'll all be done\n(one more queue, one more try)\n\n[Instrumental]\n\n[Bridge]\nRain keeps drawing pictures on the glass...\nMy machine keeps dreaming...\nNeither of us fast...\n\n[Chorus]\nMmm... let it render on\n(take your time, take your time)\nOoh... by the morning it'll all be done\n(one more queue, one more try)\n\n[Instrumental]\n\n[Outro]\nMmm...\n(node to node)\nOoh... goodnight",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
46,
|
||||
-10,
|
||||
1,
|
||||
13,
|
||||
2,
|
||||
"STRING"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
1
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "37:13",
|
||||
"field": "seed",
|
||||
"api_value": [
|
||||
"37:38",
|
||||
0
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 222,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
52,
|
||||
38,
|
||||
0,
|
||||
13,
|
||||
3,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:38",
|
||||
0
|
||||
],
|
||||
"status": "link_equal"
|
||||
},
|
||||
{
|
||||
"node_id": "37:3",
|
||||
"field": "clip_name",
|
||||
"api_value": "MiniMax/minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
56,
|
||||
-10,
|
||||
5,
|
||||
3,
|
||||
0,
|
||||
"COMBO"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
5
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "37:7",
|
||||
"field": "vae_name",
|
||||
"api_value": "MiniMax/minimax_music3_dav.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "minimax_music3_dav.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
57,
|
||||
-10,
|
||||
6,
|
||||
7,
|
||||
0,
|
||||
"COMBO"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
6
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "37:15",
|
||||
"field": "seconds",
|
||||
"api_value": [
|
||||
"37:13",
|
||||
1
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 120,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
20,
|
||||
13,
|
||||
1,
|
||||
15,
|
||||
0,
|
||||
"FLOAT"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:13",
|
||||
1
|
||||
],
|
||||
"status": "link_equal"
|
||||
},
|
||||
{
|
||||
"node_id": "37:9",
|
||||
"field": "seed",
|
||||
"api_value": [
|
||||
"37:38",
|
||||
0
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 1111111112,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
53,
|
||||
38,
|
||||
0,
|
||||
9,
|
||||
4,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:38",
|
||||
0
|
||||
],
|
||||
"status": "link_equal"
|
||||
},
|
||||
{
|
||||
"node_id": "37:38",
|
||||
"field": "seed",
|
||||
"api_value": 617970236276137,
|
||||
"api_type": "int",
|
||||
"named_evidence": {
|
||||
"source_value": 0,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
54,
|
||||
-10,
|
||||
3,
|
||||
38,
|
||||
0,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
3
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "37:43",
|
||||
"field": "switch",
|
||||
"api_value": true,
|
||||
"api_type": "bool",
|
||||
"named_evidence": {
|
||||
"source_value": false,
|
||||
"source_type": "bool",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
63,
|
||||
-10,
|
||||
7,
|
||||
43,
|
||||
2,
|
||||
"BOOLEAN"
|
||||
],
|
||||
"source_expected": [
|
||||
"37:-10",
|
||||
7
|
||||
],
|
||||
"status": "link_difference"
|
||||
}
|
||||
],
|
||||
"output_map": [],
|
||||
"kind": "unknown",
|
||||
"issues": [
|
||||
{
|
||||
"code": "companion_unverified",
|
||||
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
|
||||
}
|
||||
],
|
||||
"general_conversion_verified": false,
|
||||
"execution_verified": false,
|
||||
"evidence_file": "03.json"
|
||||
},
|
||||
{
|
||||
"id": "04",
|
||||
"source_path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
|
||||
"state": "pending_check",
|
||||
"adopted": true,
|
||||
"api_nodes": 16,
|
||||
"api_inputs": 60,
|
||||
"new_api_literal_params": 42,
|
||||
"field_comparison": {
|
||||
"named_equal": 27,
|
||||
"link_difference": 20,
|
||||
"link_equal": 13
|
||||
},
|
||||
"source_only_ids": [
|
||||
"459",
|
||||
"463",
|
||||
"468"
|
||||
],
|
||||
"api_only_ids": [],
|
||||
"named_evidence_differences": [
|
||||
{
|
||||
"node_id": "459:451",
|
||||
"field": "unet_name",
|
||||
"api_value": "Qwen-Image/qwen_image_2.1_bf16.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "qwen_image_2.1_int8_convrot.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
663,
|
||||
-10,
|
||||
11,
|
||||
451,
|
||||
0,
|
||||
"COMBO"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
11
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:452",
|
||||
"field": "prompt",
|
||||
"api_value": [
|
||||
"459:472",
|
||||
0
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": "",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
687,
|
||||
472,
|
||||
0,
|
||||
452,
|
||||
3,
|
||||
"STRING"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:472",
|
||||
0
|
||||
],
|
||||
"status": "link_equal"
|
||||
},
|
||||
{
|
||||
"node_id": "459:456",
|
||||
"field": "width",
|
||||
"api_value": [
|
||||
"13",
|
||||
0
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 1024,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
660,
|
||||
-10,
|
||||
6,
|
||||
456,
|
||||
0,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
6
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:456",
|
||||
"field": "height",
|
||||
"api_value": [
|
||||
"13",
|
||||
1
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 1024,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
661,
|
||||
-10,
|
||||
7,
|
||||
456,
|
||||
1,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
7
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:458",
|
||||
"field": "seed",
|
||||
"api_value": 447606998181263,
|
||||
"api_type": "int",
|
||||
"named_evidence": {
|
||||
"source_value": 0,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
667,
|
||||
-10,
|
||||
10,
|
||||
458,
|
||||
4,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
10
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:471",
|
||||
"field": "prompt",
|
||||
"api_value": [
|
||||
"483",
|
||||
0
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": "",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
711,
|
||||
-10,
|
||||
0,
|
||||
471,
|
||||
5,
|
||||
"STRING"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
0
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:471",
|
||||
"field": "sampling_mode.seed",
|
||||
"api_value": 447606998181263,
|
||||
"api_type": "int",
|
||||
"named_evidence": {
|
||||
"source_value": 0,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
697,
|
||||
-10,
|
||||
10,
|
||||
471,
|
||||
13,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
10
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:473",
|
||||
"field": "clip_name",
|
||||
"api_value": "Qwen-Image/qwen3.5_qwen_image_2.1_pe_t2i.int8_convrot.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
696,
|
||||
-10,
|
||||
14,
|
||||
473,
|
||||
0,
|
||||
"COMBO"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
14
|
||||
],
|
||||
"status": "link_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "459:474",
|
||||
"field": "switch",
|
||||
"api_value": true,
|
||||
"api_type": "bool",
|
||||
"named_evidence": {
|
||||
"source_value": false,
|
||||
"source_type": "bool",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
688,
|
||||
-10,
|
||||
1,
|
||||
474,
|
||||
2,
|
||||
"BOOLEAN"
|
||||
],
|
||||
"source_expected": [
|
||||
"459:-10",
|
||||
1
|
||||
],
|
||||
"status": "link_difference"
|
||||
}
|
||||
],
|
||||
"output_map": [
|
||||
{
|
||||
"class_type": "SaveImageAdvanced",
|
||||
"kind": "image",
|
||||
"label": "保存图像(高级)",
|
||||
"nodeId": "461"
|
||||
}
|
||||
],
|
||||
"kind": "image",
|
||||
"issues": [
|
||||
{
|
||||
"code": "companion_unverified",
|
||||
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
|
||||
}
|
||||
],
|
||||
"general_conversion_verified": false,
|
||||
"execution_verified": false,
|
||||
"evidence_file": "04.json"
|
||||
},
|
||||
{
|
||||
"id": "05",
|
||||
"source_path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
|
||||
"state": "pending_check",
|
||||
"adopted": true,
|
||||
"api_nodes": 16,
|
||||
"api_inputs": 66,
|
||||
"new_api_literal_params": 48,
|
||||
"field_comparison": {
|
||||
"named_difference": 5,
|
||||
"named_equal": 43,
|
||||
"link_equal": 18
|
||||
},
|
||||
"source_only_ids": [
|
||||
"25"
|
||||
],
|
||||
"api_only_ids": [],
|
||||
"named_evidence_differences": [
|
||||
{
|
||||
"node_id": "1",
|
||||
"field": "unet_name",
|
||||
"api_value": "MiniMax/minimax_h3_ref2va_pruned_int8_convrot.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "MiniMax\\minimax_h3_ref2va_pruned_int8_convrot.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_value": "MiniMax\\minimax_h3_ref2va_pruned_int8_convrot.safetensors",
|
||||
"status": "named_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "2",
|
||||
"field": "clip_name",
|
||||
"api_value": "MiniMax/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "MiniMax\\qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_value": "MiniMax\\qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
|
||||
"status": "named_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "3",
|
||||
"field": "vae_name",
|
||||
"api_value": "MiniMax/minimax_h3_video_vae_fp16.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "MiniMax\\minimax_h3_video_vae_fp16.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_value": "MiniMax\\minimax_h3_video_vae_fp16.safetensors",
|
||||
"status": "named_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "4",
|
||||
"field": "vae_name",
|
||||
"api_value": "MiniMax/minimax_h3_audio_vae_fp32.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "MiniMax\\minimax_h3_audio_vae_fp32.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_value": "MiniMax\\minimax_h3_audio_vae_fp32.safetensors",
|
||||
"status": "named_difference"
|
||||
},
|
||||
{
|
||||
"node_id": "7",
|
||||
"field": "width",
|
||||
"api_value": [
|
||||
"24",
|
||||
0
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 1536,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
44,
|
||||
24,
|
||||
0,
|
||||
7,
|
||||
2,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"24",
|
||||
0
|
||||
],
|
||||
"status": "link_equal"
|
||||
},
|
||||
{
|
||||
"node_id": "7",
|
||||
"field": "height",
|
||||
"api_value": [
|
||||
"24",
|
||||
1
|
||||
],
|
||||
"api_type": "list",
|
||||
"named_evidence": {
|
||||
"source_value": 960,
|
||||
"source_type": "int",
|
||||
"status": "different"
|
||||
},
|
||||
"source_link": [
|
||||
45,
|
||||
24,
|
||||
1,
|
||||
7,
|
||||
3,
|
||||
"INT"
|
||||
],
|
||||
"source_expected": [
|
||||
"24",
|
||||
1
|
||||
],
|
||||
"status": "link_equal"
|
||||
},
|
||||
{
|
||||
"node_id": "21",
|
||||
"field": "lora_name",
|
||||
"api_value": "MiniMax/minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "MiniMax\\minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_value": "MiniMax\\minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
|
||||
"status": "named_difference"
|
||||
}
|
||||
],
|
||||
"output_map": [
|
||||
{
|
||||
"class_type": "SaveVideo",
|
||||
"kind": "video",
|
||||
"label": "保存视频",
|
||||
"nodeId": "10"
|
||||
}
|
||||
],
|
||||
"kind": "video",
|
||||
"issues": [
|
||||
{
|
||||
"code": "companion_unverified",
|
||||
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
|
||||
}
|
||||
],
|
||||
"general_conversion_verified": false,
|
||||
"execution_verified": false,
|
||||
"evidence_file": "05.json"
|
||||
},
|
||||
{
|
||||
"id": "06",
|
||||
"source_path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
|
||||
"state": "user_excluded",
|
||||
"adopted": false,
|
||||
"new_api_literal_params": 0,
|
||||
"exclusion": {
|
||||
"status": "user_excluded",
|
||||
"case_id": "06",
|
||||
"reason": "用户明确排除这一份,不补导、不修补,不作为剩余阻塞",
|
||||
"decision": {
|
||||
"issue_id": "01a17910-fd9c-72aa-9e76-331f0cfdf896",
|
||||
"comment_id": "01a187e6-5df9-7c98-8afe-05fc9baa5b55",
|
||||
"issue_link": "mention://issue/01a17910-fd9c-72aa-9e76-331f0cfdf896",
|
||||
"quote": "缺的那份不需要了"
|
||||
}
|
||||
},
|
||||
"historical_row_preserved": false
|
||||
},
|
||||
{
|
||||
"id": "07",
|
||||
"source_path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
|
||||
"state": "pending_check",
|
||||
"adopted": true,
|
||||
"api_nodes": 72,
|
||||
"api_inputs": 251,
|
||||
"new_api_literal_params": 130,
|
||||
"field_comparison": {
|
||||
"unnamed_or_virtual_boundary_unverified": 92,
|
||||
"link_difference": 57,
|
||||
"link_equal": 93,
|
||||
"named_difference": 1,
|
||||
"named_equal": 7,
|
||||
"source_node_unresolved": 1
|
||||
},
|
||||
"source_only_ids": [
|
||||
"574",
|
||||
"575",
|
||||
"292",
|
||||
"582",
|
||||
"291",
|
||||
"291:78",
|
||||
"291:77",
|
||||
"291:90",
|
||||
"291:80",
|
||||
"291:290",
|
||||
"291:96",
|
||||
"291:79",
|
||||
"291:97",
|
||||
"291:416",
|
||||
"291:417",
|
||||
"291:571",
|
||||
"291:572",
|
||||
"291:573",
|
||||
"581",
|
||||
"539",
|
||||
"600",
|
||||
"603",
|
||||
"602",
|
||||
"604",
|
||||
"605",
|
||||
"587",
|
||||
"597",
|
||||
"477",
|
||||
"477:466",
|
||||
"598",
|
||||
"261",
|
||||
"261:241",
|
||||
"608",
|
||||
"609",
|
||||
"540",
|
||||
"601",
|
||||
"610",
|
||||
"606"
|
||||
],
|
||||
"api_only_ids": [
|
||||
"612"
|
||||
],
|
||||
"named_evidence_differences": [
|
||||
{
|
||||
"node_id": "585",
|
||||
"field": "video",
|
||||
"api_value": "抖音20261025-285806.mp4",
|
||||
"api_type": "str",
|
||||
"named_evidence": {
|
||||
"source_value": "1daafaf7f9a12f651c41e56d38bc518f.mp4",
|
||||
"source_type": "str",
|
||||
"status": "different"
|
||||
},
|
||||
"source_value": "1daafaf7f9a12f651c41e56d38bc518f.mp4",
|
||||
"status": "named_difference"
|
||||
}
|
||||
],
|
||||
"output_map": [
|
||||
{
|
||||
"class_type": "SaveVideo",
|
||||
"kind": "video",
|
||||
"label": "保存视频",
|
||||
"nodeId": "246"
|
||||
}
|
||||
],
|
||||
"kind": "video",
|
||||
"issues": [
|
||||
{
|
||||
"code": "companion_unverified",
|
||||
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
|
||||
}
|
||||
],
|
||||
"general_conversion_verified": false,
|
||||
"execution_verified": false,
|
||||
"evidence_file": "07.json"
|
||||
}
|
||||
],
|
||||
"adopted": 6,
|
||||
"user_excluded": 1,
|
||||
"source_files": 156,
|
||||
"target_files": 155,
|
||||
"general_conversion_verified": 0,
|
||||
"execution_verified": 0,
|
||||
"new_api_literal_params": 294
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:pyproject.toml",
|
||||
"sha256": "d1dbfd911b9729a86851c0575a88a702192afabf026914a3bec7e04f3e615d00"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:pyproject.toml",
|
||||
"sha256": "96a1df2f226872a986a8c23276647f63999199cbf78bb3a210ba844feed94614"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:nodes.py",
|
||||
"sha256": "684b367dd0e6ddd61dd78c5c6bb4dd107c6b944e8775bc0f593e7f5337a49d14"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_io.py",
|
||||
"sha256": "3852e5c6efa9a146e59f1e7c2d4f1df59180f2082972b39b7d0ccd7389232e63"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/internal/__init__.py",
|
||||
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:execution.py",
|
||||
"sha256": "b2d736d1f7a01ff7c288e8454401888703a2d67918c19873579e54752d72cd6f"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"authority": "public_reference_only",
|
||||
"sources_verified": [
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:pyproject.toml",
|
||||
"sha256": "d1dbfd911b9729a86851c0575a88a702192afabf026914a3bec7e04f3e615d00"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:pyproject.toml",
|
||||
"sha256": "96a1df2f226872a986a8c23276647f63999199cbf78bb3a210ba844feed94614"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:nodes.py",
|
||||
"sha256": "684b367dd0e6ddd61dd78c5c6bb4dd107c6b944e8775bc0f593e7f5337a49d14"
|
||||
},
|
||||
{
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c"
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_io.py",
|
||||
"sha256": "3852e5c6efa9a146e59f1e7c2d4f1df59180f2082972b39b7d0ccd7389232e63"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/internal/__init__.py",
|
||||
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410"
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:execution.py",
|
||||
"sha256": "b2d736d1f7a01ff7c288e8454401888703a2d67918c19873579e54752d72cd6f"
|
||||
}
|
||||
],
|
||||
"upstream_code_executed": false,
|
||||
"target_version_match": "unknown"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
4 files already formatted
|
||||
@@ -0,0 +1 @@
|
||||
{"batch_id": "ac780e0b-d11b-48e9-9b45-35d81d1df62e", "source_commit": "a8cd8e8ac57fb2b7289eca21ee52a0a79010848a", "counts": {"imported": 155, "user_excluded": 1}, "states": {"pending_check": 16, "needs_conversion": 139}, "source_total": 156, "excluded_total": 1, "target_total": 155, "total": 156, "doc_completed": 0, "exec_verified": 0}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"enabled_or_completed_or_executed": 0,
|
||||
"target_count": 155,
|
||||
"companion_named_values": 294,
|
||||
"environment_unchecked_count": 16,
|
||||
"companion_unverified_count": 6,
|
||||
"production_registry_unchanged": true
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
All checks passed!
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,677 @@
|
||||
{
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
|
||||
"source_sha1": "310c0337107d4de66852416fff54b3a870e91f3f",
|
||||
"source_sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b",
|
||||
"frontend_version": null,
|
||||
"cohort": "without_companion",
|
||||
"comparison_status": "comparison_unavailable",
|
||||
"status": "complete_reference_candidate",
|
||||
"inventory": [
|
||||
{
|
||||
"pointer": "/nodes/0",
|
||||
"node_id": "4",
|
||||
"type": "SaveAudioMP3",
|
||||
"provider": null,
|
||||
"version": null,
|
||||
"mode": 0,
|
||||
"widget_count": 2,
|
||||
"widget_layout": "list",
|
||||
"ue_version": null
|
||||
},
|
||||
{
|
||||
"pointer": "/nodes/1",
|
||||
"node_id": "1",
|
||||
"type": "LoadAudio",
|
||||
"provider": null,
|
||||
"version": null,
|
||||
"mode": 0,
|
||||
"widget_count": 3,
|
||||
"widget_layout": "list",
|
||||
"ue_version": null
|
||||
}
|
||||
],
|
||||
"attempts": [
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-core-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_legacy_reference_assumption",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:SaveAudioMP3",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LoadAudio",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": "e8b689a513c3e6b63edc44066560ca5919c0576e",
|
||||
"aux_release_artifact_match": "unknown",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_legacy_reference_assumption",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:SaveAudioMP3",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LoadAudio",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-qwen-b037d7be-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": "b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_legacy_reference_assumption",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:SaveAudioMP3",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "LoadAudio 提供方/声明版本不匹配",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-preview-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": "b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.48.7-structure-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.48.7",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.53.6-structure-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.53.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.48.6-structure-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.48.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.48.7-promoted-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.48.7",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.53.6-promoted-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.53.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.53.6-core-0.38.0-saved-state-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.53.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-asr-b037d7be-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": "b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": {
|
||||
"core": "0.11.0@09725967cf76304371c390ca1d6483e04061da48"
|
||||
},
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_media_reference_assumption",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "complete_reference_candidate",
|
||||
"issues": [],
|
||||
"serialization_stage": "restored_saved_state_before_queue_hooks",
|
||||
"candidate_sha256": "354fd42b41602d7a9d1a60d516a09364b46d0735ecbc1b1029cd5779d09df9a8",
|
||||
"candidate_prompt": {
|
||||
"4": {
|
||||
"class_type": "SaveAudioMP3",
|
||||
"inputs": {
|
||||
"filename_prefix": "audio/ComfyUI",
|
||||
"quality": "V0",
|
||||
"audioUI": "",
|
||||
"audio": [
|
||||
"1",
|
||||
0
|
||||
]
|
||||
},
|
||||
"_meta": {
|
||||
"title": "SaveAudioMP3"
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"class_type": "LoadAudio",
|
||||
"inputs": {
|
||||
"audio": "0001.G.E.M. 邓紫棋 - 光年之外.m4a",
|
||||
"audioUI": ""
|
||||
},
|
||||
"_meta": {
|
||||
"title": "LoadAudio"
|
||||
}
|
||||
}
|
||||
},
|
||||
"field_evidence": [
|
||||
{
|
||||
"node_id": "4",
|
||||
"class_type": "SaveAudioMP3",
|
||||
"class_pointer": "/nodes/0/type",
|
||||
"title_pointer": "/nodes/0/type",
|
||||
"field": "filename_prefix",
|
||||
"value": "audio/ComfyUI",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/0/widgets_values/0",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "4",
|
||||
"class_type": "SaveAudioMP3",
|
||||
"class_pointer": "/nodes/0/type",
|
||||
"title_pointer": "/nodes/0/type",
|
||||
"field": "quality",
|
||||
"value": "V0",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/0/widgets_values/1",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "4",
|
||||
"class_type": "SaveAudioMP3",
|
||||
"class_pointer": "/nodes/0/type",
|
||||
"title_pointer": "/nodes/0/type",
|
||||
"field": "audioUI",
|
||||
"value": "",
|
||||
"json_type": "str",
|
||||
"source_pointer": null,
|
||||
"rule": "1.37.11 DOM getter without getValue; not a descriptor",
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "4",
|
||||
"class_type": "SaveAudioMP3",
|
||||
"class_pointer": "/nodes/0/type",
|
||||
"title_pointer": "/nodes/0/type",
|
||||
"field": "audio",
|
||||
"value": [
|
||||
"1",
|
||||
0
|
||||
],
|
||||
"json_type": "list",
|
||||
"source_pointer": "/links/0",
|
||||
"rule": "original final endpoint ID/slot",
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LoadAudio",
|
||||
"class_pointer": "/nodes/1/type",
|
||||
"title_pointer": "/nodes/1/type",
|
||||
"field": "audio",
|
||||
"value": "0001.G.E.M. 邓紫棋 - 光年之外.m4a",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/1/widgets_values/0",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LoadAudio",
|
||||
"class_pointer": "/nodes/1/type",
|
||||
"title_pointer": "/nodes/1/type",
|
||||
"field": "audioUI",
|
||||
"value": "",
|
||||
"json_type": "str",
|
||||
"source_pointer": null,
|
||||
"rule": "1.37.11 DOM getter without getValue; not a descriptor",
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": {
|
||||
"core": "0.4.0@fc657f471a29d07696ca16b566000e8e555d67d1",
|
||||
"ImageReel": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"ImageReelComposit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c"
|
||||
},
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_media_reference_assumption",
|
||||
"missing_node_declarations": [
|
||||
"/nodes/0",
|
||||
"/nodes/1"
|
||||
]
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:SaveAudioMP3",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LoadAudio",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
}
|
||||
],
|
||||
"complete_profiles": [
|
||||
"comfy-frontend-1.37.11-mp3-core-0.11.0-reference"
|
||||
],
|
||||
"candidate_hashes": [
|
||||
"354fd42b41602d7a9d1a60d516a09364b46d0735ecbc1b1029cd5779d09df9a8"
|
||||
],
|
||||
"target_version_match": "unknown",
|
||||
"production_prompt_available": false,
|
||||
"execution_verified": false
|
||||
}
|
||||
@@ -0,0 +1,659 @@
|
||||
{
|
||||
"count": 163,
|
||||
"base": "a8cd8e8",
|
||||
"all_unchanged": true,
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
|
||||
"sha256": "8c0b3528eaf51ae997211b5f37237003ecb6f70e56a633ad8ee34ac43a47b349",
|
||||
"wheel_matches": true,
|
||||
"sdist_matches": true
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
|
||||
"sha256": "f916a51708190d8e8e86d38bd1002631a72b1006db8277e798a172d30fa51c2f",
|
||||
"wheel_matches": true,
|
||||
"sdist_matches": true
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
|
||||
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4",
|
||||
"wheel_matches": true,
|
||||
"sdist_matches": true
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"sha256": "dae1f7edd067f0134c096f73320880deac697c81c63ba6cb7dd266bbc164a2ab",
|
||||
"wheel_matches": true,
|
||||
"sdist_matches": true
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.py",
|
||||
"sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867",
|
||||
"wheel_matches": true,
|
||||
"sdist_matches": true
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.json",
|
||||
"sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6",
|
||||
"wheel_matches": true,
|
||||
"sdist_matches": true
|
||||
}
|
||||
]
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,913 @@
|
||||
{
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
|
||||
"source_sha1": "5901353501699cfc73013169b205b1393772007c",
|
||||
"source_sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3",
|
||||
"frontend_version": null,
|
||||
"cohort": "without_companion",
|
||||
"comparison_status": "comparison_unavailable",
|
||||
"status": "complete_reference_candidate",
|
||||
"inventory": [
|
||||
{
|
||||
"pointer": "/nodes/0",
|
||||
"node_id": "3",
|
||||
"type": "LoadImage",
|
||||
"provider": "comfy-core",
|
||||
"version": "0.4.0",
|
||||
"mode": 0,
|
||||
"widget_count": 2,
|
||||
"widget_layout": "list",
|
||||
"ue_version": null
|
||||
},
|
||||
{
|
||||
"pointer": "/nodes/1",
|
||||
"node_id": "4",
|
||||
"type": "LoadImage",
|
||||
"provider": "comfy-core",
|
||||
"version": "0.4.0",
|
||||
"mode": 0,
|
||||
"widget_count": 2,
|
||||
"widget_layout": "list",
|
||||
"ue_version": null
|
||||
},
|
||||
{
|
||||
"pointer": "/nodes/2",
|
||||
"node_id": "1",
|
||||
"type": "LayerUtility: ImageReel",
|
||||
"provider": "comfyui_layerstyle",
|
||||
"version": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"mode": 0,
|
||||
"widget_count": 6,
|
||||
"widget_layout": "list",
|
||||
"ue_version": "7.5.1"
|
||||
},
|
||||
{
|
||||
"pointer": "/nodes/3",
|
||||
"node_id": "2",
|
||||
"type": "LayerUtility: ImageReelComposit",
|
||||
"provider": "comfyui_layerstyle",
|
||||
"version": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"mode": 0,
|
||||
"widget_count": 4,
|
||||
"widget_layout": "list",
|
||||
"ue_version": "7.5.1"
|
||||
},
|
||||
{
|
||||
"pointer": "/nodes/4",
|
||||
"node_id": "5",
|
||||
"type": "PreviewImage",
|
||||
"provider": "comfy-core",
|
||||
"version": "0.4.0",
|
||||
"mode": 0,
|
||||
"widget_count": 0,
|
||||
"widget_layout": "list",
|
||||
"ue_version": null
|
||||
}
|
||||
],
|
||||
"attempts": [
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-core-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_legacy_reference_assumption",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "3"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReel",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReelComposit",
|
||||
"node_id": "2"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "5"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-controlnet-aux-e8b689a-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": "e8b689a513c3e6b63edc44066560ca5919c0576e",
|
||||
"aux_release_artifact_match": "unknown",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_legacy_reference_assumption",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "3"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReel",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReelComposit",
|
||||
"node_id": "2"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "5"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-qwen-b037d7be-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": "b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_legacy_reference_assumption",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "3"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReel",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReelComposit",
|
||||
"node_id": "2"
|
||||
},
|
||||
{
|
||||
"code": "reference_widget_unverified",
|
||||
"message": "源节点声明与固定核心参考版本不符",
|
||||
"node_id": "5"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-preview-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": "b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.48.7-structure-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.48.7",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.53.6-structure-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.53.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.48.6-structure-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.48.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.48.7-promoted-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.48.7",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.53.6-promoted-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.53.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.53.6-core-0.38.0-saved-state-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.53.6",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-asr-b037d7be-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": "b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": null,
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "requires_explicit_declaration",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "frontend_not_applicable",
|
||||
"message": "前端声明缺失或版本不匹配"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-mp3-core-0.11.0-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": {
|
||||
"core": "0.11.0@09725967cf76304371c390ca1d6483e04061da48"
|
||||
},
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_media_reference_assumption",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "rejected",
|
||||
"rejection_class": "missing_contract",
|
||||
"issues": [
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LoadImage",
|
||||
"node_id": "3"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LoadImage",
|
||||
"node_id": "4"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReel",
|
||||
"node_id": "1"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:LayerUtility: ImageReelComposit",
|
||||
"node_id": "2"
|
||||
},
|
||||
{
|
||||
"code": "reference_node_unsupported",
|
||||
"message": "固定参考契约未覆盖节点:PreviewImage",
|
||||
"node_id": "5"
|
||||
},
|
||||
{
|
||||
"code": "empty_prompt",
|
||||
"message": "未得到可执行节点",
|
||||
"node_id": ""
|
||||
}
|
||||
],
|
||||
"unresolved_boundaries": []
|
||||
},
|
||||
{
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"assumptions": {
|
||||
"frontend": "1.37.11",
|
||||
"unmodified_frontend_and_widgets": true,
|
||||
"target_version_match": "unknown",
|
||||
"ue_serializer_match": "unknown",
|
||||
"dynamic_options_and_files_available": "unknown",
|
||||
"qwen_commit": null,
|
||||
"qwen_missing_declaration": "explicit_reference_assumption_only",
|
||||
"aux_commit": null,
|
||||
"aux_release_artifact_match": "not_used",
|
||||
"media_reference": {
|
||||
"core": "0.4.0@fc657f471a29d07696ca16b566000e8e555d67d1",
|
||||
"ImageReel": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"ImageReelComposit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c"
|
||||
},
|
||||
"reference_sources": [
|
||||
"media-reference/sources.json",
|
||||
"serialization-evidence/sources.json",
|
||||
"structure-reference/sources.json",
|
||||
"controlnet-reference/sources.json",
|
||||
"promoted-reference/sources.json",
|
||||
"case04-reference/sources.json"
|
||||
],
|
||||
"source_frontend_declaration": null,
|
||||
"missing_frontend_policy": "explicit_media_reference_assumption",
|
||||
"missing_node_declarations": []
|
||||
},
|
||||
"status": "complete_reference_candidate",
|
||||
"issues": [],
|
||||
"serialization_stage": "restored_saved_state_before_queue_hooks",
|
||||
"candidate_sha256": "d3f061e1e28d5659250f8b81c5a92fcf90069fa8eecc92b9cc45b1ea42ea4431",
|
||||
"candidate_prompt": {
|
||||
"3": {
|
||||
"class_type": "LoadImage",
|
||||
"inputs": {
|
||||
"image": "1 (8).png"
|
||||
},
|
||||
"_meta": {
|
||||
"title": "LoadImage"
|
||||
}
|
||||
},
|
||||
"4": {
|
||||
"class_type": "LoadImage",
|
||||
"inputs": {
|
||||
"image": "1 (8).png"
|
||||
},
|
||||
"_meta": {
|
||||
"title": "LoadImage"
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"inputs": {
|
||||
"image1_text": "image1",
|
||||
"image2_text": "image2",
|
||||
"image3_text": "image3",
|
||||
"image4_text": "image4",
|
||||
"reel_height": 512,
|
||||
"border": 32,
|
||||
"image1": [
|
||||
"3",
|
||||
0
|
||||
],
|
||||
"image2": [
|
||||
"4",
|
||||
0
|
||||
]
|
||||
},
|
||||
"_meta": {
|
||||
"title": "LayerUtility: ImageReel"
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"class_type": "LayerUtility: ImageReelComposit",
|
||||
"inputs": {
|
||||
"font_file": "Alibaba-PuHuiTi-Heavy.ttf",
|
||||
"font_size": 40,
|
||||
"border": 32,
|
||||
"color_theme": "light",
|
||||
"reel_1": [
|
||||
"1",
|
||||
0
|
||||
]
|
||||
},
|
||||
"_meta": {
|
||||
"title": "LayerUtility: ImageReelComposit"
|
||||
}
|
||||
},
|
||||
"5": {
|
||||
"class_type": "PreviewImage",
|
||||
"inputs": {
|
||||
"images": [
|
||||
"2",
|
||||
0
|
||||
]
|
||||
},
|
||||
"_meta": {
|
||||
"title": "PreviewImage"
|
||||
}
|
||||
}
|
||||
},
|
||||
"field_evidence": [
|
||||
{
|
||||
"node_id": "3",
|
||||
"class_type": "LoadImage",
|
||||
"class_pointer": "/nodes/0/type",
|
||||
"title_pointer": "/nodes/0/type",
|
||||
"field": "image",
|
||||
"value": "1 (8).png",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/0/widgets_values/0",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "4",
|
||||
"class_type": "LoadImage",
|
||||
"class_pointer": "/nodes/1/type",
|
||||
"title_pointer": "/nodes/1/type",
|
||||
"field": "image",
|
||||
"value": "1 (8).png",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/1/widgets_values/0",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "image1_text",
|
||||
"value": "image1",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/2/widgets_values/0",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "image2_text",
|
||||
"value": "image2",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/2/widgets_values/1",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "image3_text",
|
||||
"value": "image3",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/2/widgets_values/2",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "image4_text",
|
||||
"value": "image4",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/2/widgets_values/3",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "reel_height",
|
||||
"value": 512,
|
||||
"json_type": "int",
|
||||
"source_pointer": "/nodes/2/widgets_values/4",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "border",
|
||||
"value": 32,
|
||||
"json_type": "int",
|
||||
"source_pointer": "/nodes/2/widgets_values/5",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "image1",
|
||||
"value": [
|
||||
"3",
|
||||
0
|
||||
],
|
||||
"json_type": "list",
|
||||
"source_pointer": "/links/1",
|
||||
"rule": "original final endpoint ID/slot",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "1",
|
||||
"class_type": "LayerUtility: ImageReel",
|
||||
"class_pointer": "/nodes/2/type",
|
||||
"title_pointer": "/nodes/2/type",
|
||||
"field": "image2",
|
||||
"value": [
|
||||
"4",
|
||||
0
|
||||
],
|
||||
"json_type": "list",
|
||||
"source_pointer": "/links/2",
|
||||
"rule": "original final endpoint ID/slot",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "2",
|
||||
"class_type": "LayerUtility: ImageReelComposit",
|
||||
"class_pointer": "/nodes/3/type",
|
||||
"title_pointer": "/nodes/3/type",
|
||||
"field": "font_file",
|
||||
"value": "Alibaba-PuHuiTi-Heavy.ttf",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/3/widgets_values/0",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "2",
|
||||
"class_type": "LayerUtility: ImageReelComposit",
|
||||
"class_pointer": "/nodes/3/type",
|
||||
"title_pointer": "/nodes/3/type",
|
||||
"field": "font_size",
|
||||
"value": 40,
|
||||
"json_type": "int",
|
||||
"source_pointer": "/nodes/3/widgets_values/1",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "2",
|
||||
"class_type": "LayerUtility: ImageReelComposit",
|
||||
"class_pointer": "/nodes/3/type",
|
||||
"title_pointer": "/nodes/3/type",
|
||||
"field": "border",
|
||||
"value": 32,
|
||||
"json_type": "int",
|
||||
"source_pointer": "/nodes/3/widgets_values/2",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "2",
|
||||
"class_type": "LayerUtility: ImageReelComposit",
|
||||
"class_pointer": "/nodes/3/type",
|
||||
"title_pointer": "/nodes/3/type",
|
||||
"field": "color_theme",
|
||||
"value": "light",
|
||||
"json_type": "str",
|
||||
"source_pointer": "/nodes/3/widgets_values/3",
|
||||
"rule": "fixed constructor identity",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "2",
|
||||
"class_type": "LayerUtility: ImageReelComposit",
|
||||
"class_pointer": "/nodes/3/type",
|
||||
"title_pointer": "/nodes/3/type",
|
||||
"field": "reel_1",
|
||||
"value": [
|
||||
"1",
|
||||
0
|
||||
],
|
||||
"json_type": "list",
|
||||
"source_pointer": "/links/0",
|
||||
"rule": "original final endpoint ID/slot",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
},
|
||||
{
|
||||
"node_id": "5",
|
||||
"class_type": "PreviewImage",
|
||||
"class_pointer": "/nodes/4/type",
|
||||
"title_pointer": "/nodes/4/type",
|
||||
"field": "images",
|
||||
"value": [
|
||||
"2",
|
||||
0
|
||||
],
|
||||
"json_type": "list",
|
||||
"source_pointer": "/links/3",
|
||||
"rule": "original final endpoint ID/slot",
|
||||
"profile": "comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference",
|
||||
"contract_manifest": "media-reference/contract.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"complete_profiles": [
|
||||
"comfy-frontend-1.37.11-layerstyle-mixed-core-0.4.0-reference"
|
||||
],
|
||||
"candidate_hashes": [
|
||||
"d3f061e1e28d5659250f8b81c5a92fcf90069fa8eecc92b9cc45b1ea42ea4431"
|
||||
],
|
||||
"target_version_match": "unknown",
|
||||
"production_prompt_available": false,
|
||||
"execution_verified": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"batch_id": "4c6626b1-e963-4c55-9b21-e84a6a573aba", "source_commit": "a8cd8e8ac57fb2b7289eca21ee52a0a79010848a", "counts": {"skipped": 155, "user_excluded": 1}, "states": {"pending_check": 16, "needs_conversion": 139}, "source_total": 156, "excluded_total": 1, "target_total": 155, "total": 156, "doc_completed": 0, "exec_verified": 0}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"base": "a8cd8e8ac57fb2b7289eca21ee52a0a79010848a",
|
||||
"tested_code_head": "8ed420ebac207c130ac4d1645e89640d57000c0d",
|
||||
"test_result": "365 passed, 0 failed, 1 third-party deprecation warning",
|
||||
"tests_new": 56,
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
|
||||
"sha256": "8c0b3528eaf51ae997211b5f37237003ecb6f70e56a633ad8ee34ac43a47b349"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
|
||||
"sha256": "f916a51708190d8e8e86d38bd1002631a72b1006db8277e798a172d30fa51c2f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/scripts/audit_reference_conversion.py",
|
||||
"sha256": "9c04fd85132acfd69942c0f9dbce8f2f72922b6ba72913bc20dd6f469c309d8c"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_media_reference.py",
|
||||
"sha256": "12180c9b61c930925a7de8fa81d7234a66a6072e47acaf3fe7208f1cbaa6ea5b"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
........................................................................ [ 19%]
|
||||
........................................................................ [ 39%]
|
||||
........................................................................ [ 59%]
|
||||
........................................................................ [ 78%]
|
||||
........................................................................ [ 98%]
|
||||
..... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0e779aca18a6/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/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
|
||||
365 passed, 1 warning in 9.85s
|
||||
@@ -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.
|
||||
@@ -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"]
|
||||
@@ -0,0 +1,341 @@
|
||||
/**
|
||||
* File: dz_comfy_shared.js
|
||||
* Author: Mel Massadian
|
||||
*
|
||||
* Copyright (c) 2023 Mel Massadian
|
||||
*
|
||||
*/
|
||||
|
||||
import { app } from '../../scripts/app.js'
|
||||
|
||||
export const log = (...args) => {
|
||||
// if (window.DZ?.DEBUG) {
|
||||
// console.debug(...args)
|
||||
// }
|
||||
}
|
||||
|
||||
//- WIDGET UTILS
|
||||
export const CONVERTED_TYPE = 'converted-widget'
|
||||
|
||||
export const hasWidgets = (node) => {
|
||||
if (!node.widgets || !node.widgets?.[Symbol.iterator]) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
export const cleanupNode = (node) => {
|
||||
if (!hasWidgets(node)) {
|
||||
return
|
||||
}
|
||||
|
||||
for (const w of node.widgets) {
|
||||
if (w.canvas) {
|
||||
w.canvas.remove()
|
||||
}
|
||||
if (w.inputEl) {
|
||||
w.inputEl.remove()
|
||||
}
|
||||
// calls the widget remove callback
|
||||
w.onRemoved?.()
|
||||
}
|
||||
}
|
||||
|
||||
export function offsetDOMWidget(
|
||||
widget,
|
||||
ctx,
|
||||
node,
|
||||
widgetWidth,
|
||||
widgetY,
|
||||
height
|
||||
) {
|
||||
const margin = 10
|
||||
const elRect = ctx.canvas.getBoundingClientRect()
|
||||
const transform = new DOMMatrix()
|
||||
.scaleSelf(
|
||||
elRect.width / ctx.canvas.width,
|
||||
elRect.height / ctx.canvas.height
|
||||
)
|
||||
.multiplySelf(ctx.getTransform())
|
||||
.translateSelf(margin, margin + widgetY)
|
||||
|
||||
const scale = new DOMMatrix().scaleSelf(transform.a, transform.d)
|
||||
Object.assign(widget.inputEl.style, {
|
||||
transformOrigin: '0 0',
|
||||
transform: scale,
|
||||
left: `${transform.a + transform.e}px`,
|
||||
top: `${transform.d + transform.f}px`,
|
||||
width: `${widgetWidth - margin * 2}px`,
|
||||
// height: `${(widget.parent?.inputHeight || 32) - (margin * 2)}px`,
|
||||
height: `${(height || widget.parent?.inputHeight || 32) - margin * 2}px`,
|
||||
|
||||
position: 'absolute',
|
||||
background: !node.color ? '' : node.color,
|
||||
color: !node.color ? '' : 'white',
|
||||
zIndex: 5, //app.graph._nodes.indexOf(node),
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts the type and link type from a widget config object.
|
||||
* @param {*} config
|
||||
* @returns
|
||||
*/
|
||||
export function getWidgetType(config) {
|
||||
// Special handling for COMBO so we restrict links based on the entries
|
||||
let type = config?.[0]
|
||||
let linkType = type
|
||||
if (type instanceof Array) {
|
||||
type = 'COMBO'
|
||||
linkType = linkType.join(',')
|
||||
}
|
||||
return { type, linkType }
|
||||
}
|
||||
|
||||
export const dynamic_connection = (
|
||||
node,
|
||||
index,
|
||||
connected,
|
||||
connectionPrefix = 'input_',
|
||||
connectionType = 'PSDLAYER'
|
||||
) => {
|
||||
// remove all non connected inputs
|
||||
if (!connected && node.inputs.length > 1) {
|
||||
log(`Removing input ${index} (${node.inputs[index].name})`)
|
||||
if (node.widgets) {
|
||||
const w = node.widgets.find((w) => w.name === node.inputs[index].name)
|
||||
if (w) {
|
||||
w.onRemoved?.()
|
||||
node.widgets.length = node.widgets.length - 1
|
||||
}
|
||||
}
|
||||
node.removeInput(index)
|
||||
|
||||
// make inputs sequential again
|
||||
for (let i = 0; i < node.inputs.length; i++) {
|
||||
node.inputs[i].label = `${connectionPrefix}${i + 1}`
|
||||
}
|
||||
}
|
||||
|
||||
// add an extra input
|
||||
if (node.inputs[node.inputs.length - 1].link != undefined) {
|
||||
log(
|
||||
`Adding input ${node.inputs.length + 1} (${connectionPrefix}${
|
||||
node.inputs.length + 1
|
||||
})`
|
||||
)
|
||||
|
||||
node.addInput(
|
||||
`${connectionPrefix}${node.inputs.length + 1}`,
|
||||
connectionType
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a callback to the extra menu options of a given node type.
|
||||
* @param {*} nodeType
|
||||
* @param {*} cb
|
||||
*/
|
||||
export function addMenuHandler(nodeType, cb) {
|
||||
const getOpts = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.getExtraMenuOptions = function () {
|
||||
const r = getOpts.apply(this, arguments)
|
||||
cb.apply(this, arguments)
|
||||
return r
|
||||
}
|
||||
}
|
||||
|
||||
export function hideWidget(node, widget, suffix = '') {
|
||||
widget.origType = widget.type
|
||||
widget.hidden = true
|
||||
widget.origComputeSize = widget.computeSize
|
||||
widget.origSerializeValue = widget.serializeValue
|
||||
widget.computeSize = () => [0, -4] // -4 is due to the gap litegraph adds between widgets automatically
|
||||
widget.type = CONVERTED_TYPE + suffix
|
||||
widget.serializeValue = () => {
|
||||
// Prevent serializing the widget if we have no input linked
|
||||
const { link } = node.inputs.find((i) => i.widget?.name === widget.name)
|
||||
if (link == null) {
|
||||
return undefined
|
||||
}
|
||||
return widget.origSerializeValue
|
||||
? widget.origSerializeValue()
|
||||
: widget.value
|
||||
}
|
||||
|
||||
// Hide any linked widgets, e.g. seed+seedControl
|
||||
if (widget.linkedWidgets) {
|
||||
for (const w of widget.linkedWidgets) {
|
||||
hideWidget(node, w, ':' + widget.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function showWidget(widget) {
|
||||
widget.type = widget.origType
|
||||
widget.computeSize = widget.origComputeSize
|
||||
widget.serializeValue = widget.origSerializeValue
|
||||
|
||||
delete widget.origType
|
||||
delete widget.origComputeSize
|
||||
delete widget.origSerializeValue
|
||||
|
||||
// Hide any linked widgets, e.g. seed+seedControl
|
||||
if (widget.linkedWidgets) {
|
||||
for (const w of widget.linkedWidgets) {
|
||||
showWidget(w)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function convertToWidget(node, widget) {
|
||||
showWidget(widget)
|
||||
const sz = node.size
|
||||
node.removeInput(node.inputs.findIndex((i) => i.widget?.name === widget.name))
|
||||
|
||||
for (const widget of node.widgets) {
|
||||
widget.last_y -= LiteGraph.NODE_SLOT_HEIGHT
|
||||
}
|
||||
|
||||
// Restore original size but grow if needed
|
||||
node.setSize([Math.max(sz[0], node.size[0]), Math.max(sz[1], node.size[1])])
|
||||
}
|
||||
|
||||
export function convertToInput(node, widget, config) {
|
||||
hideWidget(node, widget)
|
||||
|
||||
const { linkType } = getWidgetType(config)
|
||||
|
||||
// Add input and store widget config for creating on primitive node
|
||||
const sz = node.size
|
||||
node.addInput(widget.name, linkType, {
|
||||
widget: { name: widget.name, config },
|
||||
})
|
||||
|
||||
for (const widget of node.widgets) {
|
||||
widget.last_y += LiteGraph.NODE_SLOT_HEIGHT
|
||||
}
|
||||
|
||||
// Restore original size but grow if needed
|
||||
node.setSize([Math.max(sz[0], node.size[0]), Math.max(sz[1], node.size[1])])
|
||||
}
|
||||
|
||||
export function hideWidgetForGood(node, widget, suffix = '') {
|
||||
widget.origType = widget.type
|
||||
widget.origComputeSize = widget.computeSize
|
||||
widget.origSerializeValue = widget.serializeValue
|
||||
widget.computeSize = () => [0, -4] // -4 is due to the gap litegraph adds between widgets automatically
|
||||
widget.type = CONVERTED_TYPE + suffix
|
||||
// widget.serializeValue = () => {
|
||||
// // Prevent serializing the widget if we have no input linked
|
||||
// const w = node.inputs?.find((i) => i.widget?.name === widget.name);
|
||||
// if (w?.link == null) {
|
||||
// return undefined;
|
||||
// }
|
||||
// return widget.origSerializeValue ? widget.origSerializeValue() : widget.value;
|
||||
// };
|
||||
|
||||
// Hide any linked widgets, e.g. seed+seedControl
|
||||
if (widget.linkedWidgets) {
|
||||
for (const w of widget.linkedWidgets) {
|
||||
hideWidgetForGood(node, w, ':' + widget.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function fixWidgets(node) {
|
||||
if (node.inputs) {
|
||||
for (const input of node.inputs) {
|
||||
log(input)
|
||||
if (input.widget || node.widgets) {
|
||||
// if (newTypes.includes(input.type)) {
|
||||
const matching_widget = node.widgets.find((w) => w.name === input.name)
|
||||
if (matching_widget) {
|
||||
// if (matching_widget.hidden) {
|
||||
// log(`Already hidden skipping ${matching_widget.name}`)
|
||||
// continue
|
||||
// }
|
||||
const w = node.widgets.find((w) => w.name === matching_widget.name)
|
||||
if (w && w.type != CONVERTED_TYPE) {
|
||||
log(w)
|
||||
log(`hidding ${w.name}(${w.type}) from ${node.type}`)
|
||||
log(node)
|
||||
hideWidget(node, w)
|
||||
} else {
|
||||
log(`converting to widget ${w}`)
|
||||
|
||||
convertToWidget(node, input)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export function inner_value_change(widget, value, event = undefined) {
|
||||
if (widget.type == 'number' || widget.type == 'BBOX') {
|
||||
value = Number(value)
|
||||
} else if (widget.type == 'BOOL') {
|
||||
value = Boolean(value)
|
||||
}
|
||||
widget.value = value
|
||||
if (
|
||||
widget.options &&
|
||||
widget.options.property &&
|
||||
node.properties[widget.options.property] !== undefined
|
||||
) {
|
||||
node.setProperty(widget.options.property, value)
|
||||
}
|
||||
if (widget.callback) {
|
||||
widget.callback(widget.value, app.canvas, node, pos, event)
|
||||
}
|
||||
}
|
||||
|
||||
//- COLOR UTILS
|
||||
export function isColorBright(rgb, threshold = 240) {
|
||||
const brightess = getBrightness(rgb)
|
||||
return brightess > threshold
|
||||
}
|
||||
|
||||
function getBrightness(rgbObj) {
|
||||
return Math.round(
|
||||
(parseInt(rgbObj[0]) * 299 +
|
||||
parseInt(rgbObj[1]) * 587 +
|
||||
parseInt(rgbObj[2]) * 114) /
|
||||
1000
|
||||
)
|
||||
}
|
||||
|
||||
//- HTML / CSS UTILS
|
||||
export function defineClass(className, classStyles) {
|
||||
const styleSheets = document.styleSheets
|
||||
|
||||
// Helper function to check if the class exists in a style sheet
|
||||
function classExistsInStyleSheet(styleSheet) {
|
||||
const rules = styleSheet.rules || styleSheet.cssRules
|
||||
for (const rule of rules) {
|
||||
if (rule.selectorText === `.${className}`) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Check if the class is already defined in any of the style sheets
|
||||
let classExists = false
|
||||
for (const styleSheet of styleSheets) {
|
||||
if (classExistsInStyleSheet(styleSheet)) {
|
||||
classExists = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// If the class doesn't exist, add the new class definition to the first style sheet
|
||||
if (!classExists) {
|
||||
if (styleSheets[0].insertRule) {
|
||||
styleSheets[0].insertRule(`.${className} { ${classStyles} }`, 0)
|
||||
} else if (styleSheets[0].addRule) {
|
||||
styleSheets[0].addRule(`.${className}`, classStyles, 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,908 @@
|
||||
/**
|
||||
* File: DZ_widgets.js
|
||||
* Project: comfy_DZ
|
||||
* Author: Mel Massadian
|
||||
*
|
||||
* Copyright (c) 2023 Mel Massadian
|
||||
*
|
||||
*/
|
||||
|
||||
import { app } from '../../scripts/app.js'
|
||||
import { api } from '../../scripts/api.js'
|
||||
|
||||
import parseCss from './dz_parse-css.js'
|
||||
import * as shared from './dz_comfy_shared.js'
|
||||
import { log } from './dz_comfy_shared.js'
|
||||
|
||||
const newTypes = [, /*'BOOL'*/ 'COLOR', 'BBOX']
|
||||
|
||||
const withFont = (ctx, font, cb) => {
|
||||
const oldFont = ctx.font
|
||||
ctx.font = font
|
||||
cb()
|
||||
ctx.font = oldFont
|
||||
}
|
||||
|
||||
const calculateTextDimensions = (ctx, value, width, fontSize = 16) => {
|
||||
const words = value.split(' ')
|
||||
const lines = []
|
||||
let currentLine = ''
|
||||
for (const word of words) {
|
||||
const testLine = currentLine.length === 0 ? word : `${currentLine} ${word}`
|
||||
const testWidth = ctx.measureText(testLine).width
|
||||
if (testWidth > width) {
|
||||
lines.push(currentLine)
|
||||
currentLine = word
|
||||
} else {
|
||||
currentLine = testLine
|
||||
}
|
||||
}
|
||||
if (lines.length === 0) lines.push(value)
|
||||
const textHeight = (lines.length + 1) * fontSize
|
||||
const maxLineWidth = lines.reduce(
|
||||
(maxWidth, line) => Math.max(maxWidth, ctx.measureText(line).width),
|
||||
0
|
||||
)
|
||||
return { textHeight, maxLineWidth }
|
||||
}
|
||||
|
||||
export const DZWidgets = {
|
||||
BBOX: (key, val) => {
|
||||
/** @type {import("./types/litegraph").IWidget} */
|
||||
const widget = {
|
||||
name: key,
|
||||
type: 'BBOX',
|
||||
// options: val,
|
||||
y: 0,
|
||||
value: val?.default || [0, 0, 0, 0],
|
||||
options: {},
|
||||
|
||||
draw: function (ctx, node, widget_width, widgetY, height) {
|
||||
const hide = this.type !== 'BBOX' && app.canvas.ds.scale > 0.5
|
||||
|
||||
const show_text = true
|
||||
const outline_color = LiteGraph.WIDGET_OUTLINE_COLOR
|
||||
const background_color = LiteGraph.WIDGET_BGCOLOR
|
||||
const text_color = LiteGraph.WIDGET_TEXT_COLOR
|
||||
const secondary_text_color = LiteGraph.WIDGET_SECONDARY_TEXT_COLOR
|
||||
const H = LiteGraph.NODE_WIDGET_HEIGHT
|
||||
|
||||
let margin = 15
|
||||
let numWidgets = 4 // Number of stacked widgets
|
||||
|
||||
if (hide) return
|
||||
|
||||
for (let i = 0; i < numWidgets; i++) {
|
||||
let currentY = widgetY + i * (H + margin) // Adjust Y position for each widget
|
||||
|
||||
ctx.textAlign = 'left'
|
||||
ctx.strokeStyle = outline_color
|
||||
ctx.fillStyle = background_color
|
||||
ctx.beginPath()
|
||||
if (show_text)
|
||||
ctx.roundRect(margin, currentY, widget_width - margin * 2, H, [
|
||||
H * 0.5,
|
||||
])
|
||||
else ctx.rect(margin, currentY, widget_width - margin * 2, H)
|
||||
ctx.fill()
|
||||
if (show_text) {
|
||||
if (!this.disabled) ctx.stroke()
|
||||
ctx.fillStyle = text_color
|
||||
if (!this.disabled) {
|
||||
ctx.beginPath()
|
||||
ctx.moveTo(margin + 16, currentY + 5)
|
||||
ctx.lineTo(margin + 6, currentY + H * 0.5)
|
||||
ctx.lineTo(margin + 16, currentY + H - 5)
|
||||
ctx.fill()
|
||||
ctx.beginPath()
|
||||
ctx.moveTo(widget_width - margin - 16, currentY + 5)
|
||||
ctx.lineTo(widget_width - margin - 6, currentY + H * 0.5)
|
||||
ctx.lineTo(widget_width - margin - 16, currentY + H - 5)
|
||||
ctx.fill()
|
||||
}
|
||||
ctx.fillStyle = secondary_text_color
|
||||
ctx.fillText(
|
||||
this.label || this.name,
|
||||
margin * 2 + 5,
|
||||
currentY + H * 0.7
|
||||
)
|
||||
ctx.fillStyle = text_color
|
||||
ctx.textAlign = 'right'
|
||||
|
||||
ctx.fillText(
|
||||
Number(this.value).toFixed(
|
||||
this.options?.precision !== undefined
|
||||
? this.options.precision
|
||||
: 3
|
||||
),
|
||||
widget_width - margin * 2 - 20,
|
||||
currentY + H * 0.7
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
mouse: function (event, pos, node) {
|
||||
let old_value = this.value
|
||||
let x = pos[0] - node.pos[0]
|
||||
let y = pos[1] - node.pos[1]
|
||||
let width = node.size[0]
|
||||
let H = LiteGraph.NODE_WIDGET_HEIGHT
|
||||
let margin = 5
|
||||
let numWidgets = 4 // Number of stacked widgets
|
||||
|
||||
for (let i = 0; i < numWidgets; i++) {
|
||||
let currentY = y + i * (H + margin) // Adjust Y position for each widget
|
||||
|
||||
if (
|
||||
event.type == LiteGraph.pointerevents_method + 'move' &&
|
||||
this.type == 'BBOX'
|
||||
) {
|
||||
if (event.deltaX)
|
||||
this.value += event.deltaX * 0.1 * (this.options?.step || 1)
|
||||
if (this.options.min != null && this.value < this.options.min) {
|
||||
this.value = this.options.min
|
||||
}
|
||||
if (this.options.max != null && this.value > this.options.max) {
|
||||
this.value = this.options.max
|
||||
}
|
||||
} else if (event.type == LiteGraph.pointerevents_method + 'down') {
|
||||
let values = this.options?.values
|
||||
if (values && values.constructor === Function) {
|
||||
values = this.options.values(w, node)
|
||||
}
|
||||
let values_list = null
|
||||
|
||||
let delta = x < 40 ? -1 : x > widget_width - 40 ? 1 : 0
|
||||
if (this.type == 'BBOX') {
|
||||
this.value += delta * 0.1 * (this.options.step || 1)
|
||||
if (this.options.min != null && this.value < this.options.min) {
|
||||
this.value = this.options.min
|
||||
}
|
||||
if (this.options.max != null && this.value > this.options.max) {
|
||||
this.value = this.options.max
|
||||
}
|
||||
} else if (delta) {
|
||||
//clicked in arrow, used for combos
|
||||
let index = -1
|
||||
this.last_mouseclick = 0 //avoids dobl click event
|
||||
if (values.constructor === Object)
|
||||
index = values_list.indexOf(String(this.value)) + delta
|
||||
else index = values_list.indexOf(this.value) + delta
|
||||
if (index >= values_list.length) {
|
||||
index = values_list.length - 1
|
||||
}
|
||||
if (index < 0) {
|
||||
index = 0
|
||||
}
|
||||
if (values.constructor === Array) this.value = values[index]
|
||||
else this.value = index
|
||||
}
|
||||
} //end mousedown
|
||||
else if (
|
||||
event.type == LiteGraph.pointerevents_method + 'up' &&
|
||||
this.type == 'BBOX'
|
||||
) {
|
||||
let delta = x < 40 ? -1 : x > widget_width - 40 ? 1 : 0
|
||||
if (event.click_time < 200 && delta == 0) {
|
||||
this.prompt(
|
||||
'Value',
|
||||
this.value,
|
||||
function (v) {
|
||||
// check if v is a valid equation or a number
|
||||
if (/^[0-9+\-*/()\s]+|\d+\.\d+$/.test(v)) {
|
||||
try {
|
||||
//solve the equation if possible
|
||||
v = eval(v)
|
||||
} catch (e) {}
|
||||
}
|
||||
this.value = Number(v)
|
||||
shared.inner_value_change(this, this.value, event)
|
||||
}.bind(w),
|
||||
event
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (old_value != this.value)
|
||||
setTimeout(
|
||||
function () {
|
||||
shared.inner_value_change(this, this.value, event)
|
||||
}.bind(this),
|
||||
20
|
||||
)
|
||||
|
||||
app.canvas.setDirty(true)
|
||||
}
|
||||
},
|
||||
computeSize: function (width) {
|
||||
return [width, LiteGraph.NODE_WIDGET_HEIGHT * 4]
|
||||
},
|
||||
// onDrawBackground: function (ctx) {
|
||||
// if (!this.flags.collapsed) return;
|
||||
// this.inputEl.style.display = "block";
|
||||
// this.inputEl.style.top = this.graphcanvas.offsetTop + this.pos[1] + "px";
|
||||
// this.inputEl.style.left = this.graphcanvas.offsetLeft + this.pos[0] + "px";
|
||||
// },
|
||||
// onInputChange: function (e) {
|
||||
// const property = e.target.dataset.property;
|
||||
// const bbox = this.getInputData(0);
|
||||
// if (!bbox) return;
|
||||
// bbox[property] = parseFloat(e.target.value);
|
||||
// this.setOutputData(0, bbox);
|
||||
// }
|
||||
}
|
||||
|
||||
widget.desc = 'Represents a Bounding Box with x, y, width, and height.'
|
||||
return widget
|
||||
},
|
||||
|
||||
COLOR: (key, val, compute = false) => {
|
||||
/** @type {import("/types/litegraph").IWidget} */
|
||||
const widget = {}
|
||||
widget.y = 0
|
||||
widget.name = key
|
||||
widget.type = 'COLOR'
|
||||
widget.options = { default: '#ff0000' }
|
||||
widget.value = val || '#ff0000'
|
||||
widget.draw = function (ctx, node, widgetWidth, widgetY, height) {
|
||||
const hide = this.type !== 'COLOR' && app.canvas.ds.scale > 0.5
|
||||
if (hide) {
|
||||
return
|
||||
}
|
||||
const border = 3
|
||||
ctx.fillStyle = '#000'
|
||||
ctx.fillRect(0, widgetY, widgetWidth, height)
|
||||
ctx.fillStyle = this.value
|
||||
ctx.fillRect(
|
||||
border,
|
||||
widgetY + border,
|
||||
widgetWidth - border * 2,
|
||||
height - border * 2
|
||||
)
|
||||
const color = parseCss(this.value.default || this.value)
|
||||
if (!color) {
|
||||
return
|
||||
}
|
||||
ctx.fillStyle = shared.isColorBright(color.values, 125) ? '#000' : '#fff'
|
||||
|
||||
ctx.font = '14px Arial'
|
||||
ctx.textAlign = 'center'
|
||||
ctx.fillText(this.name, widgetWidth * 0.5, widgetY + 14)
|
||||
}
|
||||
widget.mouse = function (e, pos, node) {
|
||||
if (e.type === 'pointerdown') {
|
||||
const widgets = node.widgets.filter((w) => w.type === 'COLOR')
|
||||
|
||||
for (const w of widgets) {
|
||||
// color picker
|
||||
const rect = [w.last_y, w.last_y + 32]
|
||||
if (pos[1] > rect[0] && pos[1] < rect[1]) {
|
||||
const picker = document.createElement('input')
|
||||
picker.type = 'color'
|
||||
picker.value = this.value
|
||||
|
||||
picker.style.position = 'absolute'
|
||||
picker.style.left = '999999px' //(window.innerWidth / 2) + "px";
|
||||
picker.style.top = '999999px' //(window.innerHeight / 2) + "px";
|
||||
|
||||
document.body.appendChild(picker)
|
||||
|
||||
picker.addEventListener('change', () => {
|
||||
this.value = picker.value
|
||||
node.graph._version++
|
||||
node.setDirtyCanvas(true, true)
|
||||
picker.remove()
|
||||
})
|
||||
|
||||
picker.click()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
widget.computeSize = function (width) {
|
||||
return [width, 32]
|
||||
}
|
||||
|
||||
return widget
|
||||
},
|
||||
|
||||
// DEBUG_IMG: (name, val) => {
|
||||
// const w = {
|
||||
// name,
|
||||
// type: 'image',
|
||||
// value: val,
|
||||
// draw: function (ctx, node, widgetWidth, widgetY, height) {
|
||||
// const [cw, ch] = this.computeSize(widgetWidth)
|
||||
// shared.offsetDOMWidget(this, ctx, node, widgetWidth, widgetY, ch)
|
||||
// },
|
||||
// computeSize: function (width) {
|
||||
// const ratio = this.inputRatio || 1
|
||||
// if (width) {
|
||||
// return [width, width / ratio + 4]
|
||||
// }
|
||||
// return [128, 128]
|
||||
// },
|
||||
// onRemoved: function () {
|
||||
// if (this.inputEl) {
|
||||
// this.inputEl.remove()
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
//
|
||||
// w.inputEl = document.createElement('img')
|
||||
// w.inputEl.src = w.value
|
||||
// w.inputEl.onload = function () {
|
||||
// w.inputRatio = w.inputEl.naturalWidth / w.inputEl.naturalHeight
|
||||
// }
|
||||
// document.body.appendChild(w.inputEl)
|
||||
// return w
|
||||
// },
|
||||
// DEBUG_STRING: (name, val) => {
|
||||
// const fontSize = 16
|
||||
// const w = {
|
||||
// name,
|
||||
// type: 'debug_text',
|
||||
//
|
||||
// draw: function (ctx, node, widgetWidth, widgetY, height) {
|
||||
// // const [cw, ch] = this.computeSize(widgetWidth)
|
||||
// shared.offsetDOMWidget(this, ctx, node, widgetWidth, widgetY, height)
|
||||
// },
|
||||
// computeSize(width) {
|
||||
// if (!this.value) {
|
||||
// return [32, 32]
|
||||
// }
|
||||
// if (!width) {
|
||||
// console.debug(`No width ${this.parent.size}`)
|
||||
// }
|
||||
// let dimensions
|
||||
// withFont(app.ctx, `${fontSize}px monospace`, () => {
|
||||
// dimensions = calculateTextDimensions(app.ctx, this.value, width)
|
||||
// })
|
||||
// const widgetWidth = Math.max(
|
||||
// width || this.width || 32,
|
||||
// dimensions.maxLineWidth
|
||||
// )
|
||||
// const widgetHeight = dimensions.textHeight * 1.5
|
||||
// return [widgetWidth, widgetHeight]
|
||||
// },
|
||||
// onRemoved: function () {
|
||||
// if (this.inputEl) {
|
||||
// this.inputEl.remove()
|
||||
// }
|
||||
// },
|
||||
// get value() {
|
||||
// return this.inputEl.innerHTML
|
||||
// },
|
||||
// set value(val) {
|
||||
// this.inputEl.innerHTML = val
|
||||
// this.parent?.setSize?.(this.parent?.computeSize())
|
||||
// },
|
||||
// }
|
||||
//
|
||||
// w.inputEl = document.createElement('p')
|
||||
// w.inputEl.style = `
|
||||
// text-align: center;
|
||||
// font-size: ${fontSize}px;
|
||||
// color: var(--input-text);
|
||||
// line-height: 0;
|
||||
// font-family: monospace;
|
||||
// `
|
||||
// w.value = val
|
||||
// document.body.appendChild(w.inputEl)
|
||||
//
|
||||
// return w
|
||||
// },
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {import("./types/comfy").ComfyExtension} extension
|
||||
*/
|
||||
const DZ_widgets = {
|
||||
name: 'DZ.widgets',
|
||||
|
||||
init: async () => {
|
||||
log('Registering DZ.widgets')
|
||||
// try {
|
||||
// const res = await api.fetchApi('/DZ/debug')
|
||||
// const msg = await res.json()
|
||||
// if (!window.DZ) {
|
||||
// window.DZ = {}
|
||||
// }
|
||||
// window.DZ.DEBUG = msg.enabled
|
||||
// } catch (e) {
|
||||
// console.error('Error:', error)
|
||||
// }
|
||||
},
|
||||
|
||||
setup: () => {
|
||||
// app.ui.settings.addSetting({
|
||||
// id: 'DZ.Debug.enabled',
|
||||
// name: '[DZ] Enable Debug (py and js)',
|
||||
// type: 'boolean',
|
||||
// defaultValue: false,
|
||||
//
|
||||
// tooltip:
|
||||
// 'This will enable debug messages in the console and in the python console respectively',
|
||||
// attrs: {
|
||||
// style: {
|
||||
// fontFamily: 'monospace',
|
||||
// },
|
||||
// },
|
||||
// async onChange(value) {
|
||||
// if (value) {
|
||||
// console.log('Enabled DEBUG mode')
|
||||
// }
|
||||
// if (!window.DZ) {
|
||||
// window.DZ = {}
|
||||
// }
|
||||
// window.DZ.DEBUG = value
|
||||
// await api
|
||||
// .fetchApi('/DZ/debug', {
|
||||
// method: 'POST',
|
||||
// body: JSON.stringify({
|
||||
// enabled: value,
|
||||
// }),
|
||||
// })
|
||||
// .then((response) => {})
|
||||
// .catch((error) => {
|
||||
// console.error('Error:', error)
|
||||
// })
|
||||
// },
|
||||
// })
|
||||
},
|
||||
|
||||
getCustomWidgets: function () {
|
||||
return {
|
||||
BOOL: (node, inputName, inputData, app) => {
|
||||
console.debug('Registering bool')
|
||||
|
||||
return {
|
||||
widget: node.addCustomWidget(
|
||||
DZWidgets.BOOL(inputName, inputData[1]?.default || false)
|
||||
),
|
||||
minWidth: 150,
|
||||
minHeight: 30,
|
||||
}
|
||||
},
|
||||
|
||||
COLOR: (node, inputName, inputData, app) => {
|
||||
console.debug('Registering color')
|
||||
return {
|
||||
widget: node.addCustomWidget(
|
||||
DZWidgets.COLOR(inputName, inputData[1]?.default || '#ff0000')
|
||||
),
|
||||
minWidth: 150,
|
||||
minHeight: 30,
|
||||
}
|
||||
},
|
||||
// BBOX: (node, inputName, inputData, app) => {
|
||||
// console.debug("Registering bbox")
|
||||
// return {
|
||||
// widget: node.addCustomWidget(DZWidgets.BBOX(inputName, inputData[1]?.default || [0, 0, 0, 0])),
|
||||
// minWidth: 150,
|
||||
// minHeight: 30,
|
||||
// }
|
||||
|
||||
// }
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @param {import("./types/comfy").NodeType} nodeType
|
||||
* @param {import("./types/comfy").NodeDef} nodeData
|
||||
* @param {import("./types/comfy").App} app
|
||||
*/
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
// const rinputs = nodeData.input?.required
|
||||
|
||||
let has_custom = false
|
||||
if (nodeData.input && nodeData.input.required) {
|
||||
for (const i of Object.keys(nodeData.input.required)) {
|
||||
const input_type = nodeData.input.required[i][0]
|
||||
|
||||
if (newTypes.includes(input_type)) {
|
||||
has_custom = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if (has_custom) {
|
||||
//- Add widgets on node creation
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
this.serialize_widgets = true
|
||||
this.setSize?.(this.computeSize())
|
||||
|
||||
this.onRemoved = function () {
|
||||
// When removing this node we need to remove the input from the DOM
|
||||
shared.cleanupNode(this)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
//- Extra menus
|
||||
const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.getExtraMenuOptions = function (_, options) {
|
||||
const r = origGetExtraMenuOptions
|
||||
? origGetExtraMenuOptions.apply(this, arguments)
|
||||
: undefined
|
||||
if (this.widgets) {
|
||||
let toInput = []
|
||||
let toWidget = []
|
||||
for (const w of this.widgets) {
|
||||
if (w.type === shared.CONVERTED_TYPE) {
|
||||
//- This is already handled by widgetinputs.js
|
||||
// toWidget.push({
|
||||
// content: `Convert ${w.name} to widget`,
|
||||
// callback: () => shared.convertToWidget(this, w),
|
||||
// });
|
||||
} else if (newTypes.includes(w.type)) {
|
||||
const config = nodeData?.input?.required[w.name] ||
|
||||
nodeData?.input?.optional?.[w.name] || [w.type, w.options || {}]
|
||||
|
||||
toInput.push({
|
||||
content: `Convert ${w.name} to input`,
|
||||
callback: () => shared.convertToInput(this, w, config),
|
||||
})
|
||||
}
|
||||
}
|
||||
if (toInput.length) {
|
||||
options.push(...toInput, null)
|
||||
}
|
||||
|
||||
if (toWidget.length) {
|
||||
options.push(...toWidget, null)
|
||||
}
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
}
|
||||
|
||||
//- Extending Python Nodes
|
||||
switch (nodeData.name) {
|
||||
case 'Psd Save (DZ)': {
|
||||
const onConnectionsChange = nodeType.prototype.onConnectionsChange
|
||||
nodeType.prototype.onConnectionsChange = function (
|
||||
type,
|
||||
index,
|
||||
connected,
|
||||
link_info
|
||||
) {
|
||||
const r = onConnectionsChange
|
||||
? onConnectionsChange.apply(this, arguments)
|
||||
: undefined
|
||||
shared.dynamic_connection(this, index, connected)
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
//TODO: remove this non sense
|
||||
case 'Get Batch From History (DZ)': {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
const internal_count = this.widgets.find(
|
||||
(w) => w.name === 'internal_count'
|
||||
)
|
||||
shared.hideWidgetForGood(this, internal_count)
|
||||
internal_count.afterQueued = function () {
|
||||
this.value++
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
const onExecuted = nodeType.prototype.onExecuted
|
||||
nodeType.prototype.onExecuted = function (message) {
|
||||
const r = onExecuted ? onExecuted.apply(this, message) : undefined
|
||||
return r
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Save Gif (DZ)':
|
||||
case 'Save Animated Image (DZ)': {
|
||||
const onExecuted = nodeType.prototype.onExecuted
|
||||
nodeType.prototype.onExecuted = function (message) {
|
||||
const prefix = 'anything_'
|
||||
const r = onExecuted ? onExecuted.apply(this, message) : undefined
|
||||
|
||||
if (this.widgets) {
|
||||
const pos = this.widgets.findIndex((w) => w.name === `${prefix}_0`)
|
||||
if (pos !== -1) {
|
||||
for (let i = pos; i < this.widgets.length; i++) {
|
||||
this.widgets[i].onRemoved?.()
|
||||
}
|
||||
this.widgets.length = pos
|
||||
}
|
||||
|
||||
let imgURLs = []
|
||||
if (message) {
|
||||
if (message.gif) {
|
||||
imgURLs = imgURLs.concat(
|
||||
message.gif.map((params) => {
|
||||
return api.apiURL(
|
||||
'/view?' + new URLSearchParams(params).toString()
|
||||
)
|
||||
})
|
||||
)
|
||||
}
|
||||
if (message.apng) {
|
||||
imgURLs = imgURLs.concat(
|
||||
message.apng.map((params) => {
|
||||
return api.apiURL(
|
||||
'/view?' + new URLSearchParams(params).toString()
|
||||
)
|
||||
})
|
||||
)
|
||||
}
|
||||
let i = 0
|
||||
// for (const img of imgURLs) {
|
||||
// const w = this.addCustomWidget(
|
||||
// DZWidgets.DEBUG_IMG(`${prefix}_${i}`, img)
|
||||
// )
|
||||
// w.parent = this
|
||||
// i++
|
||||
// }
|
||||
}
|
||||
const onRemoved = this.onRemoved
|
||||
this.onRemoved = () => {
|
||||
shared.cleanupNode(this)
|
||||
return onRemoved?.()
|
||||
}
|
||||
}
|
||||
this.setSize?.(this.computeSize())
|
||||
return r
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Animation Builder (DZ)': {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
|
||||
this.changeMode(LiteGraph.ALWAYS)
|
||||
|
||||
const raw_iteration = this.widgets.find(
|
||||
(w) => w.name === 'raw_iteration'
|
||||
)
|
||||
const raw_loop = this.widgets.find((w) => w.name === 'raw_loop')
|
||||
|
||||
const total_frames = this.widgets.find(
|
||||
(w) => w.name === 'total_frames'
|
||||
)
|
||||
const loop_count = this.widgets.find((w) => w.name === 'loop_count')
|
||||
|
||||
shared.hideWidgetForGood(this, raw_iteration)
|
||||
shared.hideWidgetForGood(this, raw_loop)
|
||||
|
||||
raw_iteration._value = 0
|
||||
|
||||
// const value_preview = this.addCustomWidget(
|
||||
// DZWidgets['DEBUG_STRING']('value_preview', 'Idle')
|
||||
// )
|
||||
// value_preview.parent = this
|
||||
|
||||
// const loop_preview = this.addCustomWidget(
|
||||
// DZWidgets['DEBUG_STRING']('loop_preview', 'Iteration: Idle')
|
||||
// )
|
||||
// loop_preview.parent = this
|
||||
|
||||
const onReset = () => {
|
||||
raw_iteration.value = 0
|
||||
raw_loop.value = 0
|
||||
|
||||
value_preview.value = 'Idle'
|
||||
loop_preview.value = 'Iteration: Idle'
|
||||
|
||||
app.canvas.setDirty(true)
|
||||
}
|
||||
|
||||
const reset_button = this.addWidget(
|
||||
'button',
|
||||
`Reset`,
|
||||
'reset',
|
||||
onReset
|
||||
)
|
||||
|
||||
const run_button = this.addWidget('button', `Queue`, 'queue', () => {
|
||||
onReset() // this could maybe be a setting or checkbox
|
||||
app.queuePrompt(0, total_frames.value * loop_count.value)
|
||||
window.DZ?.notify?.(
|
||||
`Started a queue of ${total_frames.value} frames (for ${
|
||||
loop_count.value
|
||||
} loop, so ${total_frames.value * loop_count.value})`,
|
||||
5000
|
||||
)
|
||||
})
|
||||
|
||||
this.onRemoved = () => {
|
||||
shared.cleanupNode(this)
|
||||
app.canvas.setDirty(true)
|
||||
}
|
||||
|
||||
raw_iteration.afterQueued = function () {
|
||||
this.value++
|
||||
raw_loop.value = Math.floor(this.value / total_frames.value)
|
||||
|
||||
value_preview.value = `frame: ${
|
||||
raw_iteration.value % total_frames.value
|
||||
} / ${total_frames.value - 1}`
|
||||
|
||||
if (raw_loop.value + 1 > loop_count.value) {
|
||||
loop_preview.value = 'Done 😎!'
|
||||
} else {
|
||||
loop_preview.value = `current loop: ${raw_loop.value + 1}/${
|
||||
loop_count.value
|
||||
}`
|
||||
}
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Text Encore Frames (DZ)': {
|
||||
const onConnectionsChange = nodeType.prototype.onConnectionsChange
|
||||
nodeType.prototype.onConnectionsChange = function (
|
||||
type,
|
||||
index,
|
||||
connected,
|
||||
link_info
|
||||
) {
|
||||
const r = onConnectionsChange
|
||||
? onConnectionsChange.apply(this, arguments)
|
||||
: undefined
|
||||
|
||||
shared.dynamic_connection(this, index, connected)
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
case 'Interpolate Clip Sequential (DZ)': {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
const addReplacement = () => {
|
||||
const input = this.addInput(
|
||||
`replacement_${this.widgets.length}`,
|
||||
'STRING',
|
||||
''
|
||||
)
|
||||
console.log(input)
|
||||
this.addWidget('STRING', `replacement_${this.widgets.length}`, '')
|
||||
}
|
||||
//- add
|
||||
this.addWidget('button', '+', 'add', function (value, widget, node) {
|
||||
console.log('Button clicked', value, widget, node)
|
||||
addReplacement()
|
||||
})
|
||||
//- remove
|
||||
this.addWidget(
|
||||
'button',
|
||||
'-',
|
||||
'remove',
|
||||
function (value, widget, node) {
|
||||
console.log(`Button clicked: ${value}`, widget, node)
|
||||
}
|
||||
)
|
||||
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
case 'Styles Loader (DZ)': {
|
||||
const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.getExtraMenuOptions = function (_, options) {
|
||||
const r = origGetExtraMenuOptions
|
||||
? origGetExtraMenuOptions.apply(this, arguments)
|
||||
: undefined
|
||||
|
||||
const getStyle = async (node) => {
|
||||
try {
|
||||
const getStyles = await api.fetchApi('/DZ/actions', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
name: 'getStyles',
|
||||
args:
|
||||
node.widgets && node.widgets[0].value
|
||||
? node.widgets[0].value
|
||||
: '',
|
||||
}),
|
||||
})
|
||||
|
||||
const output = await getStyles.json()
|
||||
return output?.result
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
const extracters = [
|
||||
{
|
||||
content: 'Extract Positive to Text node',
|
||||
callback: async () => {
|
||||
const style = await getStyle(this)
|
||||
if (style && style.length >= 1) {
|
||||
if (style[0]) {
|
||||
window.DZ?.notify?.(
|
||||
`Extracted positive from ${this.widgets[0].value}`
|
||||
)
|
||||
const tn = LiteGraph.createNode('Text box')
|
||||
app.graph.add(tn)
|
||||
tn.title = `${this.widgets[0].value} (Positive)`
|
||||
tn.widgets[0].value = style[0]
|
||||
} else {
|
||||
window.DZ?.notify?.(
|
||||
`No positive to extract for ${this.widgets[0].value}`
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
content: 'Extract Negative to Text node',
|
||||
callback: async () => {
|
||||
const style = await getStyle(this)
|
||||
if (style && style.length >= 2) {
|
||||
if (style[1]) {
|
||||
window.DZ?.notify?.(
|
||||
`Extracted negative from ${this.widgets[0].value}`
|
||||
)
|
||||
const tn = LiteGraph.createNode('Text box')
|
||||
app.graph.add(tn)
|
||||
tn.title = `${this.widgets[0].value} (Negative)`
|
||||
tn.widgets[0].value = style[1]
|
||||
} else {
|
||||
window.DZ.notify(
|
||||
`No negative to extract for ${this.widgets[0].value}`
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
]
|
||||
options.push(...extracters)
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Save Tensors (DZ)': {
|
||||
const onDrawBackground = nodeType.prototype.onDrawBackground
|
||||
nodeType.prototype.onDrawBackground = function (ctx, canvas) {
|
||||
const r = onDrawBackground
|
||||
? onDrawBackground.apply(this, arguments)
|
||||
: undefined
|
||||
// // draw a circle on the top right of the node, with text inside
|
||||
// ctx.fillStyle = "#fff";
|
||||
// ctx.beginPath();
|
||||
// ctx.arc(this.size[0] - this.node_width * 0.5, this.size[1] - this.node_height * 0.5, this.node_width * 0.5, 0, Math.PI * 2);
|
||||
// ctx.fill();
|
||||
|
||||
// ctx.fillStyle = "#000";
|
||||
// ctx.textAlign = "center";
|
||||
// ctx.font = "bold 12px Arial";
|
||||
// ctx.fillText("Save Tensors", this.size[0] - this.node_width * 0.5, this.size[1] - this.node_height * 0.5);
|
||||
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
default: {
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
app.registerExtension(DZ_widgets)
|
||||
@@ -0,0 +1,42 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
|
||||
app.registerExtension({
|
||||
name: "ColorOverlay",
|
||||
async nodeCreated(node) {
|
||||
// 判断是否为layer节点
|
||||
if(!node.comfyClass.startsWith("Layer")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerStyle:")) {
|
||||
node.color = "rgba(20, 95, 121, 0.7)";
|
||||
// node.bgcolor = "rgba(50, 241, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerColor:")) {
|
||||
node.color = "rgba(27, 89, 123, 0.7)";
|
||||
// node.bgcolor = "rgba(43, 209, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerMask:")) {
|
||||
node.color = "rgba(27, 80, 119, 0.7)";
|
||||
// node.bgcolor = "rgba(4, 174, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerUtility:")) {
|
||||
node.color = "rgba(38, 73, 116, 0.7)";
|
||||
// node.bgcolor = "rgba(23, 113, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerFilter:")) {
|
||||
node.color = "rgba(34, 67, 111, 0.7)";
|
||||
// node.bgcolor = "rgba(19, 85, 255, 0.15)";
|
||||
}
|
||||
|
||||
|
||||
// if(node.comfyClass === "LayerStyle: ColorOverlay"){
|
||||
// node.setSize([600, 120]);
|
||||
// }
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,362 @@
|
||||
|
||||
// #region patterns
|
||||
const float = '-?\\d*(?:\\.\\d+)';
|
||||
export const number = `(${float}?)`;
|
||||
export const percentage = `(${float}?%)`;
|
||||
export const numberOrPercentage = `(${float}?%?)`;
|
||||
const clamp = (num, min, max) => Math.min(Math.max(min, num), max);
|
||||
|
||||
const hexCharacters = 'a-f\\d';
|
||||
const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
|
||||
const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
|
||||
const nonHexChars = new RegExp(`[^#${hexCharacters}]`, 'gi');
|
||||
const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, 'i');
|
||||
|
||||
|
||||
export const hex_pattern = new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/, "i");
|
||||
|
||||
export const hsl3_pattern = new RegExp(`^
|
||||
hsla?\\(
|
||||
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
|
||||
\\s*${percentage}\\s*,
|
||||
\\s*${percentage}\\s*
|
||||
(?:,\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''))
|
||||
|
||||
export const hsl4_pattern = new RegExp(`^
|
||||
hsla?\\(
|
||||
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
|
||||
\\s+${percentage}
|
||||
\\s+${percentage}
|
||||
\\s*(?:\\s*\\/\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''))
|
||||
|
||||
export const rgb3_pattern = new RegExp(`^
|
||||
rgba?\\(
|
||||
\\s*${number}\\s*,
|
||||
\\s*${number}\\s*,
|
||||
\\s*${number}\\s*
|
||||
(?:,\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''))
|
||||
|
||||
export const rgb4_pattern = new RegExp(`^
|
||||
rgba?\\(
|
||||
\\s*${number}
|
||||
\\s+${number}
|
||||
\\s+${number}
|
||||
\\s*(?:\\s*\\/\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''));
|
||||
|
||||
export const transparent_pattern = new RegExp(/^transparent$/, 'i');
|
||||
// #endregion
|
||||
|
||||
|
||||
// #region utils
|
||||
|
||||
|
||||
/* 500 => 255, -10 => 0, 128 => 128 */
|
||||
const parseRGB = (num) => {
|
||||
let n = num;
|
||||
if (typeof n !== 'number') {
|
||||
n = n.endsWith('%') ? (parseFloat(n) * 255) / 100 : parseFloat(n);
|
||||
}
|
||||
return clamp(Math.round(n), 0, 255);
|
||||
};
|
||||
|
||||
/* 200 => 100, -100 => 0, 50 => 50 */
|
||||
const parsePercentage = (percentage) => clamp(parseFloat(percentage), 0, 100);
|
||||
|
||||
/* '50%' => 5.0, 200 => 1, -10 => 0 */
|
||||
function parseAlpha(alpha) {
|
||||
let a = alpha;
|
||||
if (typeof a !== 'number') {
|
||||
a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
|
||||
}
|
||||
return clamp(a, 0, 1);
|
||||
}
|
||||
|
||||
export function getHEX(hex) {
|
||||
const [r, g, b, a] = hex2Rgb(hex, { format: 'array' });
|
||||
return getRGB([null, ...[r, g, b, a]]);
|
||||
}
|
||||
|
||||
export function getHSL([, h, s, l, a = 1]) {
|
||||
let hh = h;
|
||||
if (hh.endsWith('turn')) {
|
||||
hh = (parseFloat(hh) * 360) / 1;
|
||||
} else if (hh.endsWith('rad')) {
|
||||
hh = Math.round((parseFloat(hh) * 180) / Math.PI);
|
||||
} else {
|
||||
hh = parseFloat(hh);
|
||||
}
|
||||
return {
|
||||
type: 'hsl',
|
||||
values: [hh, parsePercentage(s), parsePercentage(l)],
|
||||
alpha: parseAlpha(a === null ? 1 : a)
|
||||
};
|
||||
}
|
||||
|
||||
export function getRGB([, r, g, b, a = 1]) {
|
||||
return {
|
||||
type: 'rgb',
|
||||
values: [r, g, b].map(parseRGB),
|
||||
alpha: parseAlpha(a === null ? 1 : a)
|
||||
};
|
||||
}
|
||||
export function hex2Rgb(hex, options = {}) {
|
||||
if (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {
|
||||
throw new TypeError('Expected a valid hex string');
|
||||
}
|
||||
|
||||
hex = hex.replace(/^#/, '');
|
||||
let alphaFromHex = 1;
|
||||
|
||||
if (hex.length === 8) {
|
||||
alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
|
||||
hex = hex.slice(0, 6);
|
||||
}
|
||||
|
||||
if (hex.length === 4) {
|
||||
alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
|
||||
hex = hex.slice(0, 3);
|
||||
}
|
||||
|
||||
if (hex.length === 3) {
|
||||
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
|
||||
}
|
||||
|
||||
const number = Number.parseInt(hex, 16);
|
||||
const red = number >> 16;
|
||||
const green = (number >> 8) & 255;
|
||||
const blue = number & 255;
|
||||
const alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
|
||||
|
||||
if (options.format === 'array') {
|
||||
return [red, green, blue, alpha];
|
||||
}
|
||||
|
||||
if (options.format === 'css') {
|
||||
const alphaString = alpha === 1 ? '' : ` / ${Number((alpha * 100).toFixed(2))}%`;
|
||||
return `rgb(${red} ${green} ${blue}${alphaString})`;
|
||||
}
|
||||
|
||||
return {red, green, blue, alpha};
|
||||
}
|
||||
// #endregion
|
||||
|
||||
|
||||
// #region colorNames
|
||||
export const colorName = {
|
||||
aliceblue: [240, 248, 255],
|
||||
antiquewhite: [250, 235, 215],
|
||||
aqua: [0, 255, 255],
|
||||
aquamarine: [127, 255, 212],
|
||||
azure: [240, 255, 255],
|
||||
beige: [245, 245, 220],
|
||||
bisque: [255, 228, 196],
|
||||
black: [0, 0, 0],
|
||||
blanchedalmond: [255, 235, 205],
|
||||
blue: [0, 0, 255],
|
||||
blueviolet: [138, 43, 226],
|
||||
brown: [165, 42, 42],
|
||||
burlywood: [222, 184, 135],
|
||||
cadetblue: [95, 158, 160],
|
||||
chartreuse: [127, 255, 0],
|
||||
chocolate: [210, 105, 30],
|
||||
coral: [255, 127, 80],
|
||||
cornflowerblue: [100, 149, 237],
|
||||
cornsilk: [255, 248, 220],
|
||||
crimson: [220, 20, 60],
|
||||
cyan: [0, 255, 255],
|
||||
darkblue: [0, 0, 139],
|
||||
darkcyan: [0, 139, 139],
|
||||
darkgoldenrod: [184, 134, 11],
|
||||
darkgray: [169, 169, 169],
|
||||
darkgreen: [0, 100, 0],
|
||||
darkgrey: [169, 169, 169],
|
||||
darkkhaki: [189, 183, 107],
|
||||
darkmagenta: [139, 0, 139],
|
||||
darkolivegreen: [85, 107, 47],
|
||||
darkorange: [255, 140, 0],
|
||||
darkorchid: [153, 50, 204],
|
||||
darkred: [139, 0, 0],
|
||||
darksalmon: [233, 150, 122],
|
||||
darkseagreen: [143, 188, 143],
|
||||
darkslateblue: [72, 61, 139],
|
||||
darkslategray: [47, 79, 79],
|
||||
darkslategrey: [47, 79, 79],
|
||||
darkturquoise: [0, 206, 209],
|
||||
darkviolet: [148, 0, 211],
|
||||
deeppink: [255, 20, 147],
|
||||
deepskyblue: [0, 191, 255],
|
||||
dimgray: [105, 105, 105],
|
||||
dimgrey: [105, 105, 105],
|
||||
dodgerblue: [30, 144, 255],
|
||||
firebrick: [178, 34, 34],
|
||||
floralwhite: [255, 250, 240],
|
||||
forestgreen: [34, 139, 34],
|
||||
fuchsia: [255, 0, 255],
|
||||
gainsboro: [220, 220, 220],
|
||||
ghostwhite: [248, 248, 255],
|
||||
gold: [255, 215, 0],
|
||||
goldenrod: [218, 165, 32],
|
||||
gray: [128, 128, 128],
|
||||
green: [0, 128, 0],
|
||||
greenyellow: [173, 255, 47],
|
||||
grey: [128, 128, 128],
|
||||
honeydew: [240, 255, 240],
|
||||
hotpink: [255, 105, 180],
|
||||
indianred: [205, 92, 92],
|
||||
indigo: [75, 0, 130],
|
||||
ivory: [255, 255, 240],
|
||||
khaki: [240, 230, 140],
|
||||
lavender: [230, 230, 250],
|
||||
lavenderblush: [255, 240, 245],
|
||||
lawngreen: [124, 252, 0],
|
||||
lemonchiffon: [255, 250, 205],
|
||||
lightblue: [173, 216, 230],
|
||||
lightcoral: [240, 128, 128],
|
||||
lightcyan: [224, 255, 255],
|
||||
lightgoldenrodyellow: [250, 250, 210],
|
||||
lightgray: [211, 211, 211],
|
||||
lightgreen: [144, 238, 144],
|
||||
lightgrey: [211, 211, 211],
|
||||
lightpink: [255, 182, 193],
|
||||
lightsalmon: [255, 160, 122],
|
||||
lightseagreen: [32, 178, 170],
|
||||
lightskyblue: [135, 206, 250],
|
||||
lightslategray: [119, 136, 153],
|
||||
lightslategrey: [119, 136, 153],
|
||||
lightsteelblue: [176, 196, 222],
|
||||
lightyellow: [255, 255, 224],
|
||||
lime: [0, 255, 0],
|
||||
limegreen: [50, 205, 50],
|
||||
linen: [250, 240, 230],
|
||||
magenta: [255, 0, 255],
|
||||
maroon: [128, 0, 0],
|
||||
mediumaquamarine: [102, 205, 170],
|
||||
mediumblue: [0, 0, 205],
|
||||
mediumorchid: [186, 85, 211],
|
||||
mediumpurple: [147, 112, 219],
|
||||
mediumseagreen: [60, 179, 113],
|
||||
mediumslateblue: [123, 104, 238],
|
||||
mediumspringgreen: [0, 250, 154],
|
||||
mediumturquoise: [72, 209, 204],
|
||||
mediumvioletred: [199, 21, 133],
|
||||
midnightblue: [25, 25, 112],
|
||||
mintcream: [245, 255, 250],
|
||||
mistyrose: [255, 228, 225],
|
||||
moccasin: [255, 228, 181],
|
||||
navajowhite: [255, 222, 173],
|
||||
navy: [0, 0, 128],
|
||||
oldlace: [253, 245, 230],
|
||||
olive: [128, 128, 0],
|
||||
olivedrab: [107, 142, 35],
|
||||
orange: [255, 165, 0],
|
||||
orangered: [255, 69, 0],
|
||||
orchid: [218, 112, 214],
|
||||
palegoldenrod: [238, 232, 170],
|
||||
palegreen: [152, 251, 152],
|
||||
paleturquoise: [175, 238, 238],
|
||||
palevioletred: [219, 112, 147],
|
||||
papayawhip: [255, 239, 213],
|
||||
peachpuff: [255, 218, 185],
|
||||
peru: [205, 133, 63],
|
||||
pink: [255, 192, 203],
|
||||
plum: [221, 160, 221],
|
||||
powderblue: [176, 224, 230],
|
||||
purple: [128, 0, 128],
|
||||
rebeccapurple: [102, 51, 153],
|
||||
red: [255, 0, 0],
|
||||
rosybrown: [188, 143, 143],
|
||||
royalblue: [65, 105, 225],
|
||||
saddlebrown: [139, 69, 19],
|
||||
salmon: [250, 128, 114],
|
||||
sandybrown: [244, 164, 96],
|
||||
seagreen: [46, 139, 87],
|
||||
seashell: [255, 245, 238],
|
||||
sienna: [160, 82, 45],
|
||||
silver: [192, 192, 192],
|
||||
skyblue: [135, 206, 235],
|
||||
slateblue: [106, 90, 205],
|
||||
slategray: [112, 128, 144],
|
||||
slategrey: [112, 128, 144],
|
||||
snow: [255, 250, 250],
|
||||
springgreen: [0, 255, 127],
|
||||
steelblue: [70, 130, 180],
|
||||
tan: [210, 180, 140],
|
||||
teal: [0, 128, 128],
|
||||
thistle: [216, 191, 216],
|
||||
tomato: [255, 99, 71],
|
||||
turquoise: [64, 224, 208],
|
||||
violet: [238, 130, 238],
|
||||
wheat: [245, 222, 179],
|
||||
white: [255, 255, 255],
|
||||
whitesmoke: [245, 245, 245],
|
||||
yellow: [255, 255, 0],
|
||||
yellowgreen: [154, 205, 50]
|
||||
}
|
||||
// #endregion
|
||||
|
||||
|
||||
export const parseCSSColor = (str, debug=false) => {
|
||||
if (typeof str !== 'string') {
|
||||
console.error(`parseCSSColor: expected a string found ${typeof str}`,str);
|
||||
return null;
|
||||
}
|
||||
|
||||
const hex = hex_pattern.exec(str);
|
||||
if (hex) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: hex', hex);
|
||||
}
|
||||
return getHEX(hex[0]);
|
||||
}
|
||||
|
||||
const hsl = hsl4_pattern.exec(str) || hsl3_pattern.exec(str);
|
||||
if (hsl) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: hsl', hsl);
|
||||
}
|
||||
return getHSL(hsl);
|
||||
}
|
||||
|
||||
const rgb =
|
||||
rgb4_pattern.exec(str) ||
|
||||
rgb3_pattern.exec(str)
|
||||
if (rgb) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: rgb', rgb);
|
||||
}
|
||||
return getRGB(rgb);
|
||||
}
|
||||
|
||||
if (transparent_pattern.exec(str)) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: transparent');
|
||||
}
|
||||
return getRGB([null, 0, 0, 0, 0]);
|
||||
}
|
||||
|
||||
const cn = colorName[str.toLowerCase()];
|
||||
if (cn) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: colorName', cn);
|
||||
}
|
||||
return getRGB([null, cn[0], cn[1], cn[2], 1]);
|
||||
}
|
||||
|
||||
console.error('parseCSSColor: unknown color', str);
|
||||
return null;
|
||||
};
|
||||
|
||||
export default parseCSSColor;
|
||||
|
||||
@@ -0,0 +1,224 @@
|
||||
import torch
|
||||
from PIL import Image, ImageFont, ImageDraw
|
||||
from .imagefunc import log, tensor2pil, pil2tensor, gaussian_blur, adjust_levels, get_resource_dir
|
||||
|
||||
class ImageReelPipeline:
|
||||
def __init__(self):
|
||||
self.image = None
|
||||
self.texts = {}
|
||||
self.reel_height = 0
|
||||
self.reel_border = 0
|
||||
|
||||
Reel = ImageReelPipeline()
|
||||
class ImageReel:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageReel'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
return {
|
||||
"required": {
|
||||
"image1": ("IMAGE",),
|
||||
"image1_text": ("STRING", {"multiline": False, "default": "image1"}),
|
||||
"image2_text": ("STRING", {"multiline": False, "default": "image2"}),
|
||||
"image3_text": ("STRING", {"multiline": False, "default": "image3"}),
|
||||
"image4_text": ("STRING", {"multiline": False, "default": "image4"}),
|
||||
"reel_height": ("INT", {"default": 512, "min": 64, "max": 2048}),
|
||||
"border": ("INT", {"default": 32, "min": 8, "max": 512}),
|
||||
},
|
||||
"optional": {
|
||||
"image2": ("IMAGE",),
|
||||
"image3": ("IMAGE",),
|
||||
"image4": ("IMAGE",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("Reel",)
|
||||
RETURN_NAMES = ("reel",)
|
||||
FUNCTION = 'image_reel'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_reel(self, image1, image1_text, image2_text, image3_text, image4_text,
|
||||
reel_height, border,
|
||||
image2=None, image3=None, image4=None,):
|
||||
|
||||
image_list = []
|
||||
texts = []
|
||||
for img in image1:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image1_text,i.width])
|
||||
if image2 is not None:
|
||||
for img in image2:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image2_text,i.width])
|
||||
if image3 is not None:
|
||||
for img in image3:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image3_text,i.width])
|
||||
if image4 is not None:
|
||||
for img in image4:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image4_text,i.width])
|
||||
|
||||
reel = ImageReel()
|
||||
reel.image = self.draw_reel_image(image_list, border, reel_height)
|
||||
reel.texts = texts
|
||||
reel.reel_height = reel_height
|
||||
reel.reel_border = border
|
||||
return (reel,)
|
||||
|
||||
def resize_image_to_height(self, image, target_height) -> Image:
|
||||
w = int(target_height / image.height * image.width)
|
||||
return image.resize((w, target_height), Image.LANCZOS)
|
||||
|
||||
def draw_reel_image(self, image_list, border, reel_height) -> Image:
|
||||
reel_width = 0
|
||||
for img in image_list:
|
||||
reel_width += img.width + border
|
||||
reel_img = Image.new('RGBA', (reel_width, reel_height + border), color=(0, 0, 0, 0))
|
||||
#paste images
|
||||
w = border // 2
|
||||
for img in image_list:
|
||||
reel_img.paste(img, (w, border // 2))
|
||||
w += img.width + border
|
||||
return reel_img
|
||||
|
||||
|
||||
class ImageReelComposit:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageReelComposit'
|
||||
(_, self.FONT_DICT) = get_resource_dir()
|
||||
self.FONT_LIST = list(self.FONT_DICT.keys())
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
(LUT_DICT, FONT_DICT) = get_resource_dir()
|
||||
FONT_LIST = list(FONT_DICT.keys())
|
||||
LUT_LIST = list(LUT_DICT.keys())
|
||||
|
||||
color_theme_list = ['light', 'dark']
|
||||
return {
|
||||
"required": {
|
||||
"reel_1": ("Reel",),
|
||||
"font_file": (FONT_LIST,),
|
||||
"font_size": ("INT", {"default": 40, "min": 4, "max": 1024}),
|
||||
"border": ("INT", {"default": 32, "min": 8, "max": 512}),
|
||||
"color_theme": (color_theme_list,),
|
||||
},
|
||||
"optional": {
|
||||
"reel_2": ("Reel",),
|
||||
"reel_3": ("Reel",),
|
||||
"reel_4": ("Reel",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
RETURN_NAMES = ("image1",)
|
||||
FUNCTION = 'image_reel_composit'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_reel_composit(self, reel_1, font_file, font_size, border, color_theme, reel_2=None, reel_3=None, reel_4=None,):
|
||||
|
||||
|
||||
ret_images = []
|
||||
|
||||
if color_theme == 'light':
|
||||
bg_color = "#E5E5E5"
|
||||
text_color = "#121212"
|
||||
else:
|
||||
bg_color = "#121212"
|
||||
text_color = "#E5E5E5"
|
||||
|
||||
|
||||
font_space = int(font_size * 1.5)
|
||||
width = reel_1.image.width
|
||||
height = reel_1.image.height + font_space + border
|
||||
if reel_2 is not None:
|
||||
width = max(width, reel_2.image.width)
|
||||
height += reel_2.image.height + font_space + border
|
||||
if reel_3 is not None:
|
||||
width = max(width, reel_3.image.width)
|
||||
height += reel_3.image.height + font_space + border
|
||||
if reel_4 is not None:
|
||||
width = max(width, reel_4.image.width)
|
||||
height += reel_4.image.height + font_space + border
|
||||
|
||||
ret_image = Image.new('RGB', (width, height), color=bg_color)
|
||||
paste_y = 0
|
||||
reel1_text_image = self.draw_reel_text(reel_1, font_file, font_size, text_color)
|
||||
shadow_size = reel_1.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_1.image, reel1_text_image, ((width - reel_1.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
|
||||
paste_y += reel_1.image.height + font_space + border
|
||||
if reel_2 is not None:
|
||||
reel2_text_image = self.draw_reel_text(reel_2, font_file, font_size, text_color)
|
||||
shadow_size = reel_2.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_2.image, reel2_text_image, ((width - reel_2.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
paste_y += reel_2.image.height + font_space + border
|
||||
if reel_3 is not None:
|
||||
reel3_text_image = self.draw_reel_text(reel_3, font_file, font_size, text_color)
|
||||
shadow_size = reel_3.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_3.image, reel3_text_image,((width - reel_3.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
paste_y += reel_3.image.height + font_space + border
|
||||
if reel_4 is not None:
|
||||
reel4_text_image = self.draw_reel_text(reel_4, font_file, font_size, text_color)
|
||||
shadow_size = reel_4.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_4.image, reel4_text_image,((width - reel_4.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
|
||||
ret_images.append(pil2tensor(ret_image))
|
||||
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0),)
|
||||
|
||||
def paste_drop_shadow(self, background_image, image, text_image, box, shadow_size, text_color) -> Image:
|
||||
# drop shadow
|
||||
_mask = image.split()[3]
|
||||
_blured_mask = gaussian_blur(_mask, shadow_size//1.3)
|
||||
_blured_mask = adjust_levels(_blured_mask, 0, 255, 0.5, 0, output_white=54).convert('L')
|
||||
background_image.paste(Image.new('RGBA', image.size, color="black"), (box[0]+shadow_size, box[1]+shadow_size), mask=_blured_mask)
|
||||
background_image.paste(image, box, mask=_mask)
|
||||
background_image.paste(Image.new('RGB', text_image.size, color=text_color), (box[0], box[1] + image.height), mask=text_image.split()[3])
|
||||
return background_image
|
||||
|
||||
def draw_reel_text(self, reel, font_file, font_size, text_color) -> Image:
|
||||
|
||||
font_path = self.FONT_DICT.get(font_file)
|
||||
font = ImageFont.truetype(font_path, font_size)
|
||||
texts = reel.texts
|
||||
text_image = Image.new('RGBA', (reel.image.width, reel.reel_border + int(font_size * 1.5)), color=(0, 0, 0, 0))
|
||||
draw = ImageDraw.Draw(text_image)
|
||||
x = reel.reel_border
|
||||
for t in texts:
|
||||
text = t[0]
|
||||
width = t[1]
|
||||
text_width = font.getbbox(text)[2]
|
||||
draw.text(
|
||||
xy=(x + width // 2 - text_width//2, reel.reel_border//4),
|
||||
text=text,
|
||||
fill=text_color,
|
||||
font=font,
|
||||
)
|
||||
x += width + reel.reel_border
|
||||
return text_image
|
||||
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageReel": ImageReel,
|
||||
"LayerUtility: ImageReelComposit": ImageReelComposit
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageReel": "LayerUtility: Image Reel",
|
||||
"LayerUtility: ImageReelComposit": "LayerUtility: Image Reel Composit"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
[project]
|
||||
name = "comfyui_layerstyle"
|
||||
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
|
||||
version = "2.0.23"
|
||||
license = {text = "MIT License"}
|
||||
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "scikit_learn", "opencv-contrib-python", "pymatting", "timm", "colour-science", "transformers", "blend_modes", "huggingface_hub", "loguru"]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/chflame163/ComfyUI_LayerStyle"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "chflame163"
|
||||
DisplayName = "ComfyUI_LayerStyle"
|
||||
Icon = ""
|
||||
File diff suppressed because one or more lines are too long
@@ -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.
|
||||
@@ -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"]
|
||||
@@ -0,0 +1,341 @@
|
||||
/**
|
||||
* File: dz_comfy_shared.js
|
||||
* Author: Mel Massadian
|
||||
*
|
||||
* Copyright (c) 2023 Mel Massadian
|
||||
*
|
||||
*/
|
||||
|
||||
import { app } from '../../scripts/app.js'
|
||||
|
||||
export const log = (...args) => {
|
||||
// if (window.DZ?.DEBUG) {
|
||||
// console.debug(...args)
|
||||
// }
|
||||
}
|
||||
|
||||
//- WIDGET UTILS
|
||||
export const CONVERTED_TYPE = 'converted-widget'
|
||||
|
||||
export const hasWidgets = (node) => {
|
||||
if (!node.widgets || !node.widgets?.[Symbol.iterator]) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
export const cleanupNode = (node) => {
|
||||
if (!hasWidgets(node)) {
|
||||
return
|
||||
}
|
||||
|
||||
for (const w of node.widgets) {
|
||||
if (w.canvas) {
|
||||
w.canvas.remove()
|
||||
}
|
||||
if (w.inputEl) {
|
||||
w.inputEl.remove()
|
||||
}
|
||||
// calls the widget remove callback
|
||||
w.onRemoved?.()
|
||||
}
|
||||
}
|
||||
|
||||
export function offsetDOMWidget(
|
||||
widget,
|
||||
ctx,
|
||||
node,
|
||||
widgetWidth,
|
||||
widgetY,
|
||||
height
|
||||
) {
|
||||
const margin = 10
|
||||
const elRect = ctx.canvas.getBoundingClientRect()
|
||||
const transform = new DOMMatrix()
|
||||
.scaleSelf(
|
||||
elRect.width / ctx.canvas.width,
|
||||
elRect.height / ctx.canvas.height
|
||||
)
|
||||
.multiplySelf(ctx.getTransform())
|
||||
.translateSelf(margin, margin + widgetY)
|
||||
|
||||
const scale = new DOMMatrix().scaleSelf(transform.a, transform.d)
|
||||
Object.assign(widget.inputEl.style, {
|
||||
transformOrigin: '0 0',
|
||||
transform: scale,
|
||||
left: `${transform.a + transform.e}px`,
|
||||
top: `${transform.d + transform.f}px`,
|
||||
width: `${widgetWidth - margin * 2}px`,
|
||||
// height: `${(widget.parent?.inputHeight || 32) - (margin * 2)}px`,
|
||||
height: `${(height || widget.parent?.inputHeight || 32) - margin * 2}px`,
|
||||
|
||||
position: 'absolute',
|
||||
background: !node.color ? '' : node.color,
|
||||
color: !node.color ? '' : 'white',
|
||||
zIndex: 5, //app.graph._nodes.indexOf(node),
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts the type and link type from a widget config object.
|
||||
* @param {*} config
|
||||
* @returns
|
||||
*/
|
||||
export function getWidgetType(config) {
|
||||
// Special handling for COMBO so we restrict links based on the entries
|
||||
let type = config?.[0]
|
||||
let linkType = type
|
||||
if (type instanceof Array) {
|
||||
type = 'COMBO'
|
||||
linkType = linkType.join(',')
|
||||
}
|
||||
return { type, linkType }
|
||||
}
|
||||
|
||||
export const dynamic_connection = (
|
||||
node,
|
||||
index,
|
||||
connected,
|
||||
connectionPrefix = 'input_',
|
||||
connectionType = 'PSDLAYER'
|
||||
) => {
|
||||
// remove all non connected inputs
|
||||
if (!connected && node.inputs.length > 1) {
|
||||
log(`Removing input ${index} (${node.inputs[index].name})`)
|
||||
if (node.widgets) {
|
||||
const w = node.widgets.find((w) => w.name === node.inputs[index].name)
|
||||
if (w) {
|
||||
w.onRemoved?.()
|
||||
node.widgets.length = node.widgets.length - 1
|
||||
}
|
||||
}
|
||||
node.removeInput(index)
|
||||
|
||||
// make inputs sequential again
|
||||
for (let i = 0; i < node.inputs.length; i++) {
|
||||
node.inputs[i].label = `${connectionPrefix}${i + 1}`
|
||||
}
|
||||
}
|
||||
|
||||
// add an extra input
|
||||
if (node.inputs[node.inputs.length - 1].link != undefined) {
|
||||
log(
|
||||
`Adding input ${node.inputs.length + 1} (${connectionPrefix}${
|
||||
node.inputs.length + 1
|
||||
})`
|
||||
)
|
||||
|
||||
node.addInput(
|
||||
`${connectionPrefix}${node.inputs.length + 1}`,
|
||||
connectionType
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a callback to the extra menu options of a given node type.
|
||||
* @param {*} nodeType
|
||||
* @param {*} cb
|
||||
*/
|
||||
export function addMenuHandler(nodeType, cb) {
|
||||
const getOpts = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.getExtraMenuOptions = function () {
|
||||
const r = getOpts.apply(this, arguments)
|
||||
cb.apply(this, arguments)
|
||||
return r
|
||||
}
|
||||
}
|
||||
|
||||
export function hideWidget(node, widget, suffix = '') {
|
||||
widget.origType = widget.type
|
||||
widget.hidden = true
|
||||
widget.origComputeSize = widget.computeSize
|
||||
widget.origSerializeValue = widget.serializeValue
|
||||
widget.computeSize = () => [0, -4] // -4 is due to the gap litegraph adds between widgets automatically
|
||||
widget.type = CONVERTED_TYPE + suffix
|
||||
widget.serializeValue = () => {
|
||||
// Prevent serializing the widget if we have no input linked
|
||||
const { link } = node.inputs.find((i) => i.widget?.name === widget.name)
|
||||
if (link == null) {
|
||||
return undefined
|
||||
}
|
||||
return widget.origSerializeValue
|
||||
? widget.origSerializeValue()
|
||||
: widget.value
|
||||
}
|
||||
|
||||
// Hide any linked widgets, e.g. seed+seedControl
|
||||
if (widget.linkedWidgets) {
|
||||
for (const w of widget.linkedWidgets) {
|
||||
hideWidget(node, w, ':' + widget.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function showWidget(widget) {
|
||||
widget.type = widget.origType
|
||||
widget.computeSize = widget.origComputeSize
|
||||
widget.serializeValue = widget.origSerializeValue
|
||||
|
||||
delete widget.origType
|
||||
delete widget.origComputeSize
|
||||
delete widget.origSerializeValue
|
||||
|
||||
// Hide any linked widgets, e.g. seed+seedControl
|
||||
if (widget.linkedWidgets) {
|
||||
for (const w of widget.linkedWidgets) {
|
||||
showWidget(w)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function convertToWidget(node, widget) {
|
||||
showWidget(widget)
|
||||
const sz = node.size
|
||||
node.removeInput(node.inputs.findIndex((i) => i.widget?.name === widget.name))
|
||||
|
||||
for (const widget of node.widgets) {
|
||||
widget.last_y -= LiteGraph.NODE_SLOT_HEIGHT
|
||||
}
|
||||
|
||||
// Restore original size but grow if needed
|
||||
node.setSize([Math.max(sz[0], node.size[0]), Math.max(sz[1], node.size[1])])
|
||||
}
|
||||
|
||||
export function convertToInput(node, widget, config) {
|
||||
hideWidget(node, widget)
|
||||
|
||||
const { linkType } = getWidgetType(config)
|
||||
|
||||
// Add input and store widget config for creating on primitive node
|
||||
const sz = node.size
|
||||
node.addInput(widget.name, linkType, {
|
||||
widget: { name: widget.name, config },
|
||||
})
|
||||
|
||||
for (const widget of node.widgets) {
|
||||
widget.last_y += LiteGraph.NODE_SLOT_HEIGHT
|
||||
}
|
||||
|
||||
// Restore original size but grow if needed
|
||||
node.setSize([Math.max(sz[0], node.size[0]), Math.max(sz[1], node.size[1])])
|
||||
}
|
||||
|
||||
export function hideWidgetForGood(node, widget, suffix = '') {
|
||||
widget.origType = widget.type
|
||||
widget.origComputeSize = widget.computeSize
|
||||
widget.origSerializeValue = widget.serializeValue
|
||||
widget.computeSize = () => [0, -4] // -4 is due to the gap litegraph adds between widgets automatically
|
||||
widget.type = CONVERTED_TYPE + suffix
|
||||
// widget.serializeValue = () => {
|
||||
// // Prevent serializing the widget if we have no input linked
|
||||
// const w = node.inputs?.find((i) => i.widget?.name === widget.name);
|
||||
// if (w?.link == null) {
|
||||
// return undefined;
|
||||
// }
|
||||
// return widget.origSerializeValue ? widget.origSerializeValue() : widget.value;
|
||||
// };
|
||||
|
||||
// Hide any linked widgets, e.g. seed+seedControl
|
||||
if (widget.linkedWidgets) {
|
||||
for (const w of widget.linkedWidgets) {
|
||||
hideWidgetForGood(node, w, ':' + widget.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function fixWidgets(node) {
|
||||
if (node.inputs) {
|
||||
for (const input of node.inputs) {
|
||||
log(input)
|
||||
if (input.widget || node.widgets) {
|
||||
// if (newTypes.includes(input.type)) {
|
||||
const matching_widget = node.widgets.find((w) => w.name === input.name)
|
||||
if (matching_widget) {
|
||||
// if (matching_widget.hidden) {
|
||||
// log(`Already hidden skipping ${matching_widget.name}`)
|
||||
// continue
|
||||
// }
|
||||
const w = node.widgets.find((w) => w.name === matching_widget.name)
|
||||
if (w && w.type != CONVERTED_TYPE) {
|
||||
log(w)
|
||||
log(`hidding ${w.name}(${w.type}) from ${node.type}`)
|
||||
log(node)
|
||||
hideWidget(node, w)
|
||||
} else {
|
||||
log(`converting to widget ${w}`)
|
||||
|
||||
convertToWidget(node, input)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export function inner_value_change(widget, value, event = undefined) {
|
||||
if (widget.type == 'number' || widget.type == 'BBOX') {
|
||||
value = Number(value)
|
||||
} else if (widget.type == 'BOOL') {
|
||||
value = Boolean(value)
|
||||
}
|
||||
widget.value = value
|
||||
if (
|
||||
widget.options &&
|
||||
widget.options.property &&
|
||||
node.properties[widget.options.property] !== undefined
|
||||
) {
|
||||
node.setProperty(widget.options.property, value)
|
||||
}
|
||||
if (widget.callback) {
|
||||
widget.callback(widget.value, app.canvas, node, pos, event)
|
||||
}
|
||||
}
|
||||
|
||||
//- COLOR UTILS
|
||||
export function isColorBright(rgb, threshold = 240) {
|
||||
const brightess = getBrightness(rgb)
|
||||
return brightess > threshold
|
||||
}
|
||||
|
||||
function getBrightness(rgbObj) {
|
||||
return Math.round(
|
||||
(parseInt(rgbObj[0]) * 299 +
|
||||
parseInt(rgbObj[1]) * 587 +
|
||||
parseInt(rgbObj[2]) * 114) /
|
||||
1000
|
||||
)
|
||||
}
|
||||
|
||||
//- HTML / CSS UTILS
|
||||
export function defineClass(className, classStyles) {
|
||||
const styleSheets = document.styleSheets
|
||||
|
||||
// Helper function to check if the class exists in a style sheet
|
||||
function classExistsInStyleSheet(styleSheet) {
|
||||
const rules = styleSheet.rules || styleSheet.cssRules
|
||||
for (const rule of rules) {
|
||||
if (rule.selectorText === `.${className}`) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Check if the class is already defined in any of the style sheets
|
||||
let classExists = false
|
||||
for (const styleSheet of styleSheets) {
|
||||
if (classExistsInStyleSheet(styleSheet)) {
|
||||
classExists = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// If the class doesn't exist, add the new class definition to the first style sheet
|
||||
if (!classExists) {
|
||||
if (styleSheets[0].insertRule) {
|
||||
styleSheets[0].insertRule(`.${className} { ${classStyles} }`, 0)
|
||||
} else if (styleSheets[0].addRule) {
|
||||
styleSheets[0].addRule(`.${className}`, classStyles, 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,908 @@
|
||||
/**
|
||||
* File: DZ_widgets.js
|
||||
* Project: comfy_DZ
|
||||
* Author: Mel Massadian
|
||||
*
|
||||
* Copyright (c) 2023 Mel Massadian
|
||||
*
|
||||
*/
|
||||
|
||||
import { app } from '../../scripts/app.js'
|
||||
import { api } from '../../scripts/api.js'
|
||||
|
||||
import parseCss from './dz_parse-css.js'
|
||||
import * as shared from './dz_comfy_shared.js'
|
||||
import { log } from './dz_comfy_shared.js'
|
||||
|
||||
const newTypes = [, /*'BOOL'*/ 'COLOR', 'BBOX']
|
||||
|
||||
const withFont = (ctx, font, cb) => {
|
||||
const oldFont = ctx.font
|
||||
ctx.font = font
|
||||
cb()
|
||||
ctx.font = oldFont
|
||||
}
|
||||
|
||||
const calculateTextDimensions = (ctx, value, width, fontSize = 16) => {
|
||||
const words = value.split(' ')
|
||||
const lines = []
|
||||
let currentLine = ''
|
||||
for (const word of words) {
|
||||
const testLine = currentLine.length === 0 ? word : `${currentLine} ${word}`
|
||||
const testWidth = ctx.measureText(testLine).width
|
||||
if (testWidth > width) {
|
||||
lines.push(currentLine)
|
||||
currentLine = word
|
||||
} else {
|
||||
currentLine = testLine
|
||||
}
|
||||
}
|
||||
if (lines.length === 0) lines.push(value)
|
||||
const textHeight = (lines.length + 1) * fontSize
|
||||
const maxLineWidth = lines.reduce(
|
||||
(maxWidth, line) => Math.max(maxWidth, ctx.measureText(line).width),
|
||||
0
|
||||
)
|
||||
return { textHeight, maxLineWidth }
|
||||
}
|
||||
|
||||
export const DZWidgets = {
|
||||
BBOX: (key, val) => {
|
||||
/** @type {import("./types/litegraph").IWidget} */
|
||||
const widget = {
|
||||
name: key,
|
||||
type: 'BBOX',
|
||||
// options: val,
|
||||
y: 0,
|
||||
value: val?.default || [0, 0, 0, 0],
|
||||
options: {},
|
||||
|
||||
draw: function (ctx, node, widget_width, widgetY, height) {
|
||||
const hide = this.type !== 'BBOX' && app.canvas.ds.scale > 0.5
|
||||
|
||||
const show_text = true
|
||||
const outline_color = LiteGraph.WIDGET_OUTLINE_COLOR
|
||||
const background_color = LiteGraph.WIDGET_BGCOLOR
|
||||
const text_color = LiteGraph.WIDGET_TEXT_COLOR
|
||||
const secondary_text_color = LiteGraph.WIDGET_SECONDARY_TEXT_COLOR
|
||||
const H = LiteGraph.NODE_WIDGET_HEIGHT
|
||||
|
||||
let margin = 15
|
||||
let numWidgets = 4 // Number of stacked widgets
|
||||
|
||||
if (hide) return
|
||||
|
||||
for (let i = 0; i < numWidgets; i++) {
|
||||
let currentY = widgetY + i * (H + margin) // Adjust Y position for each widget
|
||||
|
||||
ctx.textAlign = 'left'
|
||||
ctx.strokeStyle = outline_color
|
||||
ctx.fillStyle = background_color
|
||||
ctx.beginPath()
|
||||
if (show_text)
|
||||
ctx.roundRect(margin, currentY, widget_width - margin * 2, H, [
|
||||
H * 0.5,
|
||||
])
|
||||
else ctx.rect(margin, currentY, widget_width - margin * 2, H)
|
||||
ctx.fill()
|
||||
if (show_text) {
|
||||
if (!this.disabled) ctx.stroke()
|
||||
ctx.fillStyle = text_color
|
||||
if (!this.disabled) {
|
||||
ctx.beginPath()
|
||||
ctx.moveTo(margin + 16, currentY + 5)
|
||||
ctx.lineTo(margin + 6, currentY + H * 0.5)
|
||||
ctx.lineTo(margin + 16, currentY + H - 5)
|
||||
ctx.fill()
|
||||
ctx.beginPath()
|
||||
ctx.moveTo(widget_width - margin - 16, currentY + 5)
|
||||
ctx.lineTo(widget_width - margin - 6, currentY + H * 0.5)
|
||||
ctx.lineTo(widget_width - margin - 16, currentY + H - 5)
|
||||
ctx.fill()
|
||||
}
|
||||
ctx.fillStyle = secondary_text_color
|
||||
ctx.fillText(
|
||||
this.label || this.name,
|
||||
margin * 2 + 5,
|
||||
currentY + H * 0.7
|
||||
)
|
||||
ctx.fillStyle = text_color
|
||||
ctx.textAlign = 'right'
|
||||
|
||||
ctx.fillText(
|
||||
Number(this.value).toFixed(
|
||||
this.options?.precision !== undefined
|
||||
? this.options.precision
|
||||
: 3
|
||||
),
|
||||
widget_width - margin * 2 - 20,
|
||||
currentY + H * 0.7
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
mouse: function (event, pos, node) {
|
||||
let old_value = this.value
|
||||
let x = pos[0] - node.pos[0]
|
||||
let y = pos[1] - node.pos[1]
|
||||
let width = node.size[0]
|
||||
let H = LiteGraph.NODE_WIDGET_HEIGHT
|
||||
let margin = 5
|
||||
let numWidgets = 4 // Number of stacked widgets
|
||||
|
||||
for (let i = 0; i < numWidgets; i++) {
|
||||
let currentY = y + i * (H + margin) // Adjust Y position for each widget
|
||||
|
||||
if (
|
||||
event.type == LiteGraph.pointerevents_method + 'move' &&
|
||||
this.type == 'BBOX'
|
||||
) {
|
||||
if (event.deltaX)
|
||||
this.value += event.deltaX * 0.1 * (this.options?.step || 1)
|
||||
if (this.options.min != null && this.value < this.options.min) {
|
||||
this.value = this.options.min
|
||||
}
|
||||
if (this.options.max != null && this.value > this.options.max) {
|
||||
this.value = this.options.max
|
||||
}
|
||||
} else if (event.type == LiteGraph.pointerevents_method + 'down') {
|
||||
let values = this.options?.values
|
||||
if (values && values.constructor === Function) {
|
||||
values = this.options.values(w, node)
|
||||
}
|
||||
let values_list = null
|
||||
|
||||
let delta = x < 40 ? -1 : x > widget_width - 40 ? 1 : 0
|
||||
if (this.type == 'BBOX') {
|
||||
this.value += delta * 0.1 * (this.options.step || 1)
|
||||
if (this.options.min != null && this.value < this.options.min) {
|
||||
this.value = this.options.min
|
||||
}
|
||||
if (this.options.max != null && this.value > this.options.max) {
|
||||
this.value = this.options.max
|
||||
}
|
||||
} else if (delta) {
|
||||
//clicked in arrow, used for combos
|
||||
let index = -1
|
||||
this.last_mouseclick = 0 //avoids dobl click event
|
||||
if (values.constructor === Object)
|
||||
index = values_list.indexOf(String(this.value)) + delta
|
||||
else index = values_list.indexOf(this.value) + delta
|
||||
if (index >= values_list.length) {
|
||||
index = values_list.length - 1
|
||||
}
|
||||
if (index < 0) {
|
||||
index = 0
|
||||
}
|
||||
if (values.constructor === Array) this.value = values[index]
|
||||
else this.value = index
|
||||
}
|
||||
} //end mousedown
|
||||
else if (
|
||||
event.type == LiteGraph.pointerevents_method + 'up' &&
|
||||
this.type == 'BBOX'
|
||||
) {
|
||||
let delta = x < 40 ? -1 : x > widget_width - 40 ? 1 : 0
|
||||
if (event.click_time < 200 && delta == 0) {
|
||||
this.prompt(
|
||||
'Value',
|
||||
this.value,
|
||||
function (v) {
|
||||
// check if v is a valid equation or a number
|
||||
if (/^[0-9+\-*/()\s]+|\d+\.\d+$/.test(v)) {
|
||||
try {
|
||||
//solve the equation if possible
|
||||
v = eval(v)
|
||||
} catch (e) {}
|
||||
}
|
||||
this.value = Number(v)
|
||||
shared.inner_value_change(this, this.value, event)
|
||||
}.bind(w),
|
||||
event
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (old_value != this.value)
|
||||
setTimeout(
|
||||
function () {
|
||||
shared.inner_value_change(this, this.value, event)
|
||||
}.bind(this),
|
||||
20
|
||||
)
|
||||
|
||||
app.canvas.setDirty(true)
|
||||
}
|
||||
},
|
||||
computeSize: function (width) {
|
||||
return [width, LiteGraph.NODE_WIDGET_HEIGHT * 4]
|
||||
},
|
||||
// onDrawBackground: function (ctx) {
|
||||
// if (!this.flags.collapsed) return;
|
||||
// this.inputEl.style.display = "block";
|
||||
// this.inputEl.style.top = this.graphcanvas.offsetTop + this.pos[1] + "px";
|
||||
// this.inputEl.style.left = this.graphcanvas.offsetLeft + this.pos[0] + "px";
|
||||
// },
|
||||
// onInputChange: function (e) {
|
||||
// const property = e.target.dataset.property;
|
||||
// const bbox = this.getInputData(0);
|
||||
// if (!bbox) return;
|
||||
// bbox[property] = parseFloat(e.target.value);
|
||||
// this.setOutputData(0, bbox);
|
||||
// }
|
||||
}
|
||||
|
||||
widget.desc = 'Represents a Bounding Box with x, y, width, and height.'
|
||||
return widget
|
||||
},
|
||||
|
||||
COLOR: (key, val, compute = false) => {
|
||||
/** @type {import("/types/litegraph").IWidget} */
|
||||
const widget = {}
|
||||
widget.y = 0
|
||||
widget.name = key
|
||||
widget.type = 'COLOR'
|
||||
widget.options = { default: '#ff0000' }
|
||||
widget.value = val || '#ff0000'
|
||||
widget.draw = function (ctx, node, widgetWidth, widgetY, height) {
|
||||
const hide = this.type !== 'COLOR' && app.canvas.ds.scale > 0.5
|
||||
if (hide) {
|
||||
return
|
||||
}
|
||||
const border = 3
|
||||
ctx.fillStyle = '#000'
|
||||
ctx.fillRect(0, widgetY, widgetWidth, height)
|
||||
ctx.fillStyle = this.value
|
||||
ctx.fillRect(
|
||||
border,
|
||||
widgetY + border,
|
||||
widgetWidth - border * 2,
|
||||
height - border * 2
|
||||
)
|
||||
const color = parseCss(this.value.default || this.value)
|
||||
if (!color) {
|
||||
return
|
||||
}
|
||||
ctx.fillStyle = shared.isColorBright(color.values, 125) ? '#000' : '#fff'
|
||||
|
||||
ctx.font = '14px Arial'
|
||||
ctx.textAlign = 'center'
|
||||
ctx.fillText(this.name, widgetWidth * 0.5, widgetY + 14)
|
||||
}
|
||||
widget.mouse = function (e, pos, node) {
|
||||
if (e.type === 'pointerdown') {
|
||||
const widgets = node.widgets.filter((w) => w.type === 'COLOR')
|
||||
|
||||
for (const w of widgets) {
|
||||
// color picker
|
||||
const rect = [w.last_y, w.last_y + 32]
|
||||
if (pos[1] > rect[0] && pos[1] < rect[1]) {
|
||||
const picker = document.createElement('input')
|
||||
picker.type = 'color'
|
||||
picker.value = this.value
|
||||
|
||||
picker.style.position = 'absolute'
|
||||
picker.style.left = '999999px' //(window.innerWidth / 2) + "px";
|
||||
picker.style.top = '999999px' //(window.innerHeight / 2) + "px";
|
||||
|
||||
document.body.appendChild(picker)
|
||||
|
||||
picker.addEventListener('change', () => {
|
||||
this.value = picker.value
|
||||
node.graph._version++
|
||||
node.setDirtyCanvas(true, true)
|
||||
picker.remove()
|
||||
})
|
||||
|
||||
picker.click()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
widget.computeSize = function (width) {
|
||||
return [width, 32]
|
||||
}
|
||||
|
||||
return widget
|
||||
},
|
||||
|
||||
// DEBUG_IMG: (name, val) => {
|
||||
// const w = {
|
||||
// name,
|
||||
// type: 'image',
|
||||
// value: val,
|
||||
// draw: function (ctx, node, widgetWidth, widgetY, height) {
|
||||
// const [cw, ch] = this.computeSize(widgetWidth)
|
||||
// shared.offsetDOMWidget(this, ctx, node, widgetWidth, widgetY, ch)
|
||||
// },
|
||||
// computeSize: function (width) {
|
||||
// const ratio = this.inputRatio || 1
|
||||
// if (width) {
|
||||
// return [width, width / ratio + 4]
|
||||
// }
|
||||
// return [128, 128]
|
||||
// },
|
||||
// onRemoved: function () {
|
||||
// if (this.inputEl) {
|
||||
// this.inputEl.remove()
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
//
|
||||
// w.inputEl = document.createElement('img')
|
||||
// w.inputEl.src = w.value
|
||||
// w.inputEl.onload = function () {
|
||||
// w.inputRatio = w.inputEl.naturalWidth / w.inputEl.naturalHeight
|
||||
// }
|
||||
// document.body.appendChild(w.inputEl)
|
||||
// return w
|
||||
// },
|
||||
// DEBUG_STRING: (name, val) => {
|
||||
// const fontSize = 16
|
||||
// const w = {
|
||||
// name,
|
||||
// type: 'debug_text',
|
||||
//
|
||||
// draw: function (ctx, node, widgetWidth, widgetY, height) {
|
||||
// // const [cw, ch] = this.computeSize(widgetWidth)
|
||||
// shared.offsetDOMWidget(this, ctx, node, widgetWidth, widgetY, height)
|
||||
// },
|
||||
// computeSize(width) {
|
||||
// if (!this.value) {
|
||||
// return [32, 32]
|
||||
// }
|
||||
// if (!width) {
|
||||
// console.debug(`No width ${this.parent.size}`)
|
||||
// }
|
||||
// let dimensions
|
||||
// withFont(app.ctx, `${fontSize}px monospace`, () => {
|
||||
// dimensions = calculateTextDimensions(app.ctx, this.value, width)
|
||||
// })
|
||||
// const widgetWidth = Math.max(
|
||||
// width || this.width || 32,
|
||||
// dimensions.maxLineWidth
|
||||
// )
|
||||
// const widgetHeight = dimensions.textHeight * 1.5
|
||||
// return [widgetWidth, widgetHeight]
|
||||
// },
|
||||
// onRemoved: function () {
|
||||
// if (this.inputEl) {
|
||||
// this.inputEl.remove()
|
||||
// }
|
||||
// },
|
||||
// get value() {
|
||||
// return this.inputEl.innerHTML
|
||||
// },
|
||||
// set value(val) {
|
||||
// this.inputEl.innerHTML = val
|
||||
// this.parent?.setSize?.(this.parent?.computeSize())
|
||||
// },
|
||||
// }
|
||||
//
|
||||
// w.inputEl = document.createElement('p')
|
||||
// w.inputEl.style = `
|
||||
// text-align: center;
|
||||
// font-size: ${fontSize}px;
|
||||
// color: var(--input-text);
|
||||
// line-height: 0;
|
||||
// font-family: monospace;
|
||||
// `
|
||||
// w.value = val
|
||||
// document.body.appendChild(w.inputEl)
|
||||
//
|
||||
// return w
|
||||
// },
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {import("./types/comfy").ComfyExtension} extension
|
||||
*/
|
||||
const DZ_widgets = {
|
||||
name: 'DZ.widgets',
|
||||
|
||||
init: async () => {
|
||||
log('Registering DZ.widgets')
|
||||
// try {
|
||||
// const res = await api.fetchApi('/DZ/debug')
|
||||
// const msg = await res.json()
|
||||
// if (!window.DZ) {
|
||||
// window.DZ = {}
|
||||
// }
|
||||
// window.DZ.DEBUG = msg.enabled
|
||||
// } catch (e) {
|
||||
// console.error('Error:', error)
|
||||
// }
|
||||
},
|
||||
|
||||
setup: () => {
|
||||
// app.ui.settings.addSetting({
|
||||
// id: 'DZ.Debug.enabled',
|
||||
// name: '[DZ] Enable Debug (py and js)',
|
||||
// type: 'boolean',
|
||||
// defaultValue: false,
|
||||
//
|
||||
// tooltip:
|
||||
// 'This will enable debug messages in the console and in the python console respectively',
|
||||
// attrs: {
|
||||
// style: {
|
||||
// fontFamily: 'monospace',
|
||||
// },
|
||||
// },
|
||||
// async onChange(value) {
|
||||
// if (value) {
|
||||
// console.log('Enabled DEBUG mode')
|
||||
// }
|
||||
// if (!window.DZ) {
|
||||
// window.DZ = {}
|
||||
// }
|
||||
// window.DZ.DEBUG = value
|
||||
// await api
|
||||
// .fetchApi('/DZ/debug', {
|
||||
// method: 'POST',
|
||||
// body: JSON.stringify({
|
||||
// enabled: value,
|
||||
// }),
|
||||
// })
|
||||
// .then((response) => {})
|
||||
// .catch((error) => {
|
||||
// console.error('Error:', error)
|
||||
// })
|
||||
// },
|
||||
// })
|
||||
},
|
||||
|
||||
getCustomWidgets: function () {
|
||||
return {
|
||||
BOOL: (node, inputName, inputData, app) => {
|
||||
console.debug('Registering bool')
|
||||
|
||||
return {
|
||||
widget: node.addCustomWidget(
|
||||
DZWidgets.BOOL(inputName, inputData[1]?.default || false)
|
||||
),
|
||||
minWidth: 150,
|
||||
minHeight: 30,
|
||||
}
|
||||
},
|
||||
|
||||
COLOR: (node, inputName, inputData, app) => {
|
||||
console.debug('Registering color')
|
||||
return {
|
||||
widget: node.addCustomWidget(
|
||||
DZWidgets.COLOR(inputName, inputData[1]?.default || '#ff0000')
|
||||
),
|
||||
minWidth: 150,
|
||||
minHeight: 30,
|
||||
}
|
||||
},
|
||||
// BBOX: (node, inputName, inputData, app) => {
|
||||
// console.debug("Registering bbox")
|
||||
// return {
|
||||
// widget: node.addCustomWidget(DZWidgets.BBOX(inputName, inputData[1]?.default || [0, 0, 0, 0])),
|
||||
// minWidth: 150,
|
||||
// minHeight: 30,
|
||||
// }
|
||||
|
||||
// }
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @param {import("./types/comfy").NodeType} nodeType
|
||||
* @param {import("./types/comfy").NodeDef} nodeData
|
||||
* @param {import("./types/comfy").App} app
|
||||
*/
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
// const rinputs = nodeData.input?.required
|
||||
|
||||
let has_custom = false
|
||||
if (nodeData.input && nodeData.input.required) {
|
||||
for (const i of Object.keys(nodeData.input.required)) {
|
||||
const input_type = nodeData.input.required[i][0]
|
||||
|
||||
if (newTypes.includes(input_type)) {
|
||||
has_custom = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if (has_custom) {
|
||||
//- Add widgets on node creation
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
this.serialize_widgets = true
|
||||
this.setSize?.(this.computeSize())
|
||||
|
||||
this.onRemoved = function () {
|
||||
// When removing this node we need to remove the input from the DOM
|
||||
shared.cleanupNode(this)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
//- Extra menus
|
||||
const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.getExtraMenuOptions = function (_, options) {
|
||||
const r = origGetExtraMenuOptions
|
||||
? origGetExtraMenuOptions.apply(this, arguments)
|
||||
: undefined
|
||||
if (this.widgets) {
|
||||
let toInput = []
|
||||
let toWidget = []
|
||||
for (const w of this.widgets) {
|
||||
if (w.type === shared.CONVERTED_TYPE) {
|
||||
//- This is already handled by widgetinputs.js
|
||||
// toWidget.push({
|
||||
// content: `Convert ${w.name} to widget`,
|
||||
// callback: () => shared.convertToWidget(this, w),
|
||||
// });
|
||||
} else if (newTypes.includes(w.type)) {
|
||||
const config = nodeData?.input?.required[w.name] ||
|
||||
nodeData?.input?.optional?.[w.name] || [w.type, w.options || {}]
|
||||
|
||||
toInput.push({
|
||||
content: `Convert ${w.name} to input`,
|
||||
callback: () => shared.convertToInput(this, w, config),
|
||||
})
|
||||
}
|
||||
}
|
||||
if (toInput.length) {
|
||||
options.push(...toInput, null)
|
||||
}
|
||||
|
||||
if (toWidget.length) {
|
||||
options.push(...toWidget, null)
|
||||
}
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
}
|
||||
|
||||
//- Extending Python Nodes
|
||||
switch (nodeData.name) {
|
||||
case 'Psd Save (DZ)': {
|
||||
const onConnectionsChange = nodeType.prototype.onConnectionsChange
|
||||
nodeType.prototype.onConnectionsChange = function (
|
||||
type,
|
||||
index,
|
||||
connected,
|
||||
link_info
|
||||
) {
|
||||
const r = onConnectionsChange
|
||||
? onConnectionsChange.apply(this, arguments)
|
||||
: undefined
|
||||
shared.dynamic_connection(this, index, connected)
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
//TODO: remove this non sense
|
||||
case 'Get Batch From History (DZ)': {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
const internal_count = this.widgets.find(
|
||||
(w) => w.name === 'internal_count'
|
||||
)
|
||||
shared.hideWidgetForGood(this, internal_count)
|
||||
internal_count.afterQueued = function () {
|
||||
this.value++
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
const onExecuted = nodeType.prototype.onExecuted
|
||||
nodeType.prototype.onExecuted = function (message) {
|
||||
const r = onExecuted ? onExecuted.apply(this, message) : undefined
|
||||
return r
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Save Gif (DZ)':
|
||||
case 'Save Animated Image (DZ)': {
|
||||
const onExecuted = nodeType.prototype.onExecuted
|
||||
nodeType.prototype.onExecuted = function (message) {
|
||||
const prefix = 'anything_'
|
||||
const r = onExecuted ? onExecuted.apply(this, message) : undefined
|
||||
|
||||
if (this.widgets) {
|
||||
const pos = this.widgets.findIndex((w) => w.name === `${prefix}_0`)
|
||||
if (pos !== -1) {
|
||||
for (let i = pos; i < this.widgets.length; i++) {
|
||||
this.widgets[i].onRemoved?.()
|
||||
}
|
||||
this.widgets.length = pos
|
||||
}
|
||||
|
||||
let imgURLs = []
|
||||
if (message) {
|
||||
if (message.gif) {
|
||||
imgURLs = imgURLs.concat(
|
||||
message.gif.map((params) => {
|
||||
return api.apiURL(
|
||||
'/view?' + new URLSearchParams(params).toString()
|
||||
)
|
||||
})
|
||||
)
|
||||
}
|
||||
if (message.apng) {
|
||||
imgURLs = imgURLs.concat(
|
||||
message.apng.map((params) => {
|
||||
return api.apiURL(
|
||||
'/view?' + new URLSearchParams(params).toString()
|
||||
)
|
||||
})
|
||||
)
|
||||
}
|
||||
let i = 0
|
||||
// for (const img of imgURLs) {
|
||||
// const w = this.addCustomWidget(
|
||||
// DZWidgets.DEBUG_IMG(`${prefix}_${i}`, img)
|
||||
// )
|
||||
// w.parent = this
|
||||
// i++
|
||||
// }
|
||||
}
|
||||
const onRemoved = this.onRemoved
|
||||
this.onRemoved = () => {
|
||||
shared.cleanupNode(this)
|
||||
return onRemoved?.()
|
||||
}
|
||||
}
|
||||
this.setSize?.(this.computeSize())
|
||||
return r
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Animation Builder (DZ)': {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
|
||||
this.changeMode(LiteGraph.ALWAYS)
|
||||
|
||||
const raw_iteration = this.widgets.find(
|
||||
(w) => w.name === 'raw_iteration'
|
||||
)
|
||||
const raw_loop = this.widgets.find((w) => w.name === 'raw_loop')
|
||||
|
||||
const total_frames = this.widgets.find(
|
||||
(w) => w.name === 'total_frames'
|
||||
)
|
||||
const loop_count = this.widgets.find((w) => w.name === 'loop_count')
|
||||
|
||||
shared.hideWidgetForGood(this, raw_iteration)
|
||||
shared.hideWidgetForGood(this, raw_loop)
|
||||
|
||||
raw_iteration._value = 0
|
||||
|
||||
// const value_preview = this.addCustomWidget(
|
||||
// DZWidgets['DEBUG_STRING']('value_preview', 'Idle')
|
||||
// )
|
||||
// value_preview.parent = this
|
||||
|
||||
// const loop_preview = this.addCustomWidget(
|
||||
// DZWidgets['DEBUG_STRING']('loop_preview', 'Iteration: Idle')
|
||||
// )
|
||||
// loop_preview.parent = this
|
||||
|
||||
const onReset = () => {
|
||||
raw_iteration.value = 0
|
||||
raw_loop.value = 0
|
||||
|
||||
value_preview.value = 'Idle'
|
||||
loop_preview.value = 'Iteration: Idle'
|
||||
|
||||
app.canvas.setDirty(true)
|
||||
}
|
||||
|
||||
const reset_button = this.addWidget(
|
||||
'button',
|
||||
`Reset`,
|
||||
'reset',
|
||||
onReset
|
||||
)
|
||||
|
||||
const run_button = this.addWidget('button', `Queue`, 'queue', () => {
|
||||
onReset() // this could maybe be a setting or checkbox
|
||||
app.queuePrompt(0, total_frames.value * loop_count.value)
|
||||
window.DZ?.notify?.(
|
||||
`Started a queue of ${total_frames.value} frames (for ${
|
||||
loop_count.value
|
||||
} loop, so ${total_frames.value * loop_count.value})`,
|
||||
5000
|
||||
)
|
||||
})
|
||||
|
||||
this.onRemoved = () => {
|
||||
shared.cleanupNode(this)
|
||||
app.canvas.setDirty(true)
|
||||
}
|
||||
|
||||
raw_iteration.afterQueued = function () {
|
||||
this.value++
|
||||
raw_loop.value = Math.floor(this.value / total_frames.value)
|
||||
|
||||
value_preview.value = `frame: ${
|
||||
raw_iteration.value % total_frames.value
|
||||
} / ${total_frames.value - 1}`
|
||||
|
||||
if (raw_loop.value + 1 > loop_count.value) {
|
||||
loop_preview.value = 'Done 😎!'
|
||||
} else {
|
||||
loop_preview.value = `current loop: ${raw_loop.value + 1}/${
|
||||
loop_count.value
|
||||
}`
|
||||
}
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Text Encore Frames (DZ)': {
|
||||
const onConnectionsChange = nodeType.prototype.onConnectionsChange
|
||||
nodeType.prototype.onConnectionsChange = function (
|
||||
type,
|
||||
index,
|
||||
connected,
|
||||
link_info
|
||||
) {
|
||||
const r = onConnectionsChange
|
||||
? onConnectionsChange.apply(this, arguments)
|
||||
: undefined
|
||||
|
||||
shared.dynamic_connection(this, index, connected)
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
case 'Interpolate Clip Sequential (DZ)': {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined
|
||||
const addReplacement = () => {
|
||||
const input = this.addInput(
|
||||
`replacement_${this.widgets.length}`,
|
||||
'STRING',
|
||||
''
|
||||
)
|
||||
console.log(input)
|
||||
this.addWidget('STRING', `replacement_${this.widgets.length}`, '')
|
||||
}
|
||||
//- add
|
||||
this.addWidget('button', '+', 'add', function (value, widget, node) {
|
||||
console.log('Button clicked', value, widget, node)
|
||||
addReplacement()
|
||||
})
|
||||
//- remove
|
||||
this.addWidget(
|
||||
'button',
|
||||
'-',
|
||||
'remove',
|
||||
function (value, widget, node) {
|
||||
console.log(`Button clicked: ${value}`, widget, node)
|
||||
}
|
||||
)
|
||||
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
case 'Styles Loader (DZ)': {
|
||||
const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions
|
||||
nodeType.prototype.getExtraMenuOptions = function (_, options) {
|
||||
const r = origGetExtraMenuOptions
|
||||
? origGetExtraMenuOptions.apply(this, arguments)
|
||||
: undefined
|
||||
|
||||
const getStyle = async (node) => {
|
||||
try {
|
||||
const getStyles = await api.fetchApi('/DZ/actions', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
name: 'getStyles',
|
||||
args:
|
||||
node.widgets && node.widgets[0].value
|
||||
? node.widgets[0].value
|
||||
: '',
|
||||
}),
|
||||
})
|
||||
|
||||
const output = await getStyles.json()
|
||||
return output?.result
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
const extracters = [
|
||||
{
|
||||
content: 'Extract Positive to Text node',
|
||||
callback: async () => {
|
||||
const style = await getStyle(this)
|
||||
if (style && style.length >= 1) {
|
||||
if (style[0]) {
|
||||
window.DZ?.notify?.(
|
||||
`Extracted positive from ${this.widgets[0].value}`
|
||||
)
|
||||
const tn = LiteGraph.createNode('Text box')
|
||||
app.graph.add(tn)
|
||||
tn.title = `${this.widgets[0].value} (Positive)`
|
||||
tn.widgets[0].value = style[0]
|
||||
} else {
|
||||
window.DZ?.notify?.(
|
||||
`No positive to extract for ${this.widgets[0].value}`
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
content: 'Extract Negative to Text node',
|
||||
callback: async () => {
|
||||
const style = await getStyle(this)
|
||||
if (style && style.length >= 2) {
|
||||
if (style[1]) {
|
||||
window.DZ?.notify?.(
|
||||
`Extracted negative from ${this.widgets[0].value}`
|
||||
)
|
||||
const tn = LiteGraph.createNode('Text box')
|
||||
app.graph.add(tn)
|
||||
tn.title = `${this.widgets[0].value} (Negative)`
|
||||
tn.widgets[0].value = style[1]
|
||||
} else {
|
||||
window.DZ.notify(
|
||||
`No negative to extract for ${this.widgets[0].value}`
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
]
|
||||
options.push(...extracters)
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Save Tensors (DZ)': {
|
||||
const onDrawBackground = nodeType.prototype.onDrawBackground
|
||||
nodeType.prototype.onDrawBackground = function (ctx, canvas) {
|
||||
const r = onDrawBackground
|
||||
? onDrawBackground.apply(this, arguments)
|
||||
: undefined
|
||||
// // draw a circle on the top right of the node, with text inside
|
||||
// ctx.fillStyle = "#fff";
|
||||
// ctx.beginPath();
|
||||
// ctx.arc(this.size[0] - this.node_width * 0.5, this.size[1] - this.node_height * 0.5, this.node_width * 0.5, 0, Math.PI * 2);
|
||||
// ctx.fill();
|
||||
|
||||
// ctx.fillStyle = "#000";
|
||||
// ctx.textAlign = "center";
|
||||
// ctx.font = "bold 12px Arial";
|
||||
// ctx.fillText("Save Tensors", this.size[0] - this.node_width * 0.5, this.size[1] - this.node_height * 0.5);
|
||||
|
||||
return r
|
||||
}
|
||||
break
|
||||
}
|
||||
default: {
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
app.registerExtension(DZ_widgets)
|
||||
@@ -0,0 +1,42 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
|
||||
app.registerExtension({
|
||||
name: "ColorOverlay",
|
||||
async nodeCreated(node) {
|
||||
// 判断是否为layer节点
|
||||
if(!node.comfyClass.startsWith("Layer")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerStyle:")) {
|
||||
node.color = "rgba(20, 95, 121, 0.7)";
|
||||
// node.bgcolor = "rgba(50, 241, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerColor:")) {
|
||||
node.color = "rgba(27, 89, 123, 0.7)";
|
||||
// node.bgcolor = "rgba(43, 209, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerMask:")) {
|
||||
node.color = "rgba(27, 80, 119, 0.7)";
|
||||
// node.bgcolor = "rgba(4, 174, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerUtility:")) {
|
||||
node.color = "rgba(38, 73, 116, 0.7)";
|
||||
// node.bgcolor = "rgba(23, 113, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerFilter:")) {
|
||||
node.color = "rgba(34, 67, 111, 0.7)";
|
||||
// node.bgcolor = "rgba(19, 85, 255, 0.15)";
|
||||
}
|
||||
|
||||
|
||||
// if(node.comfyClass === "LayerStyle: ColorOverlay"){
|
||||
// node.setSize([600, 120]);
|
||||
// }
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,362 @@
|
||||
|
||||
// #region patterns
|
||||
const float = '-?\\d*(?:\\.\\d+)';
|
||||
export const number = `(${float}?)`;
|
||||
export const percentage = `(${float}?%)`;
|
||||
export const numberOrPercentage = `(${float}?%?)`;
|
||||
const clamp = (num, min, max) => Math.min(Math.max(min, num), max);
|
||||
|
||||
const hexCharacters = 'a-f\\d';
|
||||
const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
|
||||
const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
|
||||
const nonHexChars = new RegExp(`[^#${hexCharacters}]`, 'gi');
|
||||
const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, 'i');
|
||||
|
||||
|
||||
export const hex_pattern = new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/, "i");
|
||||
|
||||
export const hsl3_pattern = new RegExp(`^
|
||||
hsla?\\(
|
||||
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
|
||||
\\s*${percentage}\\s*,
|
||||
\\s*${percentage}\\s*
|
||||
(?:,\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''))
|
||||
|
||||
export const hsl4_pattern = new RegExp(`^
|
||||
hsla?\\(
|
||||
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
|
||||
\\s+${percentage}
|
||||
\\s+${percentage}
|
||||
\\s*(?:\\s*\\/\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''))
|
||||
|
||||
export const rgb3_pattern = new RegExp(`^
|
||||
rgba?\\(
|
||||
\\s*${number}\\s*,
|
||||
\\s*${number}\\s*,
|
||||
\\s*${number}\\s*
|
||||
(?:,\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''))
|
||||
|
||||
export const rgb4_pattern = new RegExp(`^
|
||||
rgba?\\(
|
||||
\\s*${number}
|
||||
\\s+${number}
|
||||
\\s+${number}
|
||||
\\s*(?:\\s*\\/\\s*${numberOrPercentage}\\s*)?
|
||||
\\)
|
||||
$
|
||||
`.replace(/\n|\s/g, ''));
|
||||
|
||||
export const transparent_pattern = new RegExp(/^transparent$/, 'i');
|
||||
// #endregion
|
||||
|
||||
|
||||
// #region utils
|
||||
|
||||
|
||||
/* 500 => 255, -10 => 0, 128 => 128 */
|
||||
const parseRGB = (num) => {
|
||||
let n = num;
|
||||
if (typeof n !== 'number') {
|
||||
n = n.endsWith('%') ? (parseFloat(n) * 255) / 100 : parseFloat(n);
|
||||
}
|
||||
return clamp(Math.round(n), 0, 255);
|
||||
};
|
||||
|
||||
/* 200 => 100, -100 => 0, 50 => 50 */
|
||||
const parsePercentage = (percentage) => clamp(parseFloat(percentage), 0, 100);
|
||||
|
||||
/* '50%' => 5.0, 200 => 1, -10 => 0 */
|
||||
function parseAlpha(alpha) {
|
||||
let a = alpha;
|
||||
if (typeof a !== 'number') {
|
||||
a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
|
||||
}
|
||||
return clamp(a, 0, 1);
|
||||
}
|
||||
|
||||
export function getHEX(hex) {
|
||||
const [r, g, b, a] = hex2Rgb(hex, { format: 'array' });
|
||||
return getRGB([null, ...[r, g, b, a]]);
|
||||
}
|
||||
|
||||
export function getHSL([, h, s, l, a = 1]) {
|
||||
let hh = h;
|
||||
if (hh.endsWith('turn')) {
|
||||
hh = (parseFloat(hh) * 360) / 1;
|
||||
} else if (hh.endsWith('rad')) {
|
||||
hh = Math.round((parseFloat(hh) * 180) / Math.PI);
|
||||
} else {
|
||||
hh = parseFloat(hh);
|
||||
}
|
||||
return {
|
||||
type: 'hsl',
|
||||
values: [hh, parsePercentage(s), parsePercentage(l)],
|
||||
alpha: parseAlpha(a === null ? 1 : a)
|
||||
};
|
||||
}
|
||||
|
||||
export function getRGB([, r, g, b, a = 1]) {
|
||||
return {
|
||||
type: 'rgb',
|
||||
values: [r, g, b].map(parseRGB),
|
||||
alpha: parseAlpha(a === null ? 1 : a)
|
||||
};
|
||||
}
|
||||
export function hex2Rgb(hex, options = {}) {
|
||||
if (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {
|
||||
throw new TypeError('Expected a valid hex string');
|
||||
}
|
||||
|
||||
hex = hex.replace(/^#/, '');
|
||||
let alphaFromHex = 1;
|
||||
|
||||
if (hex.length === 8) {
|
||||
alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
|
||||
hex = hex.slice(0, 6);
|
||||
}
|
||||
|
||||
if (hex.length === 4) {
|
||||
alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
|
||||
hex = hex.slice(0, 3);
|
||||
}
|
||||
|
||||
if (hex.length === 3) {
|
||||
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
|
||||
}
|
||||
|
||||
const number = Number.parseInt(hex, 16);
|
||||
const red = number >> 16;
|
||||
const green = (number >> 8) & 255;
|
||||
const blue = number & 255;
|
||||
const alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
|
||||
|
||||
if (options.format === 'array') {
|
||||
return [red, green, blue, alpha];
|
||||
}
|
||||
|
||||
if (options.format === 'css') {
|
||||
const alphaString = alpha === 1 ? '' : ` / ${Number((alpha * 100).toFixed(2))}%`;
|
||||
return `rgb(${red} ${green} ${blue}${alphaString})`;
|
||||
}
|
||||
|
||||
return {red, green, blue, alpha};
|
||||
}
|
||||
// #endregion
|
||||
|
||||
|
||||
// #region colorNames
|
||||
export const colorName = {
|
||||
aliceblue: [240, 248, 255],
|
||||
antiquewhite: [250, 235, 215],
|
||||
aqua: [0, 255, 255],
|
||||
aquamarine: [127, 255, 212],
|
||||
azure: [240, 255, 255],
|
||||
beige: [245, 245, 220],
|
||||
bisque: [255, 228, 196],
|
||||
black: [0, 0, 0],
|
||||
blanchedalmond: [255, 235, 205],
|
||||
blue: [0, 0, 255],
|
||||
blueviolet: [138, 43, 226],
|
||||
brown: [165, 42, 42],
|
||||
burlywood: [222, 184, 135],
|
||||
cadetblue: [95, 158, 160],
|
||||
chartreuse: [127, 255, 0],
|
||||
chocolate: [210, 105, 30],
|
||||
coral: [255, 127, 80],
|
||||
cornflowerblue: [100, 149, 237],
|
||||
cornsilk: [255, 248, 220],
|
||||
crimson: [220, 20, 60],
|
||||
cyan: [0, 255, 255],
|
||||
darkblue: [0, 0, 139],
|
||||
darkcyan: [0, 139, 139],
|
||||
darkgoldenrod: [184, 134, 11],
|
||||
darkgray: [169, 169, 169],
|
||||
darkgreen: [0, 100, 0],
|
||||
darkgrey: [169, 169, 169],
|
||||
darkkhaki: [189, 183, 107],
|
||||
darkmagenta: [139, 0, 139],
|
||||
darkolivegreen: [85, 107, 47],
|
||||
darkorange: [255, 140, 0],
|
||||
darkorchid: [153, 50, 204],
|
||||
darkred: [139, 0, 0],
|
||||
darksalmon: [233, 150, 122],
|
||||
darkseagreen: [143, 188, 143],
|
||||
darkslateblue: [72, 61, 139],
|
||||
darkslategray: [47, 79, 79],
|
||||
darkslategrey: [47, 79, 79],
|
||||
darkturquoise: [0, 206, 209],
|
||||
darkviolet: [148, 0, 211],
|
||||
deeppink: [255, 20, 147],
|
||||
deepskyblue: [0, 191, 255],
|
||||
dimgray: [105, 105, 105],
|
||||
dimgrey: [105, 105, 105],
|
||||
dodgerblue: [30, 144, 255],
|
||||
firebrick: [178, 34, 34],
|
||||
floralwhite: [255, 250, 240],
|
||||
forestgreen: [34, 139, 34],
|
||||
fuchsia: [255, 0, 255],
|
||||
gainsboro: [220, 220, 220],
|
||||
ghostwhite: [248, 248, 255],
|
||||
gold: [255, 215, 0],
|
||||
goldenrod: [218, 165, 32],
|
||||
gray: [128, 128, 128],
|
||||
green: [0, 128, 0],
|
||||
greenyellow: [173, 255, 47],
|
||||
grey: [128, 128, 128],
|
||||
honeydew: [240, 255, 240],
|
||||
hotpink: [255, 105, 180],
|
||||
indianred: [205, 92, 92],
|
||||
indigo: [75, 0, 130],
|
||||
ivory: [255, 255, 240],
|
||||
khaki: [240, 230, 140],
|
||||
lavender: [230, 230, 250],
|
||||
lavenderblush: [255, 240, 245],
|
||||
lawngreen: [124, 252, 0],
|
||||
lemonchiffon: [255, 250, 205],
|
||||
lightblue: [173, 216, 230],
|
||||
lightcoral: [240, 128, 128],
|
||||
lightcyan: [224, 255, 255],
|
||||
lightgoldenrodyellow: [250, 250, 210],
|
||||
lightgray: [211, 211, 211],
|
||||
lightgreen: [144, 238, 144],
|
||||
lightgrey: [211, 211, 211],
|
||||
lightpink: [255, 182, 193],
|
||||
lightsalmon: [255, 160, 122],
|
||||
lightseagreen: [32, 178, 170],
|
||||
lightskyblue: [135, 206, 250],
|
||||
lightslategray: [119, 136, 153],
|
||||
lightslategrey: [119, 136, 153],
|
||||
lightsteelblue: [176, 196, 222],
|
||||
lightyellow: [255, 255, 224],
|
||||
lime: [0, 255, 0],
|
||||
limegreen: [50, 205, 50],
|
||||
linen: [250, 240, 230],
|
||||
magenta: [255, 0, 255],
|
||||
maroon: [128, 0, 0],
|
||||
mediumaquamarine: [102, 205, 170],
|
||||
mediumblue: [0, 0, 205],
|
||||
mediumorchid: [186, 85, 211],
|
||||
mediumpurple: [147, 112, 219],
|
||||
mediumseagreen: [60, 179, 113],
|
||||
mediumslateblue: [123, 104, 238],
|
||||
mediumspringgreen: [0, 250, 154],
|
||||
mediumturquoise: [72, 209, 204],
|
||||
mediumvioletred: [199, 21, 133],
|
||||
midnightblue: [25, 25, 112],
|
||||
mintcream: [245, 255, 250],
|
||||
mistyrose: [255, 228, 225],
|
||||
moccasin: [255, 228, 181],
|
||||
navajowhite: [255, 222, 173],
|
||||
navy: [0, 0, 128],
|
||||
oldlace: [253, 245, 230],
|
||||
olive: [128, 128, 0],
|
||||
olivedrab: [107, 142, 35],
|
||||
orange: [255, 165, 0],
|
||||
orangered: [255, 69, 0],
|
||||
orchid: [218, 112, 214],
|
||||
palegoldenrod: [238, 232, 170],
|
||||
palegreen: [152, 251, 152],
|
||||
paleturquoise: [175, 238, 238],
|
||||
palevioletred: [219, 112, 147],
|
||||
papayawhip: [255, 239, 213],
|
||||
peachpuff: [255, 218, 185],
|
||||
peru: [205, 133, 63],
|
||||
pink: [255, 192, 203],
|
||||
plum: [221, 160, 221],
|
||||
powderblue: [176, 224, 230],
|
||||
purple: [128, 0, 128],
|
||||
rebeccapurple: [102, 51, 153],
|
||||
red: [255, 0, 0],
|
||||
rosybrown: [188, 143, 143],
|
||||
royalblue: [65, 105, 225],
|
||||
saddlebrown: [139, 69, 19],
|
||||
salmon: [250, 128, 114],
|
||||
sandybrown: [244, 164, 96],
|
||||
seagreen: [46, 139, 87],
|
||||
seashell: [255, 245, 238],
|
||||
sienna: [160, 82, 45],
|
||||
silver: [192, 192, 192],
|
||||
skyblue: [135, 206, 235],
|
||||
slateblue: [106, 90, 205],
|
||||
slategray: [112, 128, 144],
|
||||
slategrey: [112, 128, 144],
|
||||
snow: [255, 250, 250],
|
||||
springgreen: [0, 255, 127],
|
||||
steelblue: [70, 130, 180],
|
||||
tan: [210, 180, 140],
|
||||
teal: [0, 128, 128],
|
||||
thistle: [216, 191, 216],
|
||||
tomato: [255, 99, 71],
|
||||
turquoise: [64, 224, 208],
|
||||
violet: [238, 130, 238],
|
||||
wheat: [245, 222, 179],
|
||||
white: [255, 255, 255],
|
||||
whitesmoke: [245, 245, 245],
|
||||
yellow: [255, 255, 0],
|
||||
yellowgreen: [154, 205, 50]
|
||||
}
|
||||
// #endregion
|
||||
|
||||
|
||||
export const parseCSSColor = (str, debug=false) => {
|
||||
if (typeof str !== 'string') {
|
||||
console.error(`parseCSSColor: expected a string found ${typeof str}`,str);
|
||||
return null;
|
||||
}
|
||||
|
||||
const hex = hex_pattern.exec(str);
|
||||
if (hex) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: hex', hex);
|
||||
}
|
||||
return getHEX(hex[0]);
|
||||
}
|
||||
|
||||
const hsl = hsl4_pattern.exec(str) || hsl3_pattern.exec(str);
|
||||
if (hsl) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: hsl', hsl);
|
||||
}
|
||||
return getHSL(hsl);
|
||||
}
|
||||
|
||||
const rgb =
|
||||
rgb4_pattern.exec(str) ||
|
||||
rgb3_pattern.exec(str)
|
||||
if (rgb) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: rgb', rgb);
|
||||
}
|
||||
return getRGB(rgb);
|
||||
}
|
||||
|
||||
if (transparent_pattern.exec(str)) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: transparent');
|
||||
}
|
||||
return getRGB([null, 0, 0, 0, 0]);
|
||||
}
|
||||
|
||||
const cn = colorName[str.toLowerCase()];
|
||||
if (cn) {
|
||||
if (debug){
|
||||
console.debug('parseCSSColor: colorName', cn);
|
||||
}
|
||||
return getRGB([null, cn[0], cn[1], cn[2], 1]);
|
||||
}
|
||||
|
||||
console.error('parseCSSColor: unknown color', str);
|
||||
return null;
|
||||
};
|
||||
|
||||
export default parseCSSColor;
|
||||
|
||||
@@ -0,0 +1,224 @@
|
||||
import torch
|
||||
from PIL import Image, ImageFont, ImageDraw
|
||||
from .imagefunc import log, tensor2pil, pil2tensor, gaussian_blur, adjust_levels, get_resource_dir
|
||||
|
||||
class ImageReelPipeline:
|
||||
def __init__(self):
|
||||
self.image = None
|
||||
self.texts = {}
|
||||
self.reel_height = 0
|
||||
self.reel_border = 0
|
||||
|
||||
Reel = ImageReelPipeline()
|
||||
class ImageReel:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageReel'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
return {
|
||||
"required": {
|
||||
"image1": ("IMAGE",),
|
||||
"image1_text": ("STRING", {"multiline": False, "default": "image1"}),
|
||||
"image2_text": ("STRING", {"multiline": False, "default": "image2"}),
|
||||
"image3_text": ("STRING", {"multiline": False, "default": "image3"}),
|
||||
"image4_text": ("STRING", {"multiline": False, "default": "image4"}),
|
||||
"reel_height": ("INT", {"default": 512, "min": 64, "max": 2048}),
|
||||
"border": ("INT", {"default": 32, "min": 8, "max": 512}),
|
||||
},
|
||||
"optional": {
|
||||
"image2": ("IMAGE",),
|
||||
"image3": ("IMAGE",),
|
||||
"image4": ("IMAGE",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("Reel",)
|
||||
RETURN_NAMES = ("reel",)
|
||||
FUNCTION = 'image_reel'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_reel(self, image1, image1_text, image2_text, image3_text, image4_text,
|
||||
reel_height, border,
|
||||
image2=None, image3=None, image4=None,):
|
||||
|
||||
image_list = []
|
||||
texts = []
|
||||
for img in image1:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image1_text,i.width])
|
||||
if image2 is not None:
|
||||
for img in image2:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image2_text,i.width])
|
||||
if image3 is not None:
|
||||
for img in image3:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image3_text,i.width])
|
||||
if image4 is not None:
|
||||
for img in image4:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image4_text,i.width])
|
||||
|
||||
reel = ImageReel()
|
||||
reel.image = self.draw_reel_image(image_list, border, reel_height)
|
||||
reel.texts = texts
|
||||
reel.reel_height = reel_height
|
||||
reel.reel_border = border
|
||||
return (reel,)
|
||||
|
||||
def resize_image_to_height(self, image, target_height) -> Image:
|
||||
w = int(target_height / image.height * image.width)
|
||||
return image.resize((w, target_height), Image.LANCZOS)
|
||||
|
||||
def draw_reel_image(self, image_list, border, reel_height) -> Image:
|
||||
reel_width = 0
|
||||
for img in image_list:
|
||||
reel_width += img.width + border
|
||||
reel_img = Image.new('RGBA', (reel_width, reel_height + border), color=(0, 0, 0, 0))
|
||||
#paste images
|
||||
w = border // 2
|
||||
for img in image_list:
|
||||
reel_img.paste(img, (w, border // 2))
|
||||
w += img.width + border
|
||||
return reel_img
|
||||
|
||||
|
||||
class ImageReelComposit:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageReelComposit'
|
||||
(_, self.FONT_DICT) = get_resource_dir()
|
||||
self.FONT_LIST = list(self.FONT_DICT.keys())
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
(LUT_DICT, FONT_DICT) = get_resource_dir()
|
||||
FONT_LIST = list(FONT_DICT.keys())
|
||||
LUT_LIST = list(LUT_DICT.keys())
|
||||
|
||||
color_theme_list = ['light', 'dark']
|
||||
return {
|
||||
"required": {
|
||||
"reel_1": ("Reel",),
|
||||
"font_file": (FONT_LIST,),
|
||||
"font_size": ("INT", {"default": 40, "min": 4, "max": 1024}),
|
||||
"border": ("INT", {"default": 32, "min": 8, "max": 512}),
|
||||
"color_theme": (color_theme_list,),
|
||||
},
|
||||
"optional": {
|
||||
"reel_2": ("Reel",),
|
||||
"reel_3": ("Reel",),
|
||||
"reel_4": ("Reel",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
RETURN_NAMES = ("image1",)
|
||||
FUNCTION = 'image_reel_composit'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_reel_composit(self, reel_1, font_file, font_size, border, color_theme, reel_2=None, reel_3=None, reel_4=None,):
|
||||
|
||||
|
||||
ret_images = []
|
||||
|
||||
if color_theme == 'light':
|
||||
bg_color = "#E5E5E5"
|
||||
text_color = "#121212"
|
||||
else:
|
||||
bg_color = "#121212"
|
||||
text_color = "#E5E5E5"
|
||||
|
||||
|
||||
font_space = int(font_size * 1.5)
|
||||
width = reel_1.image.width
|
||||
height = reel_1.image.height + font_space + border
|
||||
if reel_2 is not None:
|
||||
width = max(width, reel_2.image.width)
|
||||
height += reel_2.image.height + font_space + border
|
||||
if reel_3 is not None:
|
||||
width = max(width, reel_3.image.width)
|
||||
height += reel_3.image.height + font_space + border
|
||||
if reel_4 is not None:
|
||||
width = max(width, reel_4.image.width)
|
||||
height += reel_4.image.height + font_space + border
|
||||
|
||||
ret_image = Image.new('RGB', (width, height), color=bg_color)
|
||||
paste_y = 0
|
||||
reel1_text_image = self.draw_reel_text(reel_1, font_file, font_size, text_color)
|
||||
shadow_size = reel_1.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_1.image, reel1_text_image, ((width - reel_1.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
|
||||
paste_y += reel_1.image.height + font_space + border
|
||||
if reel_2 is not None:
|
||||
reel2_text_image = self.draw_reel_text(reel_2, font_file, font_size, text_color)
|
||||
shadow_size = reel_2.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_2.image, reel2_text_image, ((width - reel_2.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
paste_y += reel_2.image.height + font_space + border
|
||||
if reel_3 is not None:
|
||||
reel3_text_image = self.draw_reel_text(reel_3, font_file, font_size, text_color)
|
||||
shadow_size = reel_3.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_3.image, reel3_text_image,((width - reel_3.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
paste_y += reel_3.image.height + font_space + border
|
||||
if reel_4 is not None:
|
||||
reel4_text_image = self.draw_reel_text(reel_4, font_file, font_size, text_color)
|
||||
shadow_size = reel_4.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_4.image, reel4_text_image,((width - reel_4.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
|
||||
ret_images.append(pil2tensor(ret_image))
|
||||
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0),)
|
||||
|
||||
def paste_drop_shadow(self, background_image, image, text_image, box, shadow_size, text_color) -> Image:
|
||||
# drop shadow
|
||||
_mask = image.split()[3]
|
||||
_blured_mask = gaussian_blur(_mask, shadow_size//1.3)
|
||||
_blured_mask = adjust_levels(_blured_mask, 0, 255, 0.5, 0, output_white=54).convert('L')
|
||||
background_image.paste(Image.new('RGBA', image.size, color="black"), (box[0]+shadow_size, box[1]+shadow_size), mask=_blured_mask)
|
||||
background_image.paste(image, box, mask=_mask)
|
||||
background_image.paste(Image.new('RGB', text_image.size, color=text_color), (box[0], box[1] + image.height), mask=text_image.split()[3])
|
||||
return background_image
|
||||
|
||||
def draw_reel_text(self, reel, font_file, font_size, text_color) -> Image:
|
||||
|
||||
font_path = self.FONT_DICT.get(font_file)
|
||||
font = ImageFont.truetype(font_path, font_size)
|
||||
texts = reel.texts
|
||||
text_image = Image.new('RGBA', (reel.image.width, reel.reel_border + int(font_size * 1.5)), color=(0, 0, 0, 0))
|
||||
draw = ImageDraw.Draw(text_image)
|
||||
x = reel.reel_border
|
||||
for t in texts:
|
||||
text = t[0]
|
||||
width = t[1]
|
||||
text_width = font.getbbox(text)[2]
|
||||
draw.text(
|
||||
xy=(x + width // 2 - text_width//2, reel.reel_border//4),
|
||||
text=text,
|
||||
fill=text_color,
|
||||
font=font,
|
||||
)
|
||||
x += width + reel.reel_border
|
||||
return text_image
|
||||
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageReel": ImageReel,
|
||||
"LayerUtility: ImageReelComposit": ImageReelComposit
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageReel": "LayerUtility: Image Reel",
|
||||
"LayerUtility: ImageReelComposit": "LayerUtility: Image Reel Composit"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
[project]
|
||||
name = "comfyui_layerstyle"
|
||||
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
|
||||
version = "2.0.26"
|
||||
license = {text = "MIT License"}
|
||||
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "scikit_learn", "opencv-contrib-python", "pymatting", "timm", "colour-science", "transformers", "blend_modes", "huggingface_hub", "loguru"]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/chflame163/ComfyUI_LayerStyle"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "chflame163"
|
||||
DisplayName = "ComfyUI_LayerStyle"
|
||||
Icon = ""
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,150 @@
|
||||
# Internal infrastructure for ComfyAPI
|
||||
from .api_registry import (
|
||||
ComfyAPIBase as ComfyAPIBase,
|
||||
ComfyAPIWithVersion as ComfyAPIWithVersion,
|
||||
register_versions as register_versions,
|
||||
get_all_versions as get_all_versions,
|
||||
)
|
||||
|
||||
import asyncio
|
||||
from dataclasses import asdict
|
||||
from typing import Callable, Optional
|
||||
|
||||
|
||||
def first_real_override(cls: type, name: str, *, base: type=None) -> Optional[Callable]:
|
||||
"""Return the *callable* override of `name` visible on `cls`, or None if every
|
||||
implementation up to (and including) `base` is the placeholder defined on `base`.
|
||||
|
||||
If base is not provided, it will assume cls has a GET_BASE_CLASS
|
||||
"""
|
||||
if base is None:
|
||||
if not hasattr(cls, "GET_BASE_CLASS"):
|
||||
raise ValueError("base is required if cls does not have a GET_BASE_CLASS; is this a valid ComfyNode subclass?")
|
||||
base = cls.GET_BASE_CLASS()
|
||||
base_attr = getattr(base, name, None)
|
||||
if base_attr is None:
|
||||
return None
|
||||
base_func = base_attr.__func__
|
||||
for c in cls.mro(): # NodeB, NodeA, ComfyNode, object …
|
||||
if c is base: # reached the placeholder – we're done
|
||||
break
|
||||
if name in c.__dict__: # first class that *defines* the attr
|
||||
func = getattr(c, name).__func__
|
||||
if func is not base_func: # real override
|
||||
return getattr(cls, name) # bound to *cls*
|
||||
return None
|
||||
|
||||
|
||||
class _ComfyNodeInternal:
|
||||
"""Class that all V3-based APIs inherit from for ComfyNode.
|
||||
|
||||
This is intended to only be referenced within execution.py, as it has to handle all V3 APIs going forward."""
|
||||
@classmethod
|
||||
def GET_NODE_INFO_V1(cls):
|
||||
...
|
||||
|
||||
|
||||
class _NodeOutputInternal:
|
||||
"""Class that all V3-based APIs inherit from for NodeOutput.
|
||||
|
||||
This is intended to only be referenced within execution.py, as it has to handle all V3 APIs going forward."""
|
||||
...
|
||||
|
||||
|
||||
def as_pruned_dict(dataclass_obj):
|
||||
'''Return dict of dataclass object with pruned None values.'''
|
||||
return prune_dict(asdict(dataclass_obj))
|
||||
|
||||
def prune_dict(d: dict):
|
||||
return {k: v for k,v in d.items() if v is not None}
|
||||
|
||||
|
||||
def is_class(obj):
|
||||
'''
|
||||
Returns True if is a class type.
|
||||
Returns False if is a class instance.
|
||||
'''
|
||||
return isinstance(obj, type)
|
||||
|
||||
|
||||
def copy_class(cls: type) -> type:
|
||||
'''
|
||||
Copy a class and its attributes.
|
||||
'''
|
||||
if cls is None:
|
||||
return None
|
||||
cls_dict = {
|
||||
k: v for k, v in cls.__dict__.items()
|
||||
if k not in ('__dict__', '__weakref__', '__module__', '__doc__')
|
||||
}
|
||||
# new class
|
||||
new_cls = type(
|
||||
cls.__name__,
|
||||
(cls,),
|
||||
cls_dict
|
||||
)
|
||||
# metadata preservation
|
||||
new_cls.__module__ = cls.__module__
|
||||
new_cls.__doc__ = cls.__doc__
|
||||
return new_cls
|
||||
|
||||
|
||||
class classproperty(object):
|
||||
def __init__(self, f):
|
||||
self.f = f
|
||||
def __get__(self, obj, owner):
|
||||
return self.f(owner)
|
||||
|
||||
|
||||
# NOTE: this was ai generated and validated by hand
|
||||
def shallow_clone_class(cls, new_name=None):
|
||||
'''
|
||||
Shallow clone a class while preserving super() functionality.
|
||||
'''
|
||||
new_name = new_name or f"{cls.__name__}Clone"
|
||||
# Include the original class in the bases to maintain proper inheritance
|
||||
new_bases = (cls,) + cls.__bases__
|
||||
return type(new_name, new_bases, dict(cls.__dict__))
|
||||
|
||||
# NOTE: this was ai generated and validated by hand
|
||||
def lock_class(cls):
|
||||
'''
|
||||
Lock a class so that its top-levelattributes cannot be modified.
|
||||
'''
|
||||
# Locked instance __setattr__
|
||||
def locked_instance_setattr(self, name, value):
|
||||
raise AttributeError(
|
||||
f"Cannot set attribute '{name}' on immutable instance of {type(self).__name__}"
|
||||
)
|
||||
# Locked metaclass
|
||||
class LockedMeta(type(cls)):
|
||||
def __setattr__(cls_, name, value):
|
||||
raise AttributeError(
|
||||
f"Cannot modify class attribute '{name}' on locked class '{cls_.__name__}'"
|
||||
)
|
||||
# Rebuild class with locked behavior
|
||||
locked_dict = dict(cls.__dict__)
|
||||
locked_dict['__setattr__'] = locked_instance_setattr
|
||||
|
||||
return LockedMeta(cls.__name__, cls.__bases__, locked_dict)
|
||||
|
||||
|
||||
def make_locked_method_func(type_obj, func, class_clone):
|
||||
"""
|
||||
Returns a function that, when called with **inputs, will execute:
|
||||
getattr(type_obj, func).__func__(lock_class(class_clone), **inputs)
|
||||
|
||||
Supports both synchronous and asynchronous methods.
|
||||
"""
|
||||
locked_class = lock_class(class_clone)
|
||||
method = getattr(type_obj, func).__func__
|
||||
|
||||
# Check if the original method is async
|
||||
if asyncio.iscoroutinefunction(method):
|
||||
async def wrapped_async_func(**inputs):
|
||||
return await method(locked_class, **inputs)
|
||||
return wrapped_async_func
|
||||
else:
|
||||
def wrapped_func(**inputs):
|
||||
return method(locked_class, **inputs)
|
||||
return wrapped_func
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,475 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
import uuid
|
||||
from io import BytesIO
|
||||
|
||||
import av
|
||||
import numpy as np
|
||||
import torch
|
||||
try:
|
||||
import torchaudio
|
||||
TORCH_AUDIO_AVAILABLE = True
|
||||
except:
|
||||
TORCH_AUDIO_AVAILABLE = False
|
||||
from PIL import Image as PILImage
|
||||
from PIL.PngImagePlugin import PngInfo
|
||||
|
||||
import folder_paths
|
||||
|
||||
# used for image preview
|
||||
from comfy.cli_args import args
|
||||
from ._io import ComfyNode, FolderType, Image, _UIOutput
|
||||
|
||||
|
||||
class SavedResult(dict):
|
||||
def __init__(self, filename: str, subfolder: str, type: FolderType):
|
||||
super().__init__(filename=filename, subfolder=subfolder,type=type.value)
|
||||
|
||||
@property
|
||||
def filename(self) -> str:
|
||||
return self["filename"]
|
||||
|
||||
@property
|
||||
def subfolder(self) -> str:
|
||||
return self["subfolder"]
|
||||
|
||||
@property
|
||||
def type(self) -> FolderType:
|
||||
return FolderType(self["type"])
|
||||
|
||||
|
||||
class SavedImages(_UIOutput):
|
||||
"""A UI output class to represent one or more saved images, potentially animated."""
|
||||
def __init__(self, results: list[SavedResult], is_animated: bool = False):
|
||||
super().__init__()
|
||||
self.results = results
|
||||
self.is_animated = is_animated
|
||||
|
||||
def as_dict(self) -> dict:
|
||||
data = {"images": self.results}
|
||||
if self.is_animated:
|
||||
data["animated"] = (True,)
|
||||
return data
|
||||
|
||||
|
||||
class SavedAudios(_UIOutput):
|
||||
"""UI wrapper around one or more audio files on disk (FLAC / MP3 / Opus)."""
|
||||
def __init__(self, results: list[SavedResult]):
|
||||
super().__init__()
|
||||
self.results = results
|
||||
|
||||
def as_dict(self) -> dict:
|
||||
return {"audio": self.results}
|
||||
|
||||
|
||||
def _get_directory_by_folder_type(folder_type: FolderType) -> str:
|
||||
if folder_type == FolderType.input:
|
||||
return folder_paths.get_input_directory()
|
||||
if folder_type == FolderType.output:
|
||||
return folder_paths.get_output_directory()
|
||||
return folder_paths.get_temp_directory()
|
||||
|
||||
|
||||
class ImageSaveHelper:
|
||||
"""A helper class with static methods to handle image saving and metadata."""
|
||||
|
||||
@staticmethod
|
||||
def _convert_tensor_to_pil(image_tensor: torch.Tensor) -> PILImage.Image:
|
||||
"""Converts a single torch tensor to a PIL Image."""
|
||||
return PILImage.fromarray(np.clip(255.0 * image_tensor.cpu().numpy(), 0, 255).astype(np.uint8))
|
||||
|
||||
@staticmethod
|
||||
def _create_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
|
||||
"""Creates a PngInfo object with prompt and extra_pnginfo."""
|
||||
if args.disable_metadata or cls is None or not cls.hidden:
|
||||
return None
|
||||
metadata = PngInfo()
|
||||
if cls.hidden.prompt:
|
||||
metadata.add_text("prompt", json.dumps(cls.hidden.prompt))
|
||||
if cls.hidden.extra_pnginfo:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
metadata.add_text(x, json.dumps(cls.hidden.extra_pnginfo[x]))
|
||||
return metadata
|
||||
|
||||
@staticmethod
|
||||
def _create_animated_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
|
||||
"""Creates a PngInfo object with prompt and extra_pnginfo for animated PNGs (APNG)."""
|
||||
if args.disable_metadata or cls is None or not cls.hidden:
|
||||
return None
|
||||
metadata = PngInfo()
|
||||
if cls.hidden.prompt:
|
||||
metadata.add(
|
||||
b"comf",
|
||||
"prompt".encode("latin-1", "strict")
|
||||
+ b"\0"
|
||||
+ json.dumps(cls.hidden.prompt).encode("latin-1", "strict"),
|
||||
after_idat=True,
|
||||
)
|
||||
if cls.hidden.extra_pnginfo:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
metadata.add(
|
||||
b"comf",
|
||||
x.encode("latin-1", "strict")
|
||||
+ b"\0"
|
||||
+ json.dumps(cls.hidden.extra_pnginfo[x]).encode("latin-1", "strict"),
|
||||
after_idat=True,
|
||||
)
|
||||
return metadata
|
||||
|
||||
@staticmethod
|
||||
def _create_webp_metadata(pil_image: PILImage.Image, cls: type[ComfyNode] | None) -> PILImage.Exif:
|
||||
"""Creates EXIF metadata bytes for WebP images."""
|
||||
exif_data = pil_image.getexif()
|
||||
if args.disable_metadata or cls is None or cls.hidden is None:
|
||||
return exif_data
|
||||
if cls.hidden.prompt is not None:
|
||||
exif_data[0x0110] = "prompt:{}".format(json.dumps(cls.hidden.prompt)) # EXIF 0x0110 = Model
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
inital_exif_tag = 0x010F # EXIF 0x010f = Make
|
||||
for key, value in cls.hidden.extra_pnginfo.items():
|
||||
exif_data[inital_exif_tag] = "{}:{}".format(key, json.dumps(value))
|
||||
inital_exif_tag -= 1
|
||||
return exif_data
|
||||
|
||||
@staticmethod
|
||||
def save_images(
|
||||
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, compress_level = 4,
|
||||
) -> list[SavedResult]:
|
||||
"""Saves a batch of images as individual PNG files."""
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
results = []
|
||||
metadata = ImageSaveHelper._create_png_metadata(cls)
|
||||
for batch_number, image_tensor in enumerate(images):
|
||||
img = ImageSaveHelper._convert_tensor_to_pil(image_tensor)
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
file = f"{filename_with_batch_num}_{counter:05}_.png"
|
||||
img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level)
|
||||
results.append(SavedResult(file, subfolder, folder_type))
|
||||
counter += 1
|
||||
return results
|
||||
|
||||
@staticmethod
|
||||
def get_save_images_ui(images, filename_prefix: str, cls: type[ComfyNode] | None, compress_level=4) -> SavedImages:
|
||||
"""Saves a batch of images and returns a UI object for the node output."""
|
||||
return SavedImages(
|
||||
ImageSaveHelper.save_images(
|
||||
images,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
compress_level=compress_level,
|
||||
)
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def save_animated_png(
|
||||
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, fps: float, compress_level: int
|
||||
) -> SavedResult:
|
||||
"""Saves a batch of images as a single animated PNG."""
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
|
||||
metadata = ImageSaveHelper._create_animated_png_metadata(cls)
|
||||
file = f"{filename}_{counter:05}_.png"
|
||||
save_path = os.path.join(full_output_folder, file)
|
||||
pil_images[0].save(
|
||||
save_path,
|
||||
pnginfo=metadata,
|
||||
compress_level=compress_level,
|
||||
save_all=True,
|
||||
duration=int(1000.0 / fps),
|
||||
append_images=pil_images[1:],
|
||||
)
|
||||
return SavedResult(file, subfolder, folder_type)
|
||||
|
||||
@staticmethod
|
||||
def get_save_animated_png_ui(
|
||||
images, filename_prefix: str, cls: type[ComfyNode] | None, fps: float, compress_level: int
|
||||
) -> SavedImages:
|
||||
"""Saves an animated PNG and returns a UI object for the node output."""
|
||||
result = ImageSaveHelper.save_animated_png(
|
||||
images,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
fps=fps,
|
||||
compress_level=compress_level,
|
||||
)
|
||||
return SavedImages([result], is_animated=len(images) > 1)
|
||||
|
||||
@staticmethod
|
||||
def save_animated_webp(
|
||||
images,
|
||||
filename_prefix: str,
|
||||
folder_type: FolderType,
|
||||
cls: type[ComfyNode] | None,
|
||||
fps: float,
|
||||
lossless: bool,
|
||||
quality: int,
|
||||
method: int,
|
||||
) -> SavedResult:
|
||||
"""Saves a batch of images as a single animated WebP."""
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
|
||||
pil_exif = ImageSaveHelper._create_webp_metadata(pil_images[0], cls)
|
||||
file = f"{filename}_{counter:05}_.webp"
|
||||
pil_images[0].save(
|
||||
os.path.join(full_output_folder, file),
|
||||
save_all=True,
|
||||
duration=int(1000.0 / fps),
|
||||
append_images=pil_images[1:],
|
||||
exif=pil_exif,
|
||||
lossless=lossless,
|
||||
quality=quality,
|
||||
method=method,
|
||||
)
|
||||
return SavedResult(file, subfolder, folder_type)
|
||||
|
||||
@staticmethod
|
||||
def get_save_animated_webp_ui(
|
||||
images,
|
||||
filename_prefix: str,
|
||||
cls: type[ComfyNode] | None,
|
||||
fps: float,
|
||||
lossless: bool,
|
||||
quality: int,
|
||||
method: int,
|
||||
) -> SavedImages:
|
||||
"""Saves an animated WebP and returns a UI object for the node output."""
|
||||
result = ImageSaveHelper.save_animated_webp(
|
||||
images,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
fps=fps,
|
||||
lossless=lossless,
|
||||
quality=quality,
|
||||
method=method,
|
||||
)
|
||||
return SavedImages([result], is_animated=len(images) > 1)
|
||||
|
||||
|
||||
class AudioSaveHelper:
|
||||
"""A helper class with static methods to handle audio saving and metadata."""
|
||||
_OPUS_RATES = [8000, 12000, 16000, 24000, 48000]
|
||||
|
||||
@staticmethod
|
||||
def save_audio(
|
||||
audio: dict,
|
||||
filename_prefix: str,
|
||||
folder_type: FolderType,
|
||||
cls: type[ComfyNode] | None,
|
||||
format: str = "flac",
|
||||
quality: str = "128k",
|
||||
) -> list[SavedResult]:
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type)
|
||||
)
|
||||
|
||||
metadata = {}
|
||||
if not args.disable_metadata and cls is not None:
|
||||
if cls.hidden.prompt is not None:
|
||||
metadata["prompt"] = json.dumps(cls.hidden.prompt)
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
|
||||
|
||||
results = []
|
||||
for batch_number, waveform in enumerate(audio["waveform"].cpu()):
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
file = f"{filename_with_batch_num}_{counter:05}_.{format}"
|
||||
output_path = os.path.join(full_output_folder, file)
|
||||
|
||||
# Use original sample rate initially
|
||||
sample_rate = audio["sample_rate"]
|
||||
|
||||
# Handle Opus sample rate requirements
|
||||
if format == "opus":
|
||||
if sample_rate > 48000:
|
||||
sample_rate = 48000
|
||||
elif sample_rate not in AudioSaveHelper._OPUS_RATES:
|
||||
# Find the next highest supported rate
|
||||
for rate in sorted(AudioSaveHelper._OPUS_RATES):
|
||||
if rate > sample_rate:
|
||||
sample_rate = rate
|
||||
break
|
||||
if sample_rate not in AudioSaveHelper._OPUS_RATES: # Fallback if still not supported
|
||||
sample_rate = 48000
|
||||
|
||||
# Resample if necessary
|
||||
if sample_rate != audio["sample_rate"]:
|
||||
if not TORCH_AUDIO_AVAILABLE:
|
||||
raise Exception("torchaudio is not available; cannot resample audio.")
|
||||
waveform = torchaudio.functional.resample(waveform, audio["sample_rate"], sample_rate)
|
||||
|
||||
# Create output with specified format
|
||||
output_buffer = BytesIO()
|
||||
output_container = av.open(output_buffer, mode="w", format=format)
|
||||
|
||||
# Set metadata on the container
|
||||
for key, value in metadata.items():
|
||||
output_container.metadata[key] = value
|
||||
|
||||
layout = "mono" if waveform.shape[0] == 1 else "stereo"
|
||||
# Set up the output stream with appropriate properties
|
||||
if format == "opus":
|
||||
out_stream = output_container.add_stream("libopus", rate=sample_rate, layout=layout)
|
||||
if quality == "64k":
|
||||
out_stream.bit_rate = 64000
|
||||
elif quality == "96k":
|
||||
out_stream.bit_rate = 96000
|
||||
elif quality == "128k":
|
||||
out_stream.bit_rate = 128000
|
||||
elif quality == "192k":
|
||||
out_stream.bit_rate = 192000
|
||||
elif quality == "320k":
|
||||
out_stream.bit_rate = 320000
|
||||
elif format == "mp3":
|
||||
out_stream = output_container.add_stream("libmp3lame", rate=sample_rate, layout=layout)
|
||||
if quality == "V0":
|
||||
# TODO i would really love to support V3 and V5 but there doesn't seem to be a way to set the qscale level, the property below is a bool
|
||||
out_stream.codec_context.qscale = 1
|
||||
elif quality == "128k":
|
||||
out_stream.bit_rate = 128000
|
||||
elif quality == "320k":
|
||||
out_stream.bit_rate = 320000
|
||||
else: # format == "flac":
|
||||
out_stream = output_container.add_stream("flac", rate=sample_rate, layout=layout)
|
||||
|
||||
frame = av.AudioFrame.from_ndarray(
|
||||
waveform.movedim(0, 1).reshape(1, -1).float().numpy(),
|
||||
format="flt",
|
||||
layout=layout,
|
||||
)
|
||||
frame.sample_rate = sample_rate
|
||||
frame.pts = 0
|
||||
output_container.mux(out_stream.encode(frame))
|
||||
|
||||
# Flush encoder
|
||||
output_container.mux(out_stream.encode(None))
|
||||
|
||||
# Close containers
|
||||
output_container.close()
|
||||
|
||||
# Write the output to file
|
||||
output_buffer.seek(0)
|
||||
with open(output_path, "wb") as f:
|
||||
f.write(output_buffer.getbuffer())
|
||||
|
||||
results.append(SavedResult(file, subfolder, folder_type))
|
||||
counter += 1
|
||||
|
||||
return results
|
||||
|
||||
@staticmethod
|
||||
def get_save_audio_ui(
|
||||
audio, filename_prefix: str, cls: type[ComfyNode] | None, format: str = "flac", quality: str = "128k",
|
||||
) -> SavedAudios:
|
||||
"""Save and instantly wrap for UI."""
|
||||
return SavedAudios(
|
||||
AudioSaveHelper.save_audio(
|
||||
audio,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
format=format,
|
||||
quality=quality,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class PreviewImage(_UIOutput):
|
||||
def __init__(self, image: Image.Type, animated: bool = False, cls: type[ComfyNode] = None, **kwargs):
|
||||
self.values = ImageSaveHelper.save_images(
|
||||
image,
|
||||
filename_prefix="ComfyUI_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for _ in range(5)),
|
||||
folder_type=FolderType.temp,
|
||||
cls=cls,
|
||||
compress_level=1,
|
||||
)
|
||||
self.animated = animated
|
||||
|
||||
def as_dict(self):
|
||||
return {
|
||||
"images": self.values,
|
||||
"animated": (self.animated,)
|
||||
}
|
||||
|
||||
|
||||
class PreviewMask(PreviewImage):
|
||||
def __init__(self, mask: PreviewMask.Type, animated: bool=False, cls: ComfyNode=None, **kwargs):
|
||||
preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3)
|
||||
super().__init__(preview, animated, cls, **kwargs)
|
||||
|
||||
|
||||
class PreviewAudio(_UIOutput):
|
||||
def __init__(self, audio: dict, cls: type[ComfyNode] = None, **kwargs):
|
||||
self.values = AudioSaveHelper.save_audio(
|
||||
audio,
|
||||
filename_prefix="ComfyUI_temp_" + "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(5)),
|
||||
folder_type=FolderType.temp,
|
||||
cls=cls,
|
||||
format="flac",
|
||||
quality="128k",
|
||||
)
|
||||
|
||||
def as_dict(self) -> dict:
|
||||
return {"audio": self.values}
|
||||
|
||||
|
||||
class PreviewVideo(_UIOutput):
|
||||
def __init__(self, values: list[SavedResult | dict], **kwargs):
|
||||
self.values = values
|
||||
|
||||
def as_dict(self):
|
||||
return {"images": self.values, "animated": (True,)}
|
||||
|
||||
|
||||
class PreviewUI3D(_UIOutput):
|
||||
def __init__(self, model_file, camera_info, **kwargs):
|
||||
self.model_file = model_file
|
||||
self.camera_info = camera_info
|
||||
self.bg_image_path = None
|
||||
bg_image = kwargs.get("bg_image", None)
|
||||
if bg_image is not None:
|
||||
img_array = (bg_image[0].cpu().numpy() * 255).astype(np.uint8)
|
||||
img = PILImage.fromarray(img_array)
|
||||
temp_dir = folder_paths.get_temp_directory()
|
||||
filename = f"bg_{uuid.uuid4().hex}.png"
|
||||
bg_image_path = os.path.join(temp_dir, filename)
|
||||
img.save(bg_image_path, compress_level=1)
|
||||
self.bg_image_path = f"temp/{filename}"
|
||||
|
||||
def as_dict(self):
|
||||
return {"result": [self.model_file, self.camera_info, self.bg_image_path]}
|
||||
|
||||
|
||||
class PreviewText(_UIOutput):
|
||||
def __init__(self, value: str, **kwargs):
|
||||
self.value = value
|
||||
|
||||
def as_dict(self):
|
||||
return {"text": (self.value,)}
|
||||
|
||||
|
||||
__all__ = [
|
||||
"SavedResult",
|
||||
"SavedImages",
|
||||
"SavedAudios",
|
||||
"ImageSaveHelper",
|
||||
"AudioSaveHelper",
|
||||
"PreviewImage",
|
||||
"PreviewMask",
|
||||
"PreviewAudio",
|
||||
"PreviewVideo",
|
||||
"PreviewUI3D",
|
||||
"PreviewText",
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,282 @@
|
||||
{
|
||||
"authority": "public_reference_only_not_object_info",
|
||||
"serialization_stage": "restored_saved_state_before_queue_hooks",
|
||||
"frontend": {
|
||||
"selected_tag": "1.37.11",
|
||||
"selected_commit": "4bf6a1960028cc5cda57d48f9fb01a74dfaade43",
|
||||
"source_declaration": null,
|
||||
"selection": "explicit reference assumption; never source or target version confirmation",
|
||||
"target_version_match": "unknown"
|
||||
},
|
||||
"reused_sources": [
|
||||
{
|
||||
"manifest": "../serialization-evidence/sources.json",
|
||||
"rules": {
|
||||
"src/services/litegraphService.ts": [
|
||||
[
|
||||
305,
|
||||
406
|
||||
]
|
||||
],
|
||||
"src/lib/litegraph/src/LGraphNode.ts": [
|
||||
[
|
||||
867,
|
||||
878
|
||||
],
|
||||
[
|
||||
914,
|
||||
921
|
||||
]
|
||||
],
|
||||
"src/utils/executionUtil.ts": [
|
||||
[
|
||||
85,
|
||||
104
|
||||
]
|
||||
],
|
||||
"src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts": [
|
||||
[
|
||||
87,
|
||||
103
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"manifest": "../structure-reference/sources.json",
|
||||
"rules": {
|
||||
"src/extensions/core/uploadAudio.ts": [
|
||||
[
|
||||
93,
|
||||
140
|
||||
],
|
||||
[
|
||||
185,
|
||||
259
|
||||
]
|
||||
],
|
||||
"src/scripts/domWidget.ts": [
|
||||
[
|
||||
142,
|
||||
148
|
||||
]
|
||||
],
|
||||
"src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts": [
|
||||
[
|
||||
118,
|
||||
135
|
||||
]
|
||||
],
|
||||
"comfy_extras/nodes_audio.py": [
|
||||
[
|
||||
147,
|
||||
171
|
||||
],
|
||||
[
|
||||
261,
|
||||
281
|
||||
],
|
||||
[
|
||||
669,
|
||||
682
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"classes": {
|
||||
"LoadAudio": {
|
||||
"selected_core": "0.11.0@09725967cf76304371c390ca1d6483e04061da48",
|
||||
"source_provider": null,
|
||||
"source_version": null,
|
||||
"constructor": "comfy_extras/nodes_audio.py:261-281",
|
||||
"widgets": [
|
||||
"audio",
|
||||
"audioUI (serialize=false; DOM getter empty string)",
|
||||
"upload (options.serialize=false)"
|
||||
],
|
||||
"saved_layout": [
|
||||
"file string",
|
||||
null,
|
||||
"empty upload value or null restored placeholder"
|
||||
],
|
||||
"api_inputs": [
|
||||
"audio",
|
||||
"audioUI"
|
||||
],
|
||||
"outputs": [
|
||||
"AUDIO"
|
||||
],
|
||||
"dynamic_membership": "file list, file existence unknown"
|
||||
},
|
||||
"SaveAudioMP3": {
|
||||
"selected_core": "0.11.0@09725967cf76304371c390ca1d6483e04061da48",
|
||||
"source_provider": null,
|
||||
"source_version": null,
|
||||
"constructor": "comfy_extras/nodes_audio.py:147-171",
|
||||
"registration": "comfy_extras/nodes_audio.py:669-682 ComfyExtension.get_node_list",
|
||||
"widgets": [
|
||||
"filename_prefix",
|
||||
"quality",
|
||||
"audioUI (not persisted; DOM empty string still in graphToPrompt)"
|
||||
],
|
||||
"saved_layout": [
|
||||
"filename_prefix",
|
||||
"quality"
|
||||
],
|
||||
"quality": [
|
||||
"V0",
|
||||
"128k",
|
||||
"320k"
|
||||
],
|
||||
"api_inputs": [
|
||||
"filename_prefix",
|
||||
"quality",
|
||||
"audioUI",
|
||||
"audio"
|
||||
],
|
||||
"outputs": [],
|
||||
"output_node": true,
|
||||
"default_boundary": "schema V0 versus execute fallback 128k; saved V0 preserved, no default substitution",
|
||||
"history_chain": [
|
||||
"nodes_audio.py:166-170 IO.NodeOutput(ui=AudioSaveHelper.get_save_audio_ui)",
|
||||
"_ui.py:373-386 SavedAudios(AudioSaveHelper.save_audio)",
|
||||
"_ui.py:335-343 V0 qscale=1 / bitrate128000 or320000 (not executed)",
|
||||
"_ui.py:27-35 SavedResult(filename,subfolder,type.value); 58-65 SavedAudios.as_dict audio list",
|
||||
"execution.py:360-366 r.ui.as_dict(); 736-745 history.outputs"
|
||||
],
|
||||
"fixture_boundary": "synthetic descriptor only; no codec/audio/waveform/real history"
|
||||
},
|
||||
"LoadImage": {
|
||||
"selected_core": "0.4.0@fc657f471a29d07696ca16b566000e8e555d67d1",
|
||||
"source_provider": "comfy-core",
|
||||
"source_version": "0.4.0",
|
||||
"constructor": "nodes.py:1643-1660",
|
||||
"widgets": [
|
||||
"image",
|
||||
"upload (options.serialize=false)"
|
||||
],
|
||||
"api_inputs": [
|
||||
"image"
|
||||
],
|
||||
"outputs": [
|
||||
"IMAGE",
|
||||
"MASK"
|
||||
],
|
||||
"dynamic_membership": "saved filename string only; existence unknown"
|
||||
},
|
||||
"PreviewImage": {
|
||||
"selected_core": "0.4.0@fc657f471a29d07696ca16b566000e8e555d67d1",
|
||||
"source_provider": "comfy-core",
|
||||
"source_version": "0.4.0",
|
||||
"constructor": "nodes.py:1629-1641",
|
||||
"widgets": [],
|
||||
"api_inputs": [
|
||||
"images"
|
||||
],
|
||||
"outputs": []
|
||||
},
|
||||
"LayerUtility: ImageReel": {
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"declared_provider": "comfyui_layerstyle",
|
||||
"declared_commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"constructor": "py/image_reel.py:18-41",
|
||||
"registration": "py/image_reel.py:216-224 and __init__.py:31-54",
|
||||
"widgets": [
|
||||
"image1_text",
|
||||
"image2_text",
|
||||
"image3_text",
|
||||
"image4_text",
|
||||
"reel_height",
|
||||
"border"
|
||||
],
|
||||
"types": [
|
||||
"STRING",
|
||||
"STRING",
|
||||
"STRING",
|
||||
"STRING",
|
||||
"INT",
|
||||
"INT"
|
||||
],
|
||||
"ranges": {
|
||||
"reel_height": [
|
||||
64,
|
||||
2048
|
||||
],
|
||||
"border": [
|
||||
8,
|
||||
512
|
||||
]
|
||||
},
|
||||
"input_sockets": [
|
||||
"image1",
|
||||
"image2",
|
||||
"image3",
|
||||
"image4"
|
||||
],
|
||||
"outputs": [
|
||||
"Reel"
|
||||
]
|
||||
},
|
||||
"LayerUtility: ImageReelComposit": {
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"declared_provider": "comfyui_layerstyle",
|
||||
"declared_commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"constructor": "py/image_reel.py:98-133",
|
||||
"registration": "py/image_reel.py:216-224 and __init__.py:31-54",
|
||||
"widgets": [
|
||||
"font_file",
|
||||
"font_size",
|
||||
"border",
|
||||
"color_theme"
|
||||
],
|
||||
"types": [
|
||||
"COMBO",
|
||||
"INT",
|
||||
"INT",
|
||||
"COMBO"
|
||||
],
|
||||
"ranges": {
|
||||
"font_size": [
|
||||
4,
|
||||
1024
|
||||
],
|
||||
"border": [
|
||||
8,
|
||||
512
|
||||
]
|
||||
},
|
||||
"static_enum": {
|
||||
"color_theme": [
|
||||
"light",
|
||||
"dark"
|
||||
]
|
||||
},
|
||||
"input_sockets": [
|
||||
"reel_1",
|
||||
"reel_2",
|
||||
"reel_3",
|
||||
"reel_4"
|
||||
],
|
||||
"outputs": [
|
||||
"IMAGE"
|
||||
],
|
||||
"dynamic_membership": "py/imagefunc.py:2347-2383 scans default font + optional FONT_dir for ttf/otf; string type only, file membership/existence unknown"
|
||||
}
|
||||
},
|
||||
"extension_review": {
|
||||
"LayerStyle": "Both commits __init__.py WEB_DIRECTORY=./js; all four JS files pinned separately. dz_mtb_widgets.js:494-565 custom newTypes then node name switch has no ImageReel/Composit branch. Existing source slots contain ordinary STRING/INT/COMBO; no newTypes. dz_node_palette only colors. No custom color picker for static color_theme light/dark.",
|
||||
"UE": "source 7.5.1 + widget connectability recorded; installed overrides/serializer not proven. Explicit unmodified widget assumption only. Converted widget links/custom widgets/dynamic expressions rejected."
|
||||
},
|
||||
"unknown": [
|
||||
"actual source frontend for both graphs",
|
||||
"audio source core declarations",
|
||||
"target frontend/core/plugin/UE",
|
||||
"font and image/audio file membership/existence",
|
||||
"mixed plugin commits installation compatibility",
|
||||
"real API equivalence",
|
||||
"media encoding and actual history",
|
||||
"target execution"
|
||||
],
|
||||
"eligibility": "No candidate is written to production importer or enables a source workflow; existing production registry untouched."
|
||||
}
|
||||
@@ -0,0 +1,597 @@
|
||||
{
|
||||
"authority": "public_reference_only_not_object_info",
|
||||
"sources": [
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "__init__.py",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"retrieved_at": "2026-10-29T18:24:20.188943+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb____init__.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
48
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:__init__.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/__init__.py",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "py/image_reel.py",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f",
|
||||
"retrieved_at": "2026-10-29T18:24:20.885238+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__py__image_reel.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
224
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/image_reel.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/image_reel.py",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
18,
|
||||
41
|
||||
],
|
||||
[
|
||||
98,
|
||||
133
|
||||
],
|
||||
[
|
||||
216,
|
||||
224
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "LICENSE",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"retrieved_at": "2026-10-29T18:24:21.738998+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__LICENSE",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
21
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:LICENSE",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/LICENSE",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "pyproject.toml",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/pyproject.toml",
|
||||
"sha256": "d1dbfd911b9729a86851c0575a88a702192afabf026914a3bec7e04f3e615d00",
|
||||
"retrieved_at": "2026-10-29T18:24:22.164237+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__pyproject.toml",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
15
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:pyproject.toml",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/pyproject.toml",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "__init__.py",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"retrieved_at": "2026-10-29T18:24:22.601019+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f____init__.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
48
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:__init__.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/__init__.py",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "py/image_reel.py",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f",
|
||||
"retrieved_at": "2026-10-29T18:24:23.531744+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__py__image_reel.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
224
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/image_reel.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/py/image_reel.py",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
18,
|
||||
41
|
||||
],
|
||||
[
|
||||
98,
|
||||
133
|
||||
],
|
||||
[
|
||||
216,
|
||||
224
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "LICENSE",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"retrieved_at": "2026-10-29T18:24:24.438148+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__LICENSE",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
21
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:LICENSE",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/LICENSE",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "pyproject.toml",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/pyproject.toml",
|
||||
"sha256": "96a1df2f226872a986a8c23276647f63999199cbf78bb3a210ba844feed94614",
|
||||
"retrieved_at": "2026-10-29T18:24:25.042193+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__pyproject.toml",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
15
|
||||
]
|
||||
],
|
||||
"id": "https://github.com/chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:pyproject.toml",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/pyproject.toml",
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI",
|
||||
"commit": "fc657f471a29d07696ca16b566000e8e555d67d1",
|
||||
"file": "nodes.py",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI/blob/fc657f471a29d07696ca16b566000e8e555d67d1/nodes.py",
|
||||
"sha256": "684b367dd0e6ddd61dd78c5c6bb4dd107c6b944e8775bc0f593e7f5337a49d14",
|
||||
"retrieved_at": "2026-10-29T18:24:25.741846+00:00",
|
||||
"local_file": "ComfyUI__v0.4.0__nodes.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
2452
|
||||
]
|
||||
],
|
||||
"tag": "v0.4.0",
|
||||
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/fc657f471a29d07696ca16b566000e8e555d67d1/nodes.py",
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:nodes.py",
|
||||
"license": "GPL-3.0",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
1629,
|
||||
1660
|
||||
],
|
||||
[
|
||||
1964,
|
||||
1975
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI",
|
||||
"commit": "fc657f471a29d07696ca16b566000e8e555d67d1",
|
||||
"file": "LICENSE",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI/blob/fc657f471a29d07696ca16b566000e8e555d67d1/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"retrieved_at": "2026-10-29T18:24:26.392761+00:00",
|
||||
"local_file": "ComfyUI__v0.4.0__LICENSE",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
674
|
||||
]
|
||||
],
|
||||
"tag": "v0.4.0",
|
||||
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/fc657f471a29d07696ca16b566000e8e555d67d1/LICENSE",
|
||||
"id": "https://github.com/Comfy-Org/ComfyUI@fc657f471a29d07696ca16b566000e8e555d67d1:LICENSE",
|
||||
"license": "GPL-3.0",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:py/imagefunc.py",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "py/imagefunc.py",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"retrieved_at": "2026-10-29T18:25:00.524802+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__py__imagefunc.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
2553
|
||||
]
|
||||
],
|
||||
"target_version_match": "unknown",
|
||||
"license": "MIT",
|
||||
"rule_locations": [
|
||||
[
|
||||
2347,
|
||||
2383
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:py/imagefunc.py",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "py/imagefunc.py",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/py/imagefunc.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"retrieved_at": "2026-10-29T18:25:01.734004+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__py__imagefunc.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
2553
|
||||
]
|
||||
],
|
||||
"target_version_match": "unknown",
|
||||
"license": "MIT",
|
||||
"rule_locations": [
|
||||
[
|
||||
2347,
|
||||
2383
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_mtb_widgets.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "js/dz_mtb_widgets.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_mtb_widgets.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4",
|
||||
"retrieved_at": "2026-10-29T18:25:24.992364+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__js__dz_mtb_widgets.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
908
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
494,
|
||||
567
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_comfy_shared.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "js/dz_comfy_shared.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_comfy_shared.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd",
|
||||
"retrieved_at": "2026-10-29T18:25:25.437828+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__js__dz_comfy_shared.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
341
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_node_palette.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "js/dz_node_palette.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_node_palette.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c",
|
||||
"retrieved_at": "2026-10-29T18:25:25.854039+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__js__dz_node_palette.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
42
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
1,
|
||||
28
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c:js/dz_parse-css.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
|
||||
"file": "js/dz_parse-css.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_parse-css.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913",
|
||||
"retrieved_at": "2026-10-29T18:25:26.334587+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__4f4d5cbb__js__dz_parse-css.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
362
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_mtb_widgets.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "js/dz_mtb_widgets.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_mtb_widgets.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_mtb_widgets.js",
|
||||
"sha256": "a04fc5dfe1a135f37eba09e03028c3f5081ad63589cff370bf1def05281908e4",
|
||||
"retrieved_at": "2026-10-29T18:25:26.863557+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__js__dz_mtb_widgets.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
908
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
494,
|
||||
567
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_comfy_shared.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "js/dz_comfy_shared.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_comfy_shared.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_comfy_shared.js",
|
||||
"sha256": "6d037e684866833f145f1fbc2eaecbde50d0e51b40d49a0b96ecafb3c985e9cd",
|
||||
"retrieved_at": "2026-10-29T18:25:27.310547+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__js__dz_comfy_shared.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
341
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_node_palette.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "js/dz_node_palette.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_node_palette.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_node_palette.js",
|
||||
"sha256": "76e9e3077ab7e3588463fc62db58096a474ff027bcf52cc85b9b2aef5cea129c",
|
||||
"retrieved_at": "2026-10-29T18:25:27.716591+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__js__dz_node_palette.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
42
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
1,
|
||||
28
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "chflame163/ComfyUI_LayerStyle@42ccdd8f75ab312285eaa77073a5cc20bdba484c:js/dz_parse-css.js",
|
||||
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "42ccdd8f75ab312285eaa77073a5cc20bdba484c",
|
||||
"file": "js/dz_parse-css.js",
|
||||
"url": "https://github.com/chflame163/ComfyUI_LayerStyle/blob/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_parse-css.js",
|
||||
"raw_url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/42ccdd8f75ab312285eaa77073a5cc20bdba484c/js/dz_parse-css.js",
|
||||
"sha256": "5381567cdfcd25b69da2b0f1b9ebc4b2db83aa5eaf0c850c6043c86dedcbb913",
|
||||
"retrieved_at": "2026-10-29T18:25:28.125965+00:00",
|
||||
"local_file": "ComfyUI_LayerStyle__42ccdd8f__js__dz_parse-css.js",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
362
|
||||
]
|
||||
],
|
||||
"license": "MIT",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": []
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_ui.py",
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI",
|
||||
"commit": "09725967cf76304371c390ca1d6483e04061da48",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI/blob/09725967cf76304371c390ca1d6483e04061da48/comfy_api/latest/_ui.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/09725967cf76304371c390ca1d6483e04061da48/comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"retrieved_at": "2026-10-29T18:25:28.741695+00:00",
|
||||
"local_file": "ComfyUI__09725967__comfy_api__latest___ui.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
475
|
||||
]
|
||||
],
|
||||
"license": "GPL-3.0",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
27,
|
||||
65
|
||||
],
|
||||
[
|
||||
260,
|
||||
277
|
||||
],
|
||||
[
|
||||
335,
|
||||
345
|
||||
],
|
||||
[
|
||||
360,
|
||||
386
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/latest/_io.py",
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI",
|
||||
"commit": "09725967cf76304371c390ca1d6483e04061da48",
|
||||
"file": "comfy_api/latest/_io.py",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI/blob/09725967cf76304371c390ca1d6483e04061da48/comfy_api/latest/_io.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/09725967cf76304371c390ca1d6483e04061da48/comfy_api/latest/_io.py",
|
||||
"sha256": "3852e5c6efa9a146e59f1e7c2d4f1df59180f2082972b39b7d0ccd7389232e63",
|
||||
"retrieved_at": "2026-10-29T18:25:29.425361+00:00",
|
||||
"local_file": "ComfyUI__09725967__comfy_api__latest___io.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
2104
|
||||
]
|
||||
],
|
||||
"license": "GPL-3.0",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
1868,
|
||||
1900
|
||||
],
|
||||
[
|
||||
1979,
|
||||
1991
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:comfy_api/internal/__init__.py",
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI",
|
||||
"commit": "09725967cf76304371c390ca1d6483e04061da48",
|
||||
"file": "comfy_api/internal/__init__.py",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI/blob/09725967cf76304371c390ca1d6483e04061da48/comfy_api/internal/__init__.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/09725967cf76304371c390ca1d6483e04061da48/comfy_api/internal/__init__.py",
|
||||
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410",
|
||||
"retrieved_at": "2026-10-29T18:28:51.396847+00:00",
|
||||
"local_file": "ComfyUI__09725967__comfy_api__internal____init__.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
150
|
||||
]
|
||||
],
|
||||
"license": "GPL-3.0",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
47,
|
||||
65
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Comfy-Org/ComfyUI@09725967cf76304371c390ca1d6483e04061da48:execution.py",
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI",
|
||||
"commit": "09725967cf76304371c390ca1d6483e04061da48",
|
||||
"file": "execution.py",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI/blob/09725967cf76304371c390ca1d6483e04061da48/execution.py",
|
||||
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/09725967cf76304371c390ca1d6483e04061da48/execution.py",
|
||||
"sha256": "b2d736d1f7a01ff7c288e8454401888703a2d67918c19873579e54752d72cd6f",
|
||||
"retrieved_at": "2026-10-29T18:28:51.925132+00:00",
|
||||
"local_file": "ComfyUI__09725967__execution.py",
|
||||
"lines": [
|
||||
[
|
||||
1,
|
||||
1251
|
||||
]
|
||||
],
|
||||
"license": "GPL-3.0",
|
||||
"target_version_match": "unknown",
|
||||
"rule_locations": [
|
||||
[
|
||||
340,
|
||||
370
|
||||
],
|
||||
[
|
||||
736,
|
||||
746
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"retrieval_notes": [
|
||||
"Two guessed py/image_reel_composit.py paths returned 404; both registered classes reside in py/image_reel.py at their respective declared commits. No repeated search.",
|
||||
"v0.4.0 resolved using official /commits/v0.4.0; fixed byte recheck uses full commit, not a branch.",
|
||||
"Git tree response byte SHA is acquisition evidence only, not normalized tree identity."
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user