Spaces:
Running
Running
from PIL import Image | |
from torchvision import transforms | |
def Bilinear_for_deployment(lr_image): | |
w, h = lr_image.size | |
sr_image = transforms.functional.resize(lr_image, size=(h*4, w*4), interpolation=transforms.InterpolationMode.BILINEAR, antialias=True) | |
return sr_image | |