Documentation Index
Fetch the complete documentation index at: https://docs.trainy.ai/llms.txt
Use this file to discover all available pages before exploring further.
Logging
You can log video in the following formats:- MP4 - MPEG-4 Part 14 container format
- GIF - Graphics Interchange Format
- WebM - Open web media format
- M4A - MPEG-4 Audio format
- OGG - Free, open container format
pluto.Video class:
| Parameter | Type | Description |
|---|---|---|
data | Union[str, np.ndarray] | The video data to log. Can be a path to a video file or a NumPy array. |
rate | int | The frame rate of the video. Defaults to 30. |
caption | str | A caption for the video. |
format | str | The format of the video. Defaults to mp4. |
Examples
Logging Videos from File Paths
Logging Videos from NumPy Arrays
Viewing
Logged videos appear as playable widgets. Each video card includes standard playback controls (play/pause, seek) and displays the filename and associated run.
Step Navigation
If you log videos at multiple training steps, use the step slider below the players to browse through different steps. When multiple video groups are displayed in the same section, their step sliders can be linked so that changing the step on one group changes all of them simultaneously. Click the lock icon on the step navigator to toggle sync on or off.Multi-Sample Logging
If you log a list of videos at the same step under one log name (e.g.pluto.log({"rollouts": [pluto.Video(a), pluto.Video(b)]}, step=10)), every video renders inside the same card with a per-cell â—€ i / N â–¶ nav row above the player. The same nav row appears next to the filename in the fullscreen video viewer, and the inline and fullscreen states stay in sync.
