1inkusFace commited on
Commit
12fbabf
·
verified ·
1 Parent(s): 5cd1aa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -202,7 +202,7 @@ def infer_60(
202
  with torch.no_grad():
203
  upscale2 = upscaler_2(sd_image, tiling=True, tile_width=256, tile_height=256)
204
  print('-- got upscaled image --')
205
- downscale2 = upscale2.resize((upscale2.width // 4, upscale2.height // 4),Image.LANCZOS)
206
  upscale_path = f"sd35ll_upscale_{timestamp}.png"
207
  downscale2.save(upscale_path,optimize=False,compress_level=0)
208
  pyx.upload_to_ftp(upscale_path)
@@ -251,7 +251,7 @@ def infer_90(
251
  with torch.no_grad():
252
  upscale2 = upscaler_2(sd_image, tiling=True, tile_width=256, tile_height=256)
253
  print('-- got upscaled image --')
254
- downscale2 = upscale2.resize((upscale2.width // 4, upscale2.height // 4),Image.LANCZOS)
255
  upscale_path = f"sd35ll_upscale_{timestamp}.png"
256
  downscale2.save(upscale_path,optimize=False,compress_level=0)
257
  pyx.upload_to_ftp(upscale_path)
@@ -296,7 +296,7 @@ def infer_100(
296
  with torch.no_grad():
297
  upscale2 = upscaler_2(sd_image, tiling=True, tile_width=256, tile_height=256)
298
  print('-- got upscaled image --')
299
- downscale2 = upscale2.resize((upscale2.width // 4, upscale2.height // 4),Image.LANCZOS)
300
  upscale_path = f"sd35ll_upscale_{timestamp}.png"
301
  downscale2.save(upscale_path,optimize=False,compress_level=0)
302
  pyx.upload_to_ftp(upscale_path)
 
202
  with torch.no_grad():
203
  upscale2 = upscaler_2(sd_image, tiling=True, tile_width=256, tile_height=256)
204
  print('-- got upscaled image --')
205
+ downscale2 = upscale2.resize((upscale2.width // 2, upscale2.height // 2),Image.LANCZOS)
206
  upscale_path = f"sd35ll_upscale_{timestamp}.png"
207
  downscale2.save(upscale_path,optimize=False,compress_level=0)
208
  pyx.upload_to_ftp(upscale_path)
 
251
  with torch.no_grad():
252
  upscale2 = upscaler_2(sd_image, tiling=True, tile_width=256, tile_height=256)
253
  print('-- got upscaled image --')
254
+ downscale2 = upscale2.resize((upscale2.width // 2, upscale2.height // 2),Image.LANCZOS)
255
  upscale_path = f"sd35ll_upscale_{timestamp}.png"
256
  downscale2.save(upscale_path,optimize=False,compress_level=0)
257
  pyx.upload_to_ftp(upscale_path)
 
296
  with torch.no_grad():
297
  upscale2 = upscaler_2(sd_image, tiling=True, tile_width=256, tile_height=256)
298
  print('-- got upscaled image --')
299
+ downscale2 = upscale2.resize((upscale2.width // 2, upscale2.height // 2),Image.LANCZOS)
300
  upscale_path = f"sd35ll_upscale_{timestamp}.png"
301
  downscale2.save(upscale_path,optimize=False,compress_level=0)
302
  pyx.upload_to_ftp(upscale_path)