How to set random seed for data transforms? #2785
-
It seems that I do not know how to set the seed of data transforms. Because each transform will be applied to all training images and the seeds would be different between different images (and for images in different epochs). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @Jingnan-Jia , The Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @Jingnan-Jia ,
The
set_determinism()
API sets random seed for overall program, you can take a look at this tutorial as example:https://github.com/Project-MONAI/tutorials/blob/master/3d_segmentation/spleen_segmentation_3d.ipynb
Thanks.