A set of nodes for batch processing of text and images.
Zerna Pack is a collection of custom nodes for ComfyUI designed to facilitate batch processing of text and images. It includes tools for dynamic prompt generation and other utilities to enhance your workflow.
custom_nodes
directory of your ComfyUI installation:
git clone https://github.com/RaymondProduction/comfyui-zerna-pack.git
Place your .txt
files containing prompt data in the prompts
directory:
comfyui-zerna-pack/prompts/
Example files:
test.txt
:
hello
example01.txt
:
cat
dog
pig
Use the Dynamic Prompt Injector node in ComfyUI:
prompt_text
field with a template containing [X]
as a placeholder..txt
file from the prompt_file
dropdown.reload
, load_cap
, and start_index
as needed.The node will replace [X]
in the prompt_text
with each line from the selected file and output the processed prompts.
prompt_text
: "A photo of [X] in the forest."
prompt_file
: example01.txt
A photo of cat in the forest.
A photo of dog in the forest.
A photo of pig in the forest.
zerna/
: Contains the core logic for the Zerna Pack.
prompt_generators.py
: Implements the Dynamic Prompt Injector.prompts/
: Directory for storing .txt
files used in prompt generation.__init__.py
: Initializes the Zerna Pack and registers its nodes with ComfyUI.Current version: 0.0.1
Feel free to submit issues or pull requests to improve the Zerna Pack. Contributions are welcome!
This project is licensed under the MIT License. See the LICENSE
file for details.
Special thanks to the ComfyUI community for providing the tools and inspiration for this project.