How to set random_seed #1953
-
I want to compare the effect of different degradations on superresolution models. How to set the random seed to ensure that other contents are the same? |
Beta Was this translation helpful? Give feedback.
Answered by
zengyh1900
Jul 25, 2023
Replies: 1 comment
-
You can set the random_seed in the config in default_runtime.py, e.g., https://github.com/open-mmlab/mmagic/blob/main/configs/_base_/gen_default_runtime.py#L3 You can check more details about randomness in https://mmengine.readthedocs.io/en/latest/common_usage/set_random_seed.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zengyh1900
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can set the random_seed in the config in default_runtime.py, e.g., https://github.com/open-mmlab/mmagic/blob/main/configs/_base_/gen_default_runtime.py#L3
You can check more details about randomness in https://mmengine.readthedocs.io/en/latest/common_usage/set_random_seed.html