clearml-docs/docs/guides/frameworks/pytorch/pytorch_matplotlib.md
2025-03-05 16:38:02 +02:00

1.3 KiB

title
PyTorch with Matplotlib

The pytorch_matplotlib.py example demonstrates the integration of ClearML into code that uses PyTorch and Matplotlib.

The example does the following:

  • Creates a task named pytorch with matplotlib example, in the examples project.
  • The script calls Matplotlib methods to show images, each with a different title.
  • ClearML automatically logs the images as debug samples.

Debug Samples

The images shown in the example script's imshow function appear according to metric in DEBUG SAMPLES.

Debug samples Debug samples

Select a debug sample by metric.

Debug sample selection Debug sample selection

Click a debug sample to view it in the image viewer.

Debug sample image viewer Debug sample image viewer