Stable Diffusion 的参数序列器
You can jump straight into Parseq here: .
To provide some context:
Parseq (this tool) is a parameter sequencer for the Deforum extension for Automatic1111. You can use it to generate animations with tight control and flexible interpolation over many Stable Diffusion parameters (such as seed, scale, prompt weights, noise, image strength...), as well as input processing parameter (such as zoom, pan, 3D rotation...).
For now, Parseq is almost entirely front-end and stores all state in browser local storage by default. All processing, including audio processing, is done in the browser. Signed-in users can optionally upload their work from the UI for easier sharing.
Using Parseq, you can:
| Sequence, evolve and blend prompts with scriptable logic right in the prompt text | Control how parameters and prompt weights change over time, both visually and with an advanced expression language | Automatically detect audio events, and use them to influence your video. |
| Extract pitch and amplitude data from audio, and import any raw timeseries data, for use in your expressions | Preview 3D motion and final prompts before kicking off your diffusion | Simple integration with the A1111 Deforum extension - just copy one link! |
See the Parseq change log on the project wiki.
Parseq section right at the bottom for the Init tab under the Deforum extension (click to expand it).The best way to get your head around Parseq's capabilities and core concepts is to watch the following tutorials:
| Part 1 | Part 2 | Part 3 |
|---|---|---|
In summary, there are 2 steps to perform:
Step 1: Create your parameter manifest
npm start)Step 2: Generate the video
Here are some examples showing what can do. Most of these were generated at 20fps then smoothed to 60fps with ffmpeg minterpolate or FILM. See the also the Parseq Example Library for a range of simple examples and all required settings to recreate them.
| Example | Description |
|---|---|
| Audio-controlled prompt: the amplitude affects the facial expression, and the pitch affects the pastel/vector effect. See the video on Youtube for higher quality and all settings. | |
| Audio synchronisation example from Parseq Tutorial 3. Watch on Youtube for higher quality. | |
| Another example of advanced audio synchronisation. A detailed description of how this was created is available here. The music is an excerpt of The Prodigy - Smack My Bitch Up (Noisia Remix). | |
| Combining 3D y-axis rotation with x-axis pan to rotate around a subject. See the Parseq Example Library for more information. | |
| Seed travelling example featured in Parseq Tutorial 2. | |
| - Prompt manipulation example featured in Parseq Tutorial 2. | |
| Oscillating between a few famous faces with some 3d movement and occasional denoising spikes to reset the context. |
Parseq's main feature is advanced control over parameter values, using keyframing with interesting interpolation mechanisms.
The keyframe grid is the central UI concept in Parseq. Each row in the grid represents a keyframe. Each parameter has a pair of columns: the first takes an explicit value for that field, and the second takes an interpolation formula, which defines how the value will "travel" to the next keyframe's value. If no interpolation formula is specified on a given keyframe, the formula from the previous keyframe continues to be used. The default interpolation algorithm is linear interpolation.
Below the grid, a graph allows you to see the result of the interpolation (and edit keyframe values by dragging nodes):
The interpolation formula can be an arbitrarily complex mathematical expression, and can use a range of built-in functions and values, including oscillators and helpers to synchronise them to timestamps or beats:
Interpolation expressions define how the value for a given field should be computed at each frame. Expressions can return numbers or strings. String literals must be enclosed in double quotes ("").
Here are the operators, values, constants and functions you can use in Parseq expressions.
You can visualise and play with all interpolation logic using Parseq's live documentation.
| operator | description | example |
|---|---|---|
+ |
Add two expressions. Also acts as string concatenation if either expression is a string (with the same type conversion semantics as Javascript string concatenation). | Make the seed increase by 0.25 on every frame (Parseq uses fractional seeds to infuence the subseed strength): |
- |
Subtract two expressions. | |
* |
Multiply two expressions. | |
/ |
Divide two expressions. | |
% |
Modulus | Reset the seed every 4 beats: |
!= |
1 if expressions are not equal, 0 otherwise. | |
== |
1 if expressions are equal, 0 otherwise. | |
|
1 if less than , 0 otherwise. | |
|
1 if less than or equals , 0 otherwise. | |
>= |
1 if greater than , 0 otherwise. | |
|
1 if greater than or equals , 0 otherwise. | |
and |
1 if and are non-zero, 0 otherwise. | |
or |
1 if or are non-zero, 0 otherwise. | |
if else |
if cond evaluates to any value other than 0, return consequent, else return alt. cond, consequent and alt are all arbitrary expressions. |
Use a square wave which alternates between 1 and -1 with a period of 10 frames to alternatively render the step and cubic spline interpolations: |
: |
Syntactic sugar for easily creating strings of the format (:). For example, putting the following in your prompt ${"cat":prompt_weight_1} will render to ${(cat:0.5)} where 0.5 is the value of prompt_weight_1 for that frame. expr1 must return a string and expr2 a number. |
Your expression runs in a context that provides access to a number of useful variables:
| value | description | examples |
|---|---|---|
L |
(default) The value at this frame assuming linear interpolation betwen the previous and next keyframed value | |
S |
The value at this frame assuming step interpolation. This is equivalent to active_keyframe_value, i.e. the value last seen in the value column. |
|
C |
The value at this frame assuming cubic spline over all keyframed values. | |
P |
As above, but using polynomial interp. V |
暂无开放 Issues,或尚未同步最近议题。