if-ai / ComfyUI-IF_AI_tools

ComfyUI-IF_AI_tools is a set of custom nodes for ComfyUI that allows you to generate prompts using a local Large Language Model (LLM) via Ollama. This tool enables you to enhance your image generation workflow by leveraging the power of language models.
https://ko-fi.com/impactframes
MIT License
524 stars 41 forks source link

IFChatPromptNode not found #81

Open GitAIUser opened 4 months ago

GitAIUser commented 4 months ago

2024-07-21 23:16:21.859 | ERROR | logging:callHandlers:1706 - [ERROR] An error occurred while retrieving information for the 'IF_ChatPrompt' node. 2024-07-21 23:16:21.860 | ERROR | logging:callHandlers:1706 - Traceback (most recent call last): File "X:\StableDiff\ComfyUI\server.py", line 443, in get_object_info out[x] = node_info(x) ^^^^^^^^^^^^ File "X:\StableDiff\ComfyUI\server.py", line 420, in node_info info['input'] = obj_class.INPUT_TYPES() ^^^^^^^^^^^^^^^^^^^^^^^ File "X:\StableDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\IFChatPromptNode.py", line 109, in INPUT_TYPES node = cls() ^^^^^ File "X:\StableDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\IFChatPromptNode.py", line 53, in init self.agent_tools = self.load_agent_tools() ^^^^^^^^^^^^^^^^^^^^^^^ File "X:\StableDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\IFChatPromptNode.py", line 78, in load_agent_tools for filename in os.listdir(self.agents_dir): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 3] The system cannot find the path specified: 'X:\StableDiff\ComfyUI\input\IF_AI\presets\agents'

if-ai commented 4 months ago

You are missing step 3 from the readme. You have to manually move the IF_AI folder from ComfyUI/custom_nodes /ComfyUI-IF_AI_tools to the root of ComfyUI input folder like ComfyUI/input/IF_AI then it will be able to find the presets and other files it needs to start

Unityisalreadybetaken commented 2 months ago

You are missing step 3 from the readme. You have to manually move the IF_AI folder from ComfyUI/custom_nodes /ComfyUI-IF_AI_tools to the root of ComfyUI input folder like ComfyUI/input/IF_AI then it will be able to find the presets and other files it needs to start您缺少自述文件中的第 3 步。您必须手动将IF_AI文件夹从 ComfyUI/custom_nodes /ComfyUI-IF_AI_tools 移动到 ComfyUI 输入文件夹的根目录,如 ComfyUI/input/IF_AI然后它将能够找到启动所需的预设和其他文件

it do work, thanks, but my bad to ignore the READ_ME file.

John-OK commented 2 months ago

You are missing step 3 from the readme. You have to manually move the IF_AI folder from ComfyUI/custom_nodes /ComfyUI-IF_AI_tools to the root of ComfyUI input folder like ComfyUI/input/IF_AI then it will be able to find the presets and other files it needs to start

I think Steps 3 and 4 need to be switched as, currently, the instructions state to move the folder before the repo is cloned, and the folder will not exist until the repo is cloned.