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
366 stars 27 forks source link

Can't find the directory? #18

Closed alex13by closed 2 months ago

alex13by commented 2 months ago

D:\AI\ComfyUI-aki-v1\custom_nodes\ComfyUI-IF_AI_tools\dreamtalk\configs\default.py If in such a location, the plugin will not run and cannot find the directory, but I want to use my own directory name

The location causing the error:

def find_comfy_dir(current_path): """ Recursively search for a directory named 'ComfyUI' starting from the current path. """ if os.path.basename(current_path) == 'ComfyUI': return current_path else: parent_path = os.path.dirname(current_path) if parent_path == current_path: # if reached the root of the directory tree raise Exception("ComfyUI directory not found") return find_comfy_dir(parent_path)

if-ai commented 2 months ago

Does it work now? there is been an update and it should be working now