Skip to content

Does TorchIO have its way of controlling randomness/reproducibility? #766

Answered by dzenanz
dzenanz asked this question in Q&A
Discussion options

You must be logged in to vote

TL;DR version: Adding this made the program fully reproducible across runs:

random.seed(30101983)
np.random.seed(30101983)
torch.manual_seed(30101983)
torch.use_deterministic_algorithms(True)

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@dzenanz
Comment options

Comment options

You must be logged in to vote
11 replies
@dzenanz
Comment options

@fepegar
Comment options

@dzenanz
Comment options

@dzenanz
Comment options

@dzenanz
Comment options

Comment options

You must be logged in to vote
1 reply
@fepegar
Comment options

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