mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
upscaler_utils: Reduce logging
* upscale_with_model: Remove debugging logging occurring in loop as it's an excessive amount of noise when running w/ DEBUG log levels.
This commit is contained in:
parent
45b8a499a7
commit
3c0177a24b
@ -69,10 +69,8 @@ def upscale_with_model(
|
|||||||
for y, h, row in grid.tiles:
|
for y, h, row in grid.tiles:
|
||||||
newrow = []
|
newrow = []
|
||||||
for x, w, tile in row:
|
for x, w, tile in row:
|
||||||
logger.debug("Tile (%d, %d) %s...", x, y, tile)
|
|
||||||
output = upscale_pil_patch(model, tile)
|
output = upscale_pil_patch(model, tile)
|
||||||
scale_factor = output.width // tile.width
|
scale_factor = output.width // tile.width
|
||||||
logger.debug("=> %s (scale factor %s)", output, scale_factor)
|
|
||||||
newrow.append([x * scale_factor, w * scale_factor, output])
|
newrow.append([x * scale_factor, w * scale_factor, output])
|
||||||
p.update(1)
|
p.update(1)
|
||||||
newtiles.append([y * scale_factor, h * scale_factor, newrow])
|
newtiles.append([y * scale_factor, h * scale_factor, newrow])
|
||||||
|
Loading…
Reference in New Issue
Block a user