-
I'm testing reproducibility using the following code, but not all transformations produce consistent results.
Is this the expected behavior, or could this be an unexpected issue? I'm using albumentations version 2.0.2. |
Beta Was this translation helpful? Give feedback.
Answered by
ternaus
Feb 16, 2025
Replies: 1 comment 1 reply
-
You should fix seed in Compose as a parameter. transform = A.Compose([
A.RandomCrop(height=256, width=256),
A.HorizontalFlip(p=0.5),
A.RandomBrightnessContrast(p=0.2),
], seed=42) https://albumentations.ai/docs/faq/#how-to-have-reproducible-augmentations |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kazuma-jp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should fix seed in Compose as a parameter.
https://albumentations.ai/docs/faq/#how-to-have-reproducible-augmentations