PyTorch with Matplotlib

Trains is now ClearML

This documentation applies to the legacy Trains versions. For the latest documentation, see ClearML.

The example demonstrates the integration of Trains into code which uses PyTorch and Matplotlib. The example script calls Matplotlib methods to show images, each with a different title. Trains automatically logs the images as debug samples. When the script runs, it creates an experiment named pytorch with matplotlib example which is associated with the examples project.

The images shown in the example script's imshow function appear in RESULTS > DEBUG SAMPLES, by metric.


Select a debug sample by metric.


Open the debug sample in the image viewer.