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')
|
interactive |
bool
|
Whether the image should be interactive. This is False by default to reduce jupyter file size. |
False
|