-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不能加载 #17
Comments
https://github.com/alanhzh/ComfyUI-ArtGallery-updates/tree/main |
same |
same problem |
覆盖,安装新的更新,用了新的工作流,还是ZHO结尾的5个红色图片,跟原来一样......希望大佬早点更新,谢谢! |
复制粘贴,替换custom_nodes\ComfyUI-ArtGallery_init_.py文件,就能解决报错问题;兼容新版comfyUI界面 import os 修改 JS 文件def modify_js_file(file_path, new_content):
要插入的新内容new_js_content = """ 文件路径current_dir = os.path.dirname(os.path.abspath(file)) 打印文件路径(可选)print(uploadimg_js_file_path) 调用函数修改JS文件modify_js_file(uploadimg_js_file_path, new_js_content) ################################################################
要插入的新内容new_py_content = """ cameras_dir = os.path.join(base_path, "custom_nodes", "ComfyUI-ArtGallery", "img_lists", "cameras") films_dir = os.path.join(base_path, "custom_nodes", "ComfyUI-ArtGallery", "img_lists", "films") movements_dir = os.path.join(base_path, "custom_nodes", "ComfyUI-ArtGallery", "img_lists", "movements") styles_dir = os.path.join(base_path, "custom_nodes", "ComfyUI-ArtGallery", "img_lists", "styles") 要修改的函数内容function_py_content = ''' 文件路径py_file_path = os.path.join(current_dir, '../../folder_paths.py') modify_py_file(py_file_path, new_py_content, 'folder_names_and_paths["classifiers"]', function_py_content, 'def get_directory_by_type(type_name: str) -> str | None:') #################################################
要插入的新内容new_wedgets_js_content = """ //ComfyUI-ArtGallery
""" PATHwedgets_js_file_path = os.path.join(current_dir, '../../web/assets/index-D8Zp4vRl.js') modify_wedgets_js_file(wedgets_js_file_path, new_wedgets_js_content, new_wedgets_js_content_2) from .ArtGallery import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS all = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] |
simply modify init.py wedgets_js_file_path = os.path.join(current_dir, '../../web/scripts/widgets.js') it will work now. |
新版comfyui,要修改 uploadimg_js_file_path = os.path.join(current_dir, '../../web/assets/index-BMC1ey-i.js') wedgets_js_file_path = os.path.join(current_dir, '../../web/assets/index-DGAbdBYF.js') it will work now. |
大神,启动加载一切正常,可是一些节点还是没法用,还是红色的方框,搜索对应节点名重新添加,添加没反应! |
安装 ComfyUI-Gemini 试试,要配合这个节点的 https://github.com/ZHO-ZHO-ZHO/ComfyUI-Gemini |
Cannot import D:\ComfyUI\custom_nodes\ComfyUI-ArtGallery module for custom nodes: [Errno 2] No such file or directory: 'D:\ComfyUI\custom_nodes\ComfyUI-ArtGallery\../../web/extensions/core/uploadImage.js'
The text was updated successfully, but these errors were encountered: