spyrit.misc.statistics.transform_norm

spyrit.misc.statistics.transform_norm(img_size, normalize=True)[source]
Args:

img_size=int, image size

Create torchvision transform for natural images: resize, then to tensor, and normalize (center reduced in [0, 1])