Skip to content

Repeat augmentations with exactly same parameters on two different images #1427

Discussion options

You must be logged in to vote

as described in this link https://kornia.readthedocs.io/en/latest/applications/image_augmentations.html#customization , you can do:

img1 = torch.rand(1,3,224,224)
img2 = torch.rand(1,3,224,224)

aug = K.RandomAffine(360, return_transform=True, same_on_batch=True)
img3, trans = aug(img1)
img4 = aug(img2, trans)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by abhishekaich27
Comment options

You must be logged in to vote
6 replies
@edgarriba
Comment options

@abhishekaich27
Comment options

@shijianjian
Comment options

@domef
Comment options

@edgarriba
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment