home/ atoms/ deforum-keyframe-schedule-syntax

Deforum keyframe schedules interpolate parameter values linearly between defined frame:value pairs

Every Deforum parameter whose name ends in _schedule can be keyframed with the same syntax: a comma-separated list of frame:(value) pairs. Between defined keyframes, values do not hold; they move linearly toward the next defined value, frame by frame. Example: 0:(0), 10:(10) yields 0, 1, 2, … 10 across frames 0-10. Parameters without schedule support stay fixed throughout the animation. Schedules and prompts can additionally use mathematical expressions for dynamic values. This syntax is prerequisite to all Deforum animation work — every motion, noise, strength, and CFG schedule uses it.

Examples

strength_schedule: 0:(0.7), 50:(0.5), 100:(0.65) — lowers diffusion strength to frame 50 then rises again. zoom: 0:(1.0), 100:(1.05) — a slow zoom over 100 frames. Value at an in-between frame is the linear interpolation of its bracketing keyframes.

Assessment

Write a Deforum keyframe schedule for a zoom parameter that starts at 1.0, peaks at 1.05 at frame 30, then returns to 1.0 at frame 60. What will the value be at frame 15?

“The values between the frames won't stay the same until the next new value, but will instead move linearly towards the next value, frame by frame.”
corpus · deforum-animation-settings-wiki-keyframed-diffusion-animatio · chunk 1