托伦斯冲刺创业板:上半年营收3.7亿 超40%收入靠北方华创 拟募资11.56亿
2025/12/25 2:13:37
使用《 Work-Fisher:Wan2.2:Smooth Mix I2V合集》作者的工作流的时候,本地和runninghub上均无法显示wanblockswap的参数设置。
安装节点的插件地址:
Gitee(国内)https://gitee.com/kyle9088/ComfyUI-wanBlockswap
原作者:(github):https://github.com/orssorbit/ComfyUI-wanBlockswap
fromcomfy_api.latestimportComfyExtension,iofromtyping_extensionsimportoverride# If you write a node that is so useless that it breaks ComfyUI it will be featured in this exclusive list# "native" block swap nodes are placebo at best and break the ComfyUI memory management system.# They are also considered harmful because instead of users reporting issues with the built in# memory management they install these stupid nodes and complain even harder. Now it completely# breaks with some of the new ComfyUI memory optimizations so I have made the decision to NOP it# out of all workflows.classwanBlockSwap(io.ComfyNode):@classmethoddefdefine_schema(cls):returnio.Schema(node_id="wanBlockSwap",category="",description="NOP",inputs=[io.Model.Input("model"),],outputs=[io.Model.Output(),],is_deprecated=False,)@classmethoddefexecute(cls,model)->io.NodeOutput:returnio.NodeOutput(model)classNopExtension(ComfyExtension):@overrideasyncdefget_node_list(self)->list[type[io.ComfyNode]]:return[wanBlockSwap]asyncdefcomfy_entrypoint()->NopExtension:returnNopExtension()# 若你编写的节点毫无用处,甚至会破坏ComfyUI的正常运行,那它就会登上这份“专属名单” # “原生”的block swap(块交换)节点往好了说是安慰剂效应,往坏了说会破坏ComfyUI的内存管理系统。 # 这类节点也被认定为“有害节点”——因为用户本应反馈原生内存管理的问题, # 却安装了这些毫无意义的节点,反而提出更激烈的投诉。如今这类节点已与ComfyUI新增的部分内存优化功能完全冲突, # 因此我决定将其从所有工作流中“空操作化”(即禁用)。