Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sd-parseq

> 开发工具
Open source

Parameter sequencer for Stable Diffusion

388 stars0 likes1 views
WebsiteGitHub

About

Parameter sequencer for Stable Diffusion

Stable Diffusion Parseq

  • What is this?
  • What's new?
  • Getting started
  • Examples
  • Features
    • Keyframed parameter values with scriptable interpolation
    • Interpolation expressions
      • Operators
      • Context variables
      • Constants
      • Units
      • Unit conversion functions
      • Oscillator functions
      • Transition functions
      • Noise functions
      • Maths functions
      • Javascript maths functions
      • Info text matching functions
      • Prompt manipulation functions
    • Working with time & beats (audio synchronisation)
      • Beats per minute and frames per second
      • Locking keyframes to beats or seconds
      • Interval keyframe creation
      • Keyframe labelling
      • Reference audio
      • Automatically generating keyframes from audio events
      • Sync'ing to pitch and amplitude using time series
      • Legacy Audio Analyser
    • Time series for arbtrary data sequences
    • Camera movement preview
    • Deforum integration features
      • Keyframable parameters
    • Prompt manipulation
    • Using multiple prompts
    • Subseed control for seed travelling
    • Delta values (aka absolute vs relative motion parameters)
  • Working with large number of frames (performance tips)
  • Development & running locally
    • Deployment
  • Credits and support

What is this?

You can jump straight into Parseq here: .

To provide some context:

  • Stable Diffusion is an AI image generation tool.
  • Deforum is a notebook-based UI for Stable Diffusion that is geared towards creating videos.
  • AUTOMATIC1111/stable-diffusion-webui is a Web UI for Stable Diffusion (but not for Deforum).
  • The Deforum extension for Automatic1111 is an extention to the Automatic1111 Web UI that integrates the functionality of the Deforum notebook.

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!

What's new?

See the Parseq change log on the project wiki.

Getting started

Pre-reqs

  • Start by ensuring you have a working installation of Automatic1111's Stable Diffusion UI
  • Next, install the Deforum extension. – You should now see a Parseq section right at the bottom for the Init tab under the Deforum extension (click to expand it).

Ramping up

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

Usage

In summary, there are 2 steps to perform:

Step 1: Create your parameter manifest

  • Go to (or run the UI yourself from this repo with npm start)
  • Edit the table at the top to specify your keyframes and parameter values at those keyframes. See below for more information about what you can do here.
  • Copy the contents of the "Output" textbox at the bottom. If you are signed in (via the button at the top right), you can choose to upload the output instead, and then copy the resulting URL. All subsequent changes will be pushed to the same URL, so you won't need to copy & paste again.

Step 2: Generate the video

  • Head to the SD web UI go to the Deforum tab and then the Init tab.
  • Paste the JSON or URL you copied in step 1 into the Parseq section at the bottom of the page.
  • Fiddle with any other Deforum / Stable Diffusion settings you want to tweak. Rember in particular to check the animation mode, the FPS and the total number of frames to make sure they match Parseq.
  • Click generate.

Examples

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.

Features

Keyframed parameter values with scriptable interpolation

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

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.

Function live documentation

You can visualise and play with all interpolation logic using Parseq's live documentation.

Operators

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.

Context variables

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· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptaiai-artai-video-generatordeforum

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具