Repository navigation
Show the subjects of up to three pictures in a new scene - #319
Merged
Merged
Conversation
A picture sent with a video request used to become the first frame, so a picture of another shape was cropped or framed by blurred bands. MiniMax-H3 on the farm now takes up to three reference pictures (aifarm-draw #58): people, animals, objects or places it shows whole in a scene the prompt describes. Pictures become references unless the user asks to animate or continue a picture (оживи, анимируй, first/last frame); then they stay the first and last frame as before. References are sent as reference_b64, a picture longer than 4:1 is left out, and the frame comes from the request, not from the pictures. A separate optimizer prompt writes MiniMax-H3's six-section reference format with one subject per pictured person, animal, object or place.
Owner
Author
|
This is intentional. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A picture sent with a video request used to become the video's first frame. A square picture in a vertical video was therefore cropped (before aifarm-draw #55) or placed over blurred bands (after #55). MiniMax-H3 on the farm now accepts reference pictures (aifarm-draw #58,
reference_b64, up to 3): it shows the pictured people, animals, objects or places whole, in a scene that the prompt describes.Picture role
asks_to_animate_picture). By default pictures become references. A request to animate or continue a picture keeps the current behaviour: first frame, plus last frame for two pictures. Trigger words: оживи…, оживля…, анимируй, анимировать, анімуй, продолжи, продолжить, продовжи…, превра…, animate, continue, morph, "first/last/start/end frame", "этот кадр", "to life", "turns into". "Анимированное видео", "продолжительность" and "оживлённая улица" do not trigger it.make_video/make_movienow accept up to three pictures (file_idsor attachments). The job meta getsreferencesnext toframes, and only one of the two is ever set.Pipeline
video_jobsloads up to three references. It drops a reference that fails to load or whose sides are more than 4:1 apart, because draw-api rejects those with 400. The remaining references go to draw-api asreference_b64together withsize: 480pandseconds: 10.Prompt
New
prompts/video/movie_reference_optimizer.prompt. It produces MiniMax-H3's six-section reference format (subject_definitions,summarywith[reference generation],retention_analysis,detailed_description,overall_soundscape,non_diegetic_music), with one<Subject N>per pictured item and speech in<d>[Language] …</d>.The format follows the MiniMax-H3 reference guide and aifarm-draw
integrate_to_discovery.md. Picture descriptions come from the existing vision describer and are passed asPicture N: ….Checked by hand on the farm's dialog Gemma, with real request text, picture descriptions and schema:
Both outputs have all six sections, keep the features to preserve, and put the speech in
<d>[Russian]…</d>.The
make_moviedescription, the dialog system prompt and/helpnow describe both modes.Checks
cargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningsopenplotva-taskman(70),openplotva-media(68),openplotva-dialog(115),openplotva-llm(236),openplotva-prompts(10),openplotva-app(1503) andopenplotva-telegram(246).referencesmeta round trip;