Skip to content

Commit

Permalink
lint(api): move tile gradient logs to debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 3, 2023
1 parent 197dc48 commit 3653723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/chain/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def blend_tiles(
overlap: float,
):
adj_tile = int(float(tile) * (1.0 - overlap))
logger.trace(
logger.debug(
"adjusting tile size from %s to %s based on %s overlap", tile, adj_tile, overlap
)

Expand All @@ -112,7 +112,7 @@ def blend_tiles(

# gradient blending
grad_x, grad_y = get_tile_grads(left, top, adj_tile, width, height)
logger.trace("tile gradients: %s, %s, %s", points, grad_x, grad_y)
logger.debug("tile gradients: %s, %s, %s", points, grad_x, grad_y)

mult_x = [np.interp(i, points, grad_x) for i in range(tile * scale)]
mult_y = [np.interp(i, points, grad_y) for i in range(tile * scale)]
Expand Down

0 comments on commit 3653723

Please sign in to comment.