gizai/tasks/video
the video task. A model family that makes video gives a Filmer (gizai/family's video): its GPU, and make, which makes an MP4 of what is asked (VideoAsk); progress hears the stage, the step done and the steps, and stops the video when it returns false. giz ai video, the studio and a program use every video model so.
import * as Video from "gizai/tasks/video";Types
VideoAsk
type VideoAsk = { prompt: string; width: i64; height: i64; frames: i64; steps: i64; seed: i64; }What is asked of a video model: the prompt, and the size in pixels, the frames, the steps and the noise's seed, each 0 for the model's own.
prompt:stringwidth:i64height:i64frames:i64steps:i64seed:i64
Filmer
type Filmer = { gpu: Gpu; make: (ask: VideoAsk, progress: (stage: string, step: i64, total: i64) => bool) => bytes throws string; }What a video family gives: the card it loaded on, and make, which returns the MP4 of ASK. progress hears the
stage, the step done and the steps; false from it stops the work.
gpu:M7.Gpumake:(ask: M78.VideoAsk, progress: (stage: string, step: i64, total: i64) => bool) => bytes throws string
Functions
videoAsk
function videoAsk(prompt: string): VideoAskA video of prompt as the model makes it by default.
videoAskOf
function videoAskOf(j: JsonValue, seed0: i64): VideoAsk throws stringWhat is asked in the fields of j: prompt, the size as resolution ("WIDTHxHEIGHT") or as width and
height, the frames, the steps, and the seed (seed0 when it has none or it is negative). A field that is not
there is the model's own.
Effects: fail, alloc.