Media Reporting

The example demonstrates reporting images, audio, and video. Upload from a local path, provide a BytesIO stream, or provide the URL of media already uploaded to some storage. Use the Logger.report_media method.

ClearML uploads media to the bucket specified in the ClearML configuration file, or you can configure ClearML for image storage, see Logger.set_default_upload_destination (storage for artifacts is different). Set credentials for storage in the ClearML configuration file.

ClearML reports media in the ClearML Web UI, experiment details, RESULTS tab, DEBUG SAMPLES sub-tab.

When the script runs, it creates an experiment named audio and video reporting, which is associated with the examples project.

Reporting (uploading) media from a source by URL

Report by calling the Logger.report_media method using the url parameter.

# report video, an already uploaded video media (url)
    'video', 'big bunny', iteration=1,

#  report audio, report an already uploaded audio media (url)
    'audio', 'pink panther', iteration=1,


Double click a thumbnail and the audio player opens.

Reporting (uploading) media from a local file

Use the local_path parameter.

#  report audio, report local media audio file
    'audio', 'tada', iteration=1,
    local_path=os.path.join('data_samples', 'sample.mp3'))


Double click a thumbnail and the video player opens.