Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
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"
|