Skip to content

A custom node for ComfyUI to create a prompt based on a list of keywords saved in CSV files.

License

Notifications You must be signed in to change notification settings

Franck-Demongin/NX_PromptStyler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NX_PromptStyler

A custom node for ComfyUI to create a prompt based on a list of keywords saved in CSV files.

GPLv3 license

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.

Installation

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.

Note about CSV

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:

  1. style.csv
  2. framing.csv
  3. cameras.csv
  4. lighting.csv
  5. effects.csv
  6. composition.csv
  7. films.csv
  8. artists.csv

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:

  • be encoded in UTF-8
  • include a header line consisting of name,prompt,negative_prompt (negative prompt are not used for the moment!)
  • use a comma as a separator and " as a delimiter

Features

  • select or ignore a category (leave the value at "None" to ignore it)
  • assign a positive or negative weight to each category
  • preset management, creating, editing and deleting favourite settings.
  • display of positive and negative prompts generated by the node (see below)

About generate options

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!

About

A custom node for ComfyUI to create a prompt based on a list of keywords saved in CSV files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published