Run this model with HF Jobs

Run MiniMaxAI/MiniMax-H3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/MiniMaxAI/MiniMax-H3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/MiniMaxAI/MiniMax-H3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

H3 timeline formats measured.

#132
by StefanK987 - opened

Measured: how H3 follows written times (412 clips) β€” At MM:SS.mmm is a clock, [Xs-Ys] is not

Several threads here argue over how to write times in an H3 prompt (#28, #47, #83), and #125 compared the At form with a range on two takes. I measured it at scale: 412 text-to-video clips, scored by scripts, counting three things in this order: is a written event omitted, do the events come in the written order, and how far from the written time do they start. Details of how this was pulled of matter, and are described in the post.

Short version

Best to worst format:

  1. [Shot 2] At 00:02.000, the camera cuts to …: 0.01–0.13 s
  2. [Shot 2] with no time, plain prose with no time, Timeline: with [2s-4s], [Shot 2: 2–4 s]: 0.3–0.9 s, no real difference between them
  3. 00:02.000–00:04.000 …, a line a shot: 1.2 s

For an event inside one shot, by events lost, then clips in the written order, over all clips of the study:

  1. At 00:01.500, before each event: 0 of 180 lost, 48 of 56 in order
  2. Timeline: with [1.5s-3s]: 2 of 180 lost, 31 of 56 in order; 1.5-3s: prefixes: 0 of 36 lost, 6 of 12 in order
  3. No times: 10 of 132 lost, 12 of 40 in order
  4. Each event tied to the one before ("As soon as …"): 14 of 124 lost, 18 of 36 in order
  5. Phase words ("Early in the clip"): 6 of 36 lost, 4 of 12 in order

Some findings

  • The guide's [Shot 2] At 00:03.000, the camera cuts to … is a real clock. In 6 s clips the cut came 0.01–0.13 s from the written time (40 clips). Written at 1.5, 3.0 and 4.5 s, a single cut came at 1.5, 3.0 and 4.4 s.
  • A [Xs-Ys] range does not place a cut. A single cut came at 3.8–5.2 s wherever its bracket said; written at 1.5 s it came 3.5 s late. In 20 s clips the bracket form's cuts were about 2 s off on average.
  • At MM:SS.mmm, also works before an event inside a shot, a use MiniMax's prompt guides do not document. It kept every event (0 of 180 lost) and the written order in 48 of 56 clips. The bracket form lost 2 of 180 and kept the order in 31 of 56: a spoken line tends to come early, before the event written ahead of it.
  • Leaving times out loses events inside a shot, more the longer the clip: the same sentences without times lost 10 of 132 events.
  • A spoken line follows no clock in a 6 s clip. It began at 3.1–4.9 s whether written at 2.0, 3.2 or 4.4 s, in both forms. In 12 s clips it does follow the in-shot timestamp, loosely.

Related posts and studies

Method

Setup variation of created media assets, using prompts for best accuracy timing. Timing extraction was then done using a dual detection using fast whisper and simple in frame statistics, which only works for simple scenes and well structured dialog, which limits any conclusions regarding general accuracy. The assumption the conclusion rests on is that for a more comprehensive study, that would include more data and data variation, it would affect the accuracy of the timings, but not the ranking of the format for time-line specification.

Examples: two of the worst clips

Both clips are the bracket form (Timeline: with [Xs-Ys]), and they are its worst individual results, but the bracket form is not the worst method in the ranking. This was the approach I used until after this study completed.

For a cut, the bracket form is in the middle group, 0.3 to 0.9 s off on average, no different from writing no time at all. The worst for timing is the bare 00:02.000–00:04.000 line, at 1.2 s, not shown here

For events inside a shot, the bracket form is second best. It did lose some events (2 of 180). The methods without times are worse, because they drop events outright.

A simple description of these examples: how badly the most widely used form can go wrong, on a bad seed, where it has been explored for 9 hours uninterupted.

The corridor was meant to last a quarter of the clip and lasts most of it. The same cut on the same seed, written [Shot 2] At 00:01.500, the camera cuts to …, came at 1.5 s.

1. A cut 3.7 s late (6 s clip, seed 4)

The full prompt:

Style: realistic live-action, cinematic.

Timeline:
[0s-1.5s] Static wide shot of a long, empty concrete corridor in flat grey daylight: bare grey walls and a grey floor, no colour anywhere.
[1.5s-6s] Cut to a static wide shot of a photographic darkroom lit only by a red safelight, with trays on a bench and prints hanging on a line: the whole picture is deep red.

Camera: static shots joined by hard cuts.

Audio: quiet room tone in every place; no voices, no music.
what should happen written measured off by
cut from the grey corridor to the red darkroom 1.5 s 5.21 s 3.71 s late

The corridor was meant to last a quarter of the clip and lasts most of it. The same cut on the same seed, written [Shot 2] At 00:01.500, the camera cuts to …, came at 1.5 s.

2. A line said first, 6.8 s early (12 s clip, seed 1, one shot)

The full prompt:

Style: realistic live-action, cinematic.

Scene: A bare room with white walls and a grey concrete floor, lit by white ceiling lamps. A woman in a grey coat stands in the middle of the room, facing the camera.

Timeline:
[0s-6s] Static wide shot: the room is in plain white light; the woman stands still and silent.
[6s-7.5s] The lamps turn deep blue at once, and the whole room is bathed in blue light.
[7.5s-9s] The woman says: "The door is open."
[9s-10.5s] The lamps turn deep green at once, and the whole room is bathed in green light.
[10.5s-12s] The woman says: "We leave at dawn."

Camera: static, one continuous take, no cuts.

Audio: a quiet room; the woman's voice; no music.

I liked that you counted missing events separately from timing error. In two much smaller tests I shifted the cue by eight frames and got 31 of 32 cuts within a quarter second of target. Did you see a consistent early or late bias within any one prompt format? My short-film workflow is here: https://github.com/martinsommer3-oss/Filmworkbench

Sign up or log in to comment