Skip to content

Commit

Permalink
pref: make upscaler use fp16 for better efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedrennan committed Jan 2, 2024
1 parent e2b3e82 commit b0d3a66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imaginairy/enhancers/upscale_realesrgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def realesrgan_upsampler(tile=512, tile_pad=50, ultrasharp=False):
tile=tile,
device=device,
tile_pad=tile_pad,
half=True
)

upsampler.device = torch.device(device)
Expand Down

0 comments on commit b0d3a66

Please sign in to comment.