clean up logging, use extra args
This commit is contained in:
parent
4547bcef50
commit
3359138a83
|
@ -1,7 +1,7 @@
|
||||||
version: 1
|
version: 1
|
||||||
formatters:
|
formatters:
|
||||||
simple:
|
simple:
|
||||||
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
format: '[%(asctime)s] %(levelname)s: %(name)s: %(message)s'
|
||||||
handlers:
|
handlers:
|
||||||
console:
|
console:
|
||||||
class: logging.StreamHandler
|
class: logging.StreamHandler
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
from . import logging
|
||||||
|
|
||||||
from .chain import (
|
from .chain import (
|
||||||
correct_gfpgan,
|
correct_gfpgan,
|
||||||
upscale_resrgan,
|
upscale_resrgan,
|
||||||
|
|
|
@ -71,7 +71,7 @@ class ChainPipeline:
|
||||||
kwargs = {**pipeline_kwargs, **kwargs}
|
kwargs = {**pipeline_kwargs, **kwargs}
|
||||||
|
|
||||||
logger.info('running stage %s on result image with dimensions %sx%s, %s',
|
logger.info('running stage %s on result image with dimensions %sx%s, %s',
|
||||||
name, image.width, image.height, kwargs)
|
name, image.width, image.height, kwargs.keys())
|
||||||
|
|
||||||
if image.width > stage_params.tile_size or image.height > stage_params.tile_size:
|
if image.width > stage_params.tile_size or image.height > stage_params.tile_size:
|
||||||
logger.info('source image larger than tile size of %s, tiling stage',
|
logger.info('source image larger than tile size of %s, tiling stage',
|
||||||
|
|
Loading…
Reference in New Issue