I want to apply augmentation methods to my image. For this, I chose codes from this website https://pytorch.org/vision/stable/transforms.html
image = cv2.imread('image.png')
augmentation = torch.nn.Sequential(
torchvision.transforms.RandomGrayscale(.5),
torchvision.transforms.RandomVerticalFlip(.5)
)
cv.imwrite('test.png', augmentation)
Unfortunately, it doesn't work. I hope someone can help me here. Thank You