neptunecontrib.api.video
¶
Module Contents¶
Functions¶
|
Logs a video file to ‘artifacts/video’ with player. |
-
neptunecontrib.api.video.
log_video
(path_to_file, video_name=None, experiment=None)[source]¶ Logs a video file to ‘artifacts/video’ with player.
Logs a video file to the ‘artifacts/video’ in the experiment, where you can play it directly from the browser.
You can also download raw video file to the local machine. Just use “three vertical dots” located to the right from the player.
- Parameters
path_to_file (
str
) – Path to video file.video_name (
str
, optional, default isNone
) – Name to be displayed in artifacts/video. | If None, file name is used.experiment (
neptune.experiments.Experiment
, optional, default isNone
) –For advanced users only. Pass Neptune Experiment object if you want to control to which experiment data is logged.IfNone
, log to currently active, and most recent experiment.
Example
log_video('video-file.mp4') log_video('/full/path/to/some/other/video/file.mp4') log_video('/full/path/to/some/other/video/file.mp4', 'my_video')
Note
Check out how the logged video file looks in Neptune: here.
Warning
Video files contribute to the storage usage. Be mindful with large video files.