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 of trixi.logging Modules

Warning

ImgSaveHandler will be removed in next release

See 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.

emit(record)[source]

Logging record message

Parameters:record (LogRecord) – values to log
Returns:if record.msg is not a dict
Return type:None

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 of trixi.logging Modules

Warning

VisdomImageHandler will be removed in next release

See 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.

emit(record)[source]

shows images and metric plots in visdom

Parameters:record (LogRecord) – entities to log
Returns:
  • if no connection to visdom could be found
  • if record.msg is not a dict
Return type:None

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 of trixi.logging Modules

..warning::
VisdomImageSaveHandler will be removed in next release

See also

Visdom VisdomImageHandler TrixiHandler

emit(record)[source]

log images to visdom and dir

Parameters:record (LogRecord) – entities to log

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 of trixi.logging Modules

Warning

VisdomImageSaveStreamHandler will be removed in next release

See also

Visdom VisdomImageHandler MultiStreamHandler TrixiHandler

emit(record: dict)[source]

Logs metrics to streams, metric plots and images to visdom

Parameters:record (dict) – entities to log

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 of trixi.logging Modules

Warning

VisdomStreamHandler will be removed in next release

See also

Visdom VisdomImageHandler MultiStreamHandler TrixiHandler

emit(record: dict)[source]

Logs images and metric plots to visdom and scalar values to streams

Parameters:record (LogRecord) – entities to log