
DarkPrompts
A slightly better tool for generating random prompts.
Changelog
=========
DarkPrompt
==========
DarkPrompt reads lines from a file and/or a text input, combines them together, optionally strips out comments and blank lines, and then selects a random line for use in generating your prompt based on a seed input.
It also has a “prefix` and `suffix` field so you can easily include additional information with each prompt or wrap it inside a weight. For example a prefix of `(` and a suffix of `:1.2)“ could return a string:
have a section of prompting that you only occasionally want to include. For example, you might have different types of shoes you want to add to your character, but occasionally you want the prompt to not mention shoes at all.
Unlike several other ComfyUI projects, the box is somewhat more compact, gives you an easy way to combine file and text sources for prompt generation, and most importantly it re-reads the files after every prompt generation so you don't have to restart ComfyUI after editing wildcard files.
DarkCombiner
============
DarkCombiner accepts up to 7 text inputs and combines them with an optional delimiter (```\n``` by default) with a string output. This allows you to easily combine multiple DarkPrompt nodes to generate complex prompts.
It isn't really needed anymore since DarkPrompt supports combining from previous DarkPrompt nodes.
DarkLoraTagLoader
=================
DarkLoraTagLoader is a modified version of [LoraTagLoader(https://github.com/badjeff/comfyui_lora_tag_loader)] that also outputs a LORA_STACK of detected LoRAs for use in things like the Efficient Loader for doing XY Plots.
LoraTagLoader is licensed under the freedom-hating GPL v3 license which is why the code for DarkLoraTagLoader is under the gplv3 folder and is licensed separately from other files in this project. It also allows for adjusting LoRA weights.
DarkFaceIndexShuffle
====================
[ComfyUI-Reactor-Node](https://github.com/Gourieff/comfyui-reactor-node) supports swapping faces by providing a CSV index of faces (i.e. "0,1,2,3,4,5").
DarkFaceIndexShuffle allows you to enter an array of faces, shuffle the array based on a seed, and stick the result into the Reactor input_faces_index input.
This allows you to randomize faces and the order of friends in the scene generated by your prompts.
DarkAnyToString
===============
MTB Any To String broke recently for me. Implemented my own AnyToString.
DarkCheckpointRandomizer
========================
Allows you to provide a text-based list of checkpoints (one per line) to be randomly chosen on each generation.
You can optionally specify how many iterations to use the checkpoint for. For example you can specify:
sdXL_v10.safetensors
albedobaseXL_v21.safetensors