Deprecated¶
ImgSaveHandler¶
-
class
ImgSaveHandler
[source]¶ Logging Handler which saves images to dir
Deprecated since version 0.1:
ImgSaveHandler
will be removed in next release and is deprecated in favor oftrixi.logging
ModulesWarning
ImgSaveHandler
will be removed in next releaseSee also
TrixiHandler
-
_save_image_batch
(batch, prefix, is_train=True)[source]¶ Saving image batch to save_dir
Parameters: - batch (iterable) – batch of images
- prefix (str) – file-prefix
-
_to_image
¶ staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
- class C:
@staticmethod def f(arg1, arg2, …):
…
It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class.
Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.
-
VisdomImageHandler¶
-
class
VisdomImageHandler
[source]¶ Logging Handler to show images and metric plots with visdom
Deprecated since version 0.1:
VisdomImageHandler
will be removed in next release and is deprecated in favor oftrixi.logging
ModulesWarning
VisdomImageHandler
will be removed in next releaseSee also
Visdom
TrixiHandler
-
_to_image
¶ staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
- class C:
@staticmethod def f(arg1, arg2, …):
…
It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class.
Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.
-
_to_scalar
¶ staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
- class C:
@staticmethod def f(arg1, arg2, …):
…
It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class.
Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.
-
VisdomImageSaveHandler¶
-
class
VisdomImageSaveHandler
[source]¶ Logs images to dir and to visdom
Deprecated since version 0.1:
VisdomImageSaveHandler
will be removed in next release and is deprecated in favor oftrixi.logging
Modules- ..warning::
VisdomImageSaveHandler
will be removed in next release
See also
Visdom
VisdomImageHandler
TrixiHandler
VisdomImageSaveStreamHandler¶
-
class
VisdomImageSaveStreamHandler
[source]¶ Logs metrics to streams, metric plots and images to visdom
Deprecated since version 0.1:
VisdomImageSaveStreamHandler
will be removed in next release and is deprecated in favor oftrixi.logging
ModulesWarning
VisdomImageSaveStreamHandler
will be removed in next releaseSee also
Visdom
VisdomImageHandler
MultiStreamHandler
TrixiHandler
VisdomStreamHandler¶
-
class
VisdomStreamHandler
[source]¶ Logs images and metric plots to visdom and scalar values to streams
Deprecated since version 0.1:
VisdomStreamHandler
will be removed in next release and is deprecated in favor oftrixi.logging
ModulesWarning
VisdomStreamHandler
will be removed in next releaseSee also
Visdom
VisdomImageHandler
MultiStreamHandler
TrixiHandler