搜索关键字:ComfyUI插件 No such file or directory ....... init.py
有些作者大佬平常忙,没空给ComfyUI的插件规则搞完,导致插件下载到ComfyUI\custom_nodes之后没用
拿刚遇到的这个举个例子
插件名:AspectAwareTiling
github地址:https://github.com/huimengshiguang/AspectAwareTiling
感谢大哥的插件(虽然我还没来及用)
首先找不到 init.py 文件
Cannot import D:\LJasonProgramData\...\ComfyUI\custom_nodes\AspectAwareTiling module for custom nodes: [Errno 2] No such file or directory: 'D:\\LJasonProgramData\\...\\ComfyUI\\custom_nodes\\AspectAwareTiling\\init.py'
我们先弄个__init__.py
路径里面新建文件ComfyUI\custom_nodes\AspectAwareTiling\init.py

增加以下内容并保存
python
from .quanjing import NODE_CLASS_MAPPINGS
__all__ = ['NODE_CLASS_MAPPINGS']
然后给大哥这个代码文件改个名(因为 - 是个特殊字符不好写加载)
hmsg-quanjing.py 改成 quanjing.py

好了启动你的comfyui吧