From 5d13629ee83ccb5f77603c40b4a293b3a302ab2d Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Mon, 3 Jul 2023 11:39:48 -0500 Subject: [PATCH] fix(api): log number of tiles contributing to each image pixel --- api/onnx_web/chain/tile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/onnx_web/chain/tile.py b/api/onnx_web/chain/tile.py index 4425df82..e766e715 100644 --- a/api/onnx_web/chain/tile.py +++ b/api/onnx_web/chain/tile.py @@ -149,6 +149,7 @@ def blend_tiles( axis=2, ) + logger.trace("mean tiles contributing to each pixel: %s", np.mean(count)) pixels = np.where(count > 0, value / count, value) return Image.fromarray(np.uint8(pixels))