ford442 commited on
Commit
8e6c9b0
·
verified ·
1 Parent(s): 725717f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -267,7 +267,7 @@ def infer(
267
  refine.save(refine_path,optimize=False,compress_level=0)
268
  upload_to_ftp(refine_path)
269
  with torch.no_grad():
270
- upscale2 = upscaler_2(refine, tiling=True, tile_width=1024, tile_height=1024)
271
  print('-- got upscaled image --')
272
  downscale2 = upscale2.resize((upscale2.width // 4, upscale2.height // 4),Image.LANCZOS)
273
  upscale_path = f"sd35_upscale_{seed}.png"
 
267
  refine.save(refine_path,optimize=False,compress_level=0)
268
  upload_to_ftp(refine_path)
269
  with torch.no_grad():
270
+ upscale2 = upscaler_2(refine, tiling=True, tile_width=256, tile_height=256)
271
  print('-- got upscaled image --')
272
  downscale2 = upscale2.resize((upscale2.width // 4, upscale2.height // 4),Image.LANCZOS)
273
  upscale_path = f"sd35_upscale_{seed}.png"