ComfyUI node for LLM-driven image/data manipulation via generated Python functions
Top 60.0% on sourcepulse
AnyNode is a ComfyUI custom node that leverages Large Language Models (LLMs) to dynamically generate Python code for custom functionalities within ComfyUI workflows. It empowers users, from researchers to power users, to create bespoke nodes for image processing, data manipulation, and more, by simply describing the desired operation in natural language.
How It Works
AnyNode functions by taking a natural language prompt describing a desired operation and connecting inputs/outputs. It then generates Python code for a ComfyUI node based on this description. This generated code is executed within a sandboxed environment, with strict controls on allowed libraries and network access, ensuring safety. The node can then be integrated into any ComfyUI workflow, allowing for complex, LLM-driven operations without manual Python coding.
Quick Start & Requirements
lks-ai/anynode
into comfy/custom_nodes
.pip install openai
and set OPENAI_API_KEY
environment variable.GOOGLE_API_KEY
environment variable.Highlighted Details
numpy
, torch
, collections
, re
are allowed) for security.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is in beta, and LLM-generated code may contain errors that require prompt engineering or re-queuing to fix. Complex operations might necessitate some programming knowledge, and smaller LLMs may have limited coding capabilities. Generated code is only visible in the console.
1 year ago
1 day