A custom node for ComfyUI to create a prompt based on a list of keywords saved in CSV files.
A custom node for ComfyUI to create a prompt based on a list of keywords saved in CSV files.
<img src="https://img.shields.io/badge/ComfyUI-green" /> <img src="https://img.shields.io/badge/Python-3.10-blue" /> <img src="https://img.shields.io/badge/Custom Node-1.0.0.Stable-orange" />
This node was inspired by PCMonsterx's ComfyUI-CSV-Loader and by modifications and additions made by Adel AI. Thanks to them!
[!IMPORTANT] Node tested only on Linux. It should work without any problems on Windows and Mac but has not been tested on these OS.
If GIT is installed on your system, go to the custom_nodes
subfolder of your ComfyUI installation, open a terminal and type:
git clone https://github.com/Franck-Demongin/NX_PromptStyler.git
If GIT is not installed, retrieve the ZIP file, unzip it into the custom nodes
folder and rename it NX_PromptStyler.
Restart ComfyUI. NX_PromptStyler should be available in the NX_Nodes category.
The node detects CSV files placed in the CSV subfolder. Copy files from CSV_default to CSV folder. They are automatically taken into account and classified in a predetermined order:
You can add other files and they will appear next, listed in alphabetical order.
The positive.csv and negative.csv files will appear at the end of the list.
The CSV files used must comply with the following characteristics:
It may be useful to display the prompts resulting from the use of the node before starting image generation. This allows you to check the content of the generated prompts and allows you to modify them before they are sent to the workflow.
If you use this option, bear in mind that, as a last resort, the contents of these fields (output positive and output negative) will be used as the node's output.
If you want to use other settings (categories or presets), empty the output fields or regenerate the prompts before launching the workflow!