知识库 · AI 视频
FizzleDorf的 Deforum指南
FizzleDorf的Deforum完整指南,涵盖安装运行、关键帧设置、Prompt编写、Init图像、视频输出、2D/3D运动、ControlNet、Hybrid Video等核心功能,帮助用户快速掌握Stable Diffusion动画创作。
FizzleDorf的 Deforum指南
2025年9月11日修改
return to main page:
https://rentry.org/AnimAnon
Deforum
FAQ and Troubleshooting if there is a problem you are experiencing and persists or isn't documented in the wiki, check here.
Introduction
This Page is an overview of the features and settings in the Deforum extension for the Automatic1111 Webui. If you are using the notebook in Google Colab, use this guide for the overview of controls (This is also a good alternate reference for A1111 users as well).
The Extension has a separate tab in the Webui after you install and restart. In it, there is another set of tabs for each section of Deforum. I'll be giving a breakdown of the controls, parameters and uses.
Comparison videos were created by hithereai, thanks for putting together these great examples!
I plan on adding techniques, more workflows and resources like masks and settings files.
Run
Contains most of the settings you should be familiar with in txt2img and img2img with some additions:
Keyframes
Contains parameters that can be keyframed in the animation sequence. The parameters are explained later in this guide. What is important to understand is the syntax for keyframing the parameters moving forward:
"0:" and "12:" = keyframes to activate value
"(x)" and "(y)" = parameter values (pixels, CFG scale, Denoise strength, etc)
You must have "()" around the parameter value.
Values can be math functions. See below example:
//from the default zoom function to an altered function on frame 12.
//The parameter values will interpolate between each other. If you want a value to be constant until a specific keyframe:
//from frame 0 to 6, maintain the same value. From frame 6 to 12, interpolate the values.
See Animation Settings for more details on individual parameters
Keyframing Prompts uses a different syntax. You can see the prompt example later in the guide for comparison. Know the difference and it could save you a headache!
Main Settings
Contains the animation mode selection, max frames for the animation sequence, and the border behavior.
Most of these settings are used in all the animation modes.
Animations with fast canvas transformations may show repeating or stretched lines (See zoom examples).
Prompts
This is where prompts are keyframed in the animation sequence. The syntax is as follows:
where "0": and "12": = keyframes where prompt is resolved in interpolation.
Prompt A and B are positive prompts and NegPrompt is a negative prompt.
Positive prompts are written first
The negative prompt is read after --neg
The quotations must be surrounding the keyframe num and another set around the full prompt with the negative.
Be sure to have { } outside the array of keyframes.
This is keyframed as a 100 frame animation but can go longer off the last prompt.
Prompt Constants
These prompt inputs use the same syntax as you would prompt normally in imagen. These inputs are prepended to of your keyframed prompts. This is very handy for keeping the same subject across all the frames while keeping the animation prompt clean and easy to read.
Composable Mask scheduling
Masks that are swapped over designated keyframes. You can keyframe regular masks or noise masks.
Init
Settings for initializing the animation from an image as well as mask settings. Pretty straight forward for setting up as it is very similar to img2img settings. The input image and mask can be set from a URL as seen in the default values.
Init Image
Mask Init
Video Init
The rest of the mask settings behave just like regular img2img in A1111 webui.
Parseq
The Parseq dropdown is for parsing the JSON export from Parseq. I have a separate guide on how to use Parseq here .
Video Input
Video Output
Output Settings
Manual Settings
Frame Interpolation (RIFE)
Use RIFE and other Video Frame Interpolation methods to smooth out, slow-mo (or both) your output videos.
Animation Modes:
A drop-down of the available animation modes. There are four different types to choose from: Interpolation, 2D, 3D, and Video Input. Below is a brief description, examples and settings of each mode.
Interpolation Mode
This mode is purely for txt2img prompt interpolation using the AND operator. A more in depth explanation and techniques can be found here
In this section I will be going over carrying over techniques from my guide on prompt interpolation. I recommend reading through that first before continuing through this section to get the most out of it.
>>>>>Setup<<<<<
In order for things to work properly a few settings need to be changed (Assuming you are starting with default Deforum settings):
The seed_behavior (under the "Run" tab) needs to be set to "fixed" (You can also use schedule to add seed interpolations, just make sure it isn't changing all the time)
The animation_mode under the "Keyframes" tab needs to be set to "Interpolation".
Color correction is disabled by default in this mode.
The base interpolation in this mode is not working properly but I have found a fix that helps smooth out the interpolations and provide the necessary frames for chaining and looping. It's not perfect but it gets decent results.
Where t = the current keyframe
x = the difference between keyframes.
Prompt A: 1-t/(x) starts with a weight of 1 and interpolates to 0.
Prompt B: t/(x) starts with a weight of 0 and interpolates to 1.
This is creating our own prompt interpolation as a sort of override.
Example:
Chaining and Looping Interpolation Clips Placeholder fix :
unless interpolation mode gets fixed or I find a way to have the negative prompt stay constant the key poses will look different enough to not fit in the sequence. Looping requires quite a few frames to get deleted.
>>>>>Storyboard<<<<<
Instead of using an X/Y grid, you can use the animation prompts to storyboard your sequence. I would recommend using the webui images browser extension for quick access to the storyboard sequence to check your key poses or transitions. You can find the extension here if you don't already have it: https://github.com/yfszzx/stable-diffusion-webui-images-browser
To do this, set up your prompts so they are 1 frame apart from each other. Also set the # of frames in the animation to the total number of prompts you have.
Using the image browser, review the storyboard to see if any prompts need changing without having to generate the whole sequence. The Keyed frames will be replicated when you change the keyframe values.
if you are using a seed schedule, make sure you set your seeds to the corresponding keyframes in the prompt.
Guided Images
If you plan on using guided images, The seed behavior needs to be set to Seed Schedule.
Guided images is somewhat self explanatory. Use images from a URL or PATH to guide the latent to specified keyframes. You can use this as a guided image tool or as a looper depending on your settings in the keyframe images field.
the number of frames between each keyframe should be greater than the tweening frames.
at the moment, there is a JSON error if you use \ in your path. Use / instead.
Default Value for keyframe guidance:
2D Motion
Shared parameters in 2D and 3D animation modes. Simulates 2D motion of the canvas.
>>>>>Motion Parameters<<<<<
>>>>>Examples<<<<<
notice the lines being generated while zooming out in wrap mode.
Perspective Flip
2D canvas transformations. These parameters only work in 2D mode (You can now use 3D mode with any and all 2D Motion Parameters!) are meant to simulate 3D canvas rotations and movements. This is mainly for low vram machines that can't generate 3D mode animations efficiently or at all but can be used for neat effects in conjunction with 3D mode
>>>>>Motion Parameters<<<<<
>>>>>Examples<<<<<
3D Motion, Depth & FOV
3D canvas transformations. These parameters only work in 3D mode.
Motion Parameters
see 2D motion for translation_x and translation_y.
Depth Warping
Fov settings
Strength and CFG Schedule
Oscillating strength has a lot of interesting effects. I have examples in the Parseq guide . You can recreate these effects using the expressions in the Math section near the end of the page.
Seed Behavior, SubSeed and Seed Schedules
Seed Behavior
How the seed behaves over time (keyframes). There are four different Settings in the Auto1111 extension.
3D and 2D modes overbloom when set to fixed. Iter or a schedule that changes over time do much better.
Subseed Schedule
>>>>>Examples<<<<<
The following is to illustrate the effects of resizing the seed. The original resolution of the generated images is 512x512. All examples also have seed schedule enabled and using expression (1+t) in the schedule
Seed Schedule
a handy expression for mimicking the behavior of the iter seed mode is `"desired seed" + t
Notice the bloom effect when the seed stays constant after frame 12.
Step and Sampler Schedules
Checkpoint and Clip Skip Schedules
Noise Settings
You can select and edit the behavior of perilin noise using the settings here.
Coherence
Color Coherence : Contains 3 different CC options: LAB, HSV, RGB as well as the option to turn it off.
Anti Blur
ControlNet
Deforum also had controlnet implementation which is really handy for rotoscoping videos. A lot of the controls are the same save for the video and video mask inputs. You will notice a lot of flickering in the raw output. There is ways to mitigate this such as the Ebsynth utility, diffusion cadence (under the Keyframes Tab) or frame interpolation (Deforum has it's own implementation of RIFE. see Outputs section for details ). Video Loopback is also another way to mitigate this (it will take trial and error to get the right settings).
To use this implementation, select enable to reveal the parameters. Init image (under the Init tab) also needs to be checked. You can use controlnet in any of the animation modes. I'll be going more in depth with each one in time. Below are parameter explanations that can help get the most out of controlnet in animations. Any other settings not covered can be learned about in This Rentry Guide .
Some tips for using controlnet in Deforum:
More info about ControlNets can be found in the Rotoscope guide
Hybrid Video Mode
Video mix settings for 2D and 3D modes using compositing methods and masking. A document was put together by the dev who implemented this. You can read about it here
Math Presets for Parameters
The Deforum math articleis a handy guide for understanding how to use math in Deforum . Desmos calculator is a handy tool for planning your oscillations and plots with a visualization as well. Supported Math functions can be found Here .
I'll be adding more presets as I come back to editing the guide. Stay tuned!
Handy Resources
return to main page:
https://rentry.org/AnimAnon