sketchkit.stylization.brushstrokesengine.forger.util package

Submodules

sketchkit.stylization.brushstrokesengine.forger.util.img_proc module

sketchkit.stylization.brushstrokesengine.forger.util.logging module

sketchkit.stylization.brushstrokesengine.forger.util.logging.add_log_level_flag(parser)[source]
sketchkit.stylization.brushstrokesengine.forger.util.logging.default_log_setup(level=20, filename=None, append_count=False)[source]

Sets up default logging, always logging to stdout as well as file, if file is specified. If append_count, will search for filename with count and create a unique filename with the next int count before the extension. E.g., repeated calls to:

defaultLoggingSetup(filename=’log.txt’, append_count=True)

will result in files:

log00.txt log01.txt log02.txt …

Parameters:
  • level – logging level, e.g. logging.INFO

  • filename – if to log to file in addition to stdout, set filename

  • append_count – see above

Returns:

count, if append_count, else None

sketchkit.stylization.brushstrokesengine.forger.util.logging.log_tensor(t, name, use_logger, level=10, print_stats=False, detailed=False)[source]
sketchkit.stylization.brushstrokesengine.forger.util.logging.log_tensor_dict(d, name, use_logger, level=10)[source]

sketchkit.stylization.brushstrokesengine.forger.util.torch_data module

Module contents