h43lb1t0 / SD-WebUI-BatchCheckpointPrompt

Test a base prompt with different checkpoints and for the checkpoints specific prompt templates
MIT License
55 stars 3 forks source link

Repeat prompt(s) and prompt-embedded iterator tags options #45

Closed RandyHaylor closed 1 year ago

RandyHaylor commented 1 year ago

Added a checkbox to advanced toloop through prompts if prompt list is shorter than model list. Can repeat a single prompt.

Added a checkbox and info to advanced to enable embedding custom iterators in the prompts that change with each image generation that has that prompt name. See details below.

Loop Through Prompts Prompt list will be cycled through if shorter than model list. A single prompt will repeat. A longer prompt list will have the extra prompts ignored.

Enable Process Iterators Process Iterators: use the pattern [initVal,iteratorLabel,operator,operand,operand,operand…]. The brackets and contents will be replaced by the result of the operator. The initial value will be used first, and any subsequent call to the same iterator label will apply the operator using it’s optional operands.

Example: (close up:[0.2,iterator1,+=,0.1]) -this will start at 0.2 and increase by 0.1 every time this iterator ‘iterator1’ is encountered - if it’s a single prompt, it will be increased every generation. Functions available:

++,–,sqrt: [startInt,myIteratorName,++] [1,myIncrementor,++] (put after a lora/lyco training checkpoint…)

+=,-=,=,/=,%=,^=: [startInt,myAdderName,+=,operandFloat(default=1)] [0.3,myMultiplier,=,1.1] (this will increase slowly but faster as it goes)

log,log10,log2: [startInt,myIteratorName,sqrt,amplitudeFloat(default=1),FrequencyFloat(default=1)] [0.5,mySinIterator,sin,0.1(default=1),FrequencyFloat(default=1)] approach_limit: [startInt,myIteratorName,approach_limit,limitFloat(default=1),RateFloat(default=1)]

RandyHaylor commented 1 year ago

I don't use git day to day, sorry about the confusion. I got it all cleaned up now. Usually I use gitlab for my unity vr project I work on full time.

RandyHaylor commented 1 year ago

I'm sorry I was so tired. I got all this done but I copied over the wrong files lol.