How to apply augmentation to masks or labels #1417
Answered
by
isaaccorley
gtgrp-user
asked this question in
Q&A
-
|
Hi, I have successfully applied the following transforms to my dataloader for the training images. However, I'm unsure how to apply the random horizontal and vertical flips to the masks/labels. |
Beta Was this translation helpful? Give feedback.
Answered by
isaaccorley
Jun 15, 2023
Replies: 1 comment
-
|
If you modify data_keys to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gtgrp-user
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you modify data_keys to
data_keys=["image", "mask"]this will apply the correct transforms to both the image and mask.AugmentationSequentialis simply a custom wrapper aroundkornia.augmentation.AugmentationSequentialif you're curious about further documentation.