image_viewer
ImageViewer
¶
Bases: Trace
A trace that interrupts your training in order to display images on the screen.
This class is useful primarily for Jupyter Notebook, or for debugging purposes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inputs |
Union[str, Sequence[str]]
|
Key(s) of images to be displayed. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Trace in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
('eval', 'test')
|
width |
int
|
The width in inches of the figure. |
12
|
height |
int
|
The height in inches of the figure. |
6
|