1
0
Fork 0

clean up logging, use extra args

This commit is contained in:
Sean Sube 2023-01-28 17:15:42 -06:00
parent 4547bcef50
commit 3359138a83
3 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
version: 1
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
format: '[%(asctime)s] %(levelname)s: %(name)s: %(message)s'
handlers:
console:
class: logging.StreamHandler

View File

@ -1,3 +1,5 @@
from . import logging
from .chain import (
correct_gfpgan,
upscale_resrgan,

View File

@ -71,7 +71,7 @@ class ChainPipeline:
kwargs = {**pipeline_kwargs, **kwargs}
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:
logger.info('source image larger than tile size of %s, tiling stage',