ford442 commited on
Commit
5de0abb
·
verified ·
1 Parent(s): 6695bc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -318,7 +318,7 @@ def generate_30(
318
  with torch.no_grad():
319
  upscale = upscaler(images[0], tiling=True, tile_width=256, tile_height=256)
320
  downscale1 = upscale.resize((upscale.width // 4, upscale.height // 4), Image.LANCZOS)
321
- downscale_path = f"rv50_upscale_{timestamp}.png"
322
  downscale1.save(downscale_path,optimize=False,compress_level=0)
323
  upload_to_ftp(downscale_path)
324
  return image_paths, seed
@@ -382,7 +382,7 @@ def generate_60(
382
  with torch.no_grad():
383
  upscale = upscaler(images[0], tiling=True, tile_width=256, tile_height=256)
384
  downscale1 = upscale.resize((upscale.width // 4, upscale.height // 4), Image.LANCZOS)
385
- downscale_path = f"rv50_upscale_{timestamp}.png"
386
  downscale1.save(downscale_path,optimize=False,compress_level=0)
387
  upload_to_ftp(downscale_path)
388
  return image_paths, seed
@@ -446,7 +446,7 @@ def generate_90(
446
  with torch.no_grad():
447
  upscale = upscaler(images[0], tiling=True, tile_width=256, tile_height=256)
448
  downscale1 = upscale.resize((upscale.width // 4, upscale.height // 4), Image.LANCZOS)
449
- downscale_path = f"rv50_upscale_{timestamp}.png"
450
  downscale1.save(downscale_path,optimize=False,compress_level=0)
451
  upload_to_ftp(downscale_path)
452
  return image_paths, seed
 
318
  with torch.no_grad():
319
  upscale = upscaler(images[0], tiling=True, tile_width=256, tile_height=256)
320
  downscale1 = upscale.resize((upscale.width // 4, upscale.height // 4), Image.LANCZOS)
321
+ downscale_path = f"rv50_upscale_{timestamp}.png"
322
  downscale1.save(downscale_path,optimize=False,compress_level=0)
323
  upload_to_ftp(downscale_path)
324
  return image_paths, seed
 
382
  with torch.no_grad():
383
  upscale = upscaler(images[0], tiling=True, tile_width=256, tile_height=256)
384
  downscale1 = upscale.resize((upscale.width // 4, upscale.height // 4), Image.LANCZOS)
385
+ downscale_path = f"rv50_upscale_{timestamp}.png"
386
  downscale1.save(downscale_path,optimize=False,compress_level=0)
387
  upload_to_ftp(downscale_path)
388
  return image_paths, seed
 
446
  with torch.no_grad():
447
  upscale = upscaler(images[0], tiling=True, tile_width=256, tile_height=256)
448
  downscale1 = upscale.resize((upscale.width // 4, upscale.height // 4), Image.LANCZOS)
449
+ downscale_path = f"rv50_upscale_{timestamp}.png"
450
  downscale1.save(downscale_path,optimize=False,compress_level=0)
451
  upload_to_ftp(downscale_path)
452
  return image_paths, seed