Skip to content

Commit

Permalink
SwinIR: pass model.scale
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 3, 2024
1 parent dfdc512 commit 3d31d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions-builtin/SwinIR/scripts/swinir_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def do_upscale(self, img: Image.Image, model_file: str) -> Image.Image:
model,
tile_size=shared.opts.SWIN_tile,
tile_overlap=shared.opts.SWIN_tile_overlap,
scale=4, # TODO: This was hard-coded before too...
scale=model.scale,
desc="SwinIR",
)
devices.torch_gc()
Expand Down

0 comments on commit 3d31d5c

Please sign in to comment.