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
Revisit random seed options in ANTs #1464
Comments
Hi @ntustison , Thinking about this some more, I think Lines 1245 to 1265 in 74afcc5
I think it was Longer term, it would be good to make all the programs consistent in how they handle random number generation.
Having this be consistent for all tools would be nice because it removes the need to add a random option explicitly to every executable call. I guess one criticism is that you could run a very complex pipeline with the same random numbers over and over, but I don't know if anyone cares to use ANTS_RANDOM_SEED outside of regression testing anyway. |
Solution in #1468 aims to maximize backwards compatibility and hopefully won't break anyone's regression tests |
What's the situation with recent-ish ANTs ( |
@TheChymera yes, |
@cookpa thank you :) |
The last part of my to-do list for this issue was ANTs/ImageRegistration/ANTS_affine_registration.h Lines 260 to 261 in 3fa6cfb
but it was insufficient. Since deterministic results aren't a documented feature of the longitudinal script, I'm inclined to leave it alone. |
Following discussion in #1462
I believe reproducibility can be achieved by setting the env var
ANTS_RANDOM_SEED
and using single-threaded computation to avoid numerical issues in the mutual information metric.But the usage of some scripts might be misleading, eg in
antsBrainExtraction.sh
, "-u 0" fixes the Atropos random seed, but doesn't set a random seed to be used by all the other processes.The text was updated successfully, but these errors were encountered: