Skip to content
Discussion options

You must be logged in to vote

Hi @GamblerEd ,

is that actually indeed what the program does at train_ds = ArrayDataset(images[:20], train_imtrans, segs[:20], train_segtrans)

Yes, for all Randomizable transforms, same seed will be used (see here)

is it supposed to "synchronize" all random transformations

Yes, let me take the transform RandShiftIntensity for instance.
When trying to load data from ArrayDataset, the __getitem__ function will assign the same seed for all transforms (as shown in the link posted above). The line transform.set_random_state(seed=self._seed) is used to set self.R = np.random.RandomState(_seed).
If we check the source code of RandShiftIntensity, we will see its random place is to randomly s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GamblerEd
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