Video
less than a minute
Format a video for logging to W&B.
Args | |
---|---|
data_or_path |
(numpy array, string, io) Video can be initialized with a path to a file or an io object. The format must be “gif”, “mp4”, “webm” or “ogg”. The format must be specified with the format argument. Video can be initialized with a numpy tensor. The numpy tensor must be either 4 dimensional or 5 dimensional. Channels should be (time, channel, height, width) or (batch, time, channel, height width) |
caption |
(string) caption associated with the video for display |
fps |
(int) The frame rate to use when encoding raw video frames. Default value is 4. This parameter has no effect when data_or_path is a string, or bytes. |
format |
(string) format of video, necessary if initializing with path or io object. |
Examples:
Log a numpy array as a video
Methods
encode
Class Variables | |
---|---|
EXTS |
Feedback
Was this page helpful?
Glad to hear it! If you have further feedback, please let us know.
Sorry to hear that. Please tell us how we can improve.