Skip to content

How to Ensure Reproducibility? #2342

Closed Answered by ternaus
kazuma-jp asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kazuma-jp
Comment options

Answer selected by kazuma-jp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants