Commit Graph
11 Commits
Author SHA1 Message Date
GBrain af57d757eb feat: PoseReference node, sampler presets, model-type rename, auto clip_type rework, output reorder
新增 / New
- PoseReference 节点:姿势素材库(线稿 / 深度两套)+ 节点内缩略图,选中素材以 data URI 内嵌进工作流
- 采样器「⚡预设」下拉:一键填 采样器/调度器/步数/CFG/Sigma曲线;预设表只有一份在 sampler.py,
  前端走 /toggle_pass/sampler_presets 拉取;手改任一参数自动退回「手动(不套用)」
- ToggleEmptyLatent 新增 latent类型(4 档:SD 4ch/8x、SD3-Flux-Krea2 16ch/8x、Qwen2.1 64ch/16x、Flux2 128ch/16x)
- DynamicRefImageEncode 新增专门的 negative 输出(内部编空文本),替代 ConditioningZeroOut

变更 / Changed
- 模型类型:SD / SDXL → SD / SDXL / Z-Image(前后端双层别名迁移,旧工作流自动改写)
- DynamicRefImageEncode 输出口顺序 → conditioning / negative / latent,老工作流按 link 类型自动迁移连线
- clip_type 从 14 项补到 40 项;auto 重做为「精确表 → MRO 继承链 → 前缀规则」三层
- CLIP 校验加固:手工表未登记的模型改问 model_config.clip_target(),覆盖 106/108 个模型类
- 统一加载器支持 FIBO 2.0 / MOSS-Image;采样器预设新增 FIBO 2.0 turbo(4步)

修复 / Fixed
- Krea2 的 reference_latents_method: index_timestep_zero → index(前者会把参考线稿「描」进画面)
- Krea2 参考图 latent fit 到出图网格
- 修正三处 Flux2 空 latent 的通道 / 尺寸(Ref Image Encode / OneImageMultiPrompt / Ref Independent)
- 广播:槽位小点点亮、端点圆点改到节点下层、修「紫线伸向空白处断掉」(零尺寸 boundingRect 误判)
- 输出口顺序迁移只在 onConfigure 跑一次太早(graph.links 要几百毫秒才建好)⇒ 改为阶梯重试,
  否则会出现「槽位改名了、连线没搬」

其他 / Misc
- 新增诊断命令 __tpAudit():打印每条广播线两端坐标 / 归属节点 / 是否悬空
- 画布菜单新增「🔄 刷新姿势素材库」
- 移除示例 Krea2 Pose Editing (Ostris).json(硬依赖外部节点包且会换人)

版本 / Version
- 新增 pyproject.toml(ComfyUI-Manager / Registry 元数据入口),版本号 v1.0.0
- __init__.py 增加 __version__,启动打印 [Toggle-Pass] v1.0.0 loaded — 13 nodes
- README 顶部加版本标识
2026-11-07 21:29:09 +08:00
GBrain 60665017a9 feat: broadcast switch on node top, selection-rect fix, ship missing sampler
- js/broadcast_toggle.js: per-node global broadcast toggle, drawn on the node top row next to the toggle switch (state kept in node.properties.tp_broadcast, serialize:false so old workflows are untouched)

- js/selection_rect_fix.js: work around a clipped .graph-canvas-panel so the drag-select rectangle follows the pointer (opt out via localStorage.tp_selrect_fix=off)

- js/canvas_menu.js, js/sampler_widgets.js, sampler.py: ship modules that were referenced but missing from the repo

- multi_ref_encode.py, js/multi_ref_encode.js, unified_loader.py, __init__.py: multi-reference encoding rework plus Krea2 CLIPType support

- example_workflows: rename Toggle-Pass-Test.json to 'All-in-One Demo.json', drop the three obsolete preview PNGs

- README: bilingual docs, example workflow table, changelog
2026-10-25 20:55:41 +08:00
electricty00 2c1b08a1cb feat: add Qwen Layered mode to DynamicRefImageEncode, add remove LoRA button
- DynamicRefImageEncode: add "Qwen Layered" model type with layers parameter
- Latent output matches EmptyQwenImageLayeredLatentImage format ([1,16,layers+1,h/8,w/8])
- ToggleUnifiedLoader: add "- 移除 LoRA" button to remove LoRA slots
- README: update node docs and changelog 2026-05-12
2026-05-12 21:07:54 +08:00
electricty00 1c6e062cc6 debug: 加详细日志,排查 beforeRegisterNodeDef 回调问题 2026-05-09 20:44:52 +08:00
electricty00 6a87f0dd88 fix: 简化宽度修复,只设 node.size[0]=300 2026-05-09 20:22:53 +08:00
electricty00 656dc90094 fix: 修正 import 位置错误,JS 现在能正常加载了 2026-05-09 20:15:09 +08:00
electricty00 2e44b22884 fix: startWidthLock 暴力锁宽,劫持setSize两种形式+setInterval+console.log 2026-05-09 20:08:38 +08:00
electricty00 be93aa904b fix: 劫持 setSize + 多轮 setTimeout 强制固定宽度300 2026-05-09 19:56:52 +08:00
electricty00 648755ed6e fix: 重写 computeSize 强制固定宽度300,所有动态节点生效 2026-05-09 19:41:27 +08:00
electricty00 3270f30c4f fix: 固定节点宽度300,只调高度,改善宽高比 2026-05-09 19:33:57 +08:00
electricty00 b876675ea1 Initial commit: stable version backup 2026-05-09 2026-05-09 19:23:09 +08:00