2021-05-13 23:48:51 +00:00
|
|
|
---
|
|
|
|
title: PyTorch with Matplotlib
|
|
|
|
---
|
|
|
|
|
|
|
|
The [pytorch_matplotlib.py](https://github.com/allegroai/clearml/blob/master/examples/frameworks/pytorch/pytorch_matplotlib.py)
|
2022-03-13 13:07:06 +00:00
|
|
|
example demonstrates the integration of ClearML into code that uses PyTorch and Matplotlib.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
The example does the following:
|
2022-01-30 10:54:40 +00:00
|
|
|
* Creates an experiment 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
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2022-05-22 07:27:30 +00:00
|
|
|
The images shown in the example script's `imshow` function appear according to metric in **DEBUG SAMPLES**.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
Select a debug sample by metric.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
Open the debug sample in the image viewer.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|