feat(api): save output of each stage in debug mode
This commit is contained in:
parent
8f1cbc83f8
commit
680adc70ea
|
@ -96,6 +96,9 @@ class ChainPipeline:
|
||||||
logger.info('finished stage %s, result size: %sx%s',
|
logger.info('finished stage %s, result size: %sx%s',
|
||||||
name, image.width, image.height)
|
name, image.width, image.height)
|
||||||
|
|
||||||
|
if is_debug():
|
||||||
|
image.save(path.join(ctx.output_path, 'last-stage.png'))
|
||||||
|
|
||||||
end = monotonic()
|
end = monotonic()
|
||||||
duration = timedelta(seconds=(end - start))
|
duration = timedelta(seconds=(end - start))
|
||||||
logger.info('finished pipeline in %s, result size: %sx%s',
|
logger.info('finished pipeline in %s, result size: %sx%s',
|
||||||
|
|
Loading…
Reference in New Issue