thiemcun203's picture
Interpolation added (#5)
1374a6d verified
raw
history blame contribute delete
282 Bytes
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