Skip to content
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

how to fix the random seed of downloaded patches #8

Open
wangyi111 opened this issue Nov 3, 2021 · 1 comment
Open

how to fix the random seed of downloaded patches #8

wangyi111 opened this issue Nov 3, 2021 · 1 comment

Comments

@wangyi111
Copy link

Hi, thanks for the exciting work! I'm wondering is there a way to fix the random seed of data downloading?

E.g. I first download in total 100 patches (num_locations=100), and then rerun the code to download again 100 patches. The output patches would be different, can I make them the same?

@adamjstewart
Copy link

I'm sure you figured this out, but since all randomness is done through numpy, you just have to run np.random.seed(0) or some other number at the top of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants