Skip to content

Add first/last frame and multi-image keyframe conditioning#67

Open
tonywestonuk wants to merge 1 commit into
james-see:mainfrom
tonywestonuk:feature/multi-image-keyframes
Open

Add first/last frame and multi-image keyframe conditioning#67
tonywestonuk wants to merge 1 commit into
james-see:mainfrom
tonywestonuk:feature/multi-image-keyframes

Conversation

@tonywestonuk

Copy link
Copy Markdown

Generalize image-to-video conditioning from a single source image to an arbitrary set of keyframes, each pinned to a point on the timeline.

  • First frame / Last frame toggle for the primary source image.
  • Additional Keyframes UI: add any number of extra images, each with a Position (0% = first … 100% = last) and Strength.
  • GenerationParameters gains a Keyframe list + imageFramePosition, with backward-compatible decoding for older saved presets/profiles.
  • The bridge routes all image conditioning through the library's repeatable --keyframe PATH|FRAME_IDX|STRENGTH flag, mapping each timeline position to a latent frame index (8× temporal compression). Batch generation preserves keyframes/position.

⚠️ Depends on the matching mlx-video-with-audio change that adds the --keyframe flag — it must be released/installed before image-to-video works with this build: james-see/mlx-video-with-audio#2

Generalize image-to-video conditioning from a single source image to
an arbitrary set of keyframes, each pinned to a point on the timeline.

- "Use image as: First frame / Last frame" toggle for the primary
  source image (maps to a latent frame index).
- New "Additional Keyframes" UI: add any number of extra images, each
  with a Position (0% = first … 100% = last) and Strength.
- GenerationParameters gains a Keyframe list and imageFramePosition,
  with backward-compatible decoding for older saved presets/profiles.
- The generation bridge routes all image conditioning through the
  library's repeatable --keyframe PATH|FRAME_IDX|STRENGTH flag, mapping
  each timeline position to a latent frame index (8x temporal
  compression). Batch generation now preserves keyframes/position.

NOTE: this depends on the matching mlx-video-with-audio change that
adds multi-image keyframe support (the --keyframe flag). It must be
released/installed before image-to-video will work with this build:
james-see/mlx-video-with-audio#2

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant