transforms.CenterCrop(10),
transforms.Normalize((0.485, 0.456, 0.406), (0.229, 0.224, 0.225)),
)
scripted_transforms...= torch.nn.Sequential(
tf.RandomRotation((35, 135), resample=0),
tf.RandomGrayscale()
)
scripted_transforms...(17)
transforms = torch.nn.Sequential(
tf.GaussianBlur(kernel_size=15, sigma=(5.0, 15.0))
)
scripted_transforms...tf.RandomHorizontalFlip(),
tf.Normalize((0.485, 0.456, 0.406), (0.229, 0.224, 0.225))
)
scripted_transforms...cv.imread("D:/images/1024.png")
cv.imshow("input", image)
im_data = image.transpose((2, 0, 1))
result = scripted_transforms