File size: 172 Bytes
f1a0ba2
c4bc1f2
 
 
 
 
1
2
3
4
5
6
7
from img2art_search.data.transforms import inversetransform


def inverse_transform_img(img):
    inv_tensor = inversetransform(img)
    return inv_tensor.permute(1, 2, 0)