image_saver
ImageSaver
¶
Bases: Trace
A trace that saves images to the disk.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inputs |
Union[str, Sequence[str]]
|
Key(s) of images to be saved. |
required |
save_dir |
str
|
The directory into which to write the images. |
getcwd()
|
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')
|