fix(api): log tile size and overlap
This commit is contained in:
parent
4b84188f6e
commit
eef055eddd
|
@ -2,9 +2,9 @@ from typing import Optional
|
|||
|
||||
from PIL import Image
|
||||
|
||||
from onnx_web.params import ImageParams, Size, SizeChart, StageParams
|
||||
from onnx_web.server.context import ServerContext
|
||||
from onnx_web.worker.context import WorkerContext
|
||||
from ..params import ImageParams, Size, SizeChart, StageParams
|
||||
from ..server.context import ServerContext
|
||||
from ..worker.context import WorkerContext
|
||||
|
||||
|
||||
class BaseStage:
|
||||
|
|
|
@ -147,6 +147,14 @@ def process_tile_grid(
|
|||
tiles_x = ceil(width / adj_tile)
|
||||
tiles_y = ceil(height / adj_tile)
|
||||
total = tiles_x * tiles_y
|
||||
logger.debug(
|
||||
"processing %s tiles (%s x %s) with adjusted size of %s, %s overlap",
|
||||
total,
|
||||
tiles_x,
|
||||
tiles_y,
|
||||
adj_tile,
|
||||
overlap,
|
||||
)
|
||||
|
||||
tiles: List[Tuple[int, int, Image.Image]] = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue