mirror of
https://github.com/clearml/clearml-docs
synced 2025-02-25 05:24:39 +00:00
39 lines
990 B
Markdown
39 lines
990 B
Markdown
|
---
|
||
|
title: PyTorch with Matplotlib
|
||
|
---
|
||
|
|
||
|
The [pytorch_matplotlib.py](https://github.com/allegroai/clearml/blob/master/examples/frameworks/pytorch/pytorch_matplotlib.py)
|
||
|
example demonstrates the integration of **ClearML** into code that uses PyTorch and Matplotlib.
|
||
|
|
||
|
The example does the following:
|
||
|
1. The script calls Matplotlib methods to show images, each with a different title.
|
||
|
1. **ClearML** automatically logs the images as debug samples.
|
||
|
1. 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 according to metric in **RESULTS** **>** **DEBUG SAMPLES**.
|
||
|
|
||
|

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

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

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