Skip to content
Discussion options

You must be logged in to vote

set_determinism will set the global seed. you can also use set_random_state of Compose which is more convenient for your use case.

The ArrayDataset used in the demo script calls transform.set_random_state(seed=self._seed) to ensure the transforms are synchronised. At each getitem, self._seed is refreshed

def __getitem__(self, index: int):

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tom-osika
Comment options

Answer selected by tom-osika
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