1.7 KiB
1.7 KiB
Prompt Scheduling
Encode a schedule of prompts with automatic interpolation.
Schedule format
Schedules support JSON and Python-like formats. Frame 0 is the first frame and max_frames - 1 is the last.
"0": "blue rock on mountain",
"16": "green rock in lake"
0 = "blue rock on mountain",
16 = "green rock in lake"
Prompts must be enclosed in double quotes. Prompt portions may use keys supplied through values_replace.
Allowed indices
- Single: A positive integer such as
0or2selects that frame. A negative integer such as-1or-5selects from the end (-1is the last frame). A decimal such as0.5or1.0selects a relative position (0.5is halfway and1.0is the last frame). - Range:
start:enduses an uninterpolated prompt from the included start index to the excluded end index. Examples:0:12,0:-5,2:0.5. - Hold: A colon after one index stops interpolation until the next supplied index. Examples:
0:,0.5:,16:.
Inputs
| Input | Description |
|---|---|
prompts |
The prompt schedule. |
clip |
CLIP used to encode prompts. |
prepend_text |
Optional text added before every prompt. |
append_text |
Optional text added after every prompt. |
values_replace |
Optional value schedules substituted for keys written as `some_key` in prompts. |
print_schedule |
Print the resulting schedule when enabled. |
max_length |
Intended schedule length. At 0, the largest schedule index determines the length, but negative and decimal relative indices are disabled. |
tensor_interp |
Prompt-conditioning interpolation method; defaults to linear interpolation. |
Outputs
CONDITIONING: Encoded prompts.