Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply same transformation to mask? #59

Closed
tlnagy opened this issue May 15, 2020 · 1 comment
Closed

Apply same transformation to mask? #59

tlnagy opened this issue May 15, 2020 · 1 comment

Comments

@tlnagy
Copy link

tlnagy commented May 15, 2020

I have boolean masks for my images for semantic segmentation that I would like to transform identically to the raw image so that I can augment my training set.

Is there any way to deterministically apply the same transformations to both the raw image and the mask?

@tlnagy
Copy link
Author

tlnagy commented May 15, 2020

I missed this section in the documentation:

The parameter img can either be a single image, or a tuple of multiple images. In case img is a tuple of images, its elements will be assumed to be conceptually connected. Consequently, all images in the tuple will take the exact same path through the pipeline; even when randomness is involved. This is useful for the purpose of image segmentation, for which the input and output are both images that need to be transformed exactly the same way.

@tlnagy tlnagy closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant