diff options
author | Deciare <1689220+deciare@users.noreply.github.com> | 2023-04-19 03:18:58 +0000 |
---|---|---|
committer | Deciare <1689220+deciare@users.noreply.github.comw> | 2023-04-19 03:27:46 +0000 |
commit | d40e44ade479f7bba30d5317381cbc58c861775b (patch) | |
tree | 40755c59268f844ba1aa8f0dcec8cf5fdb66699a /modules/shared.py | |
parent | 22bcc7be428c94e9408f589966c2040187245d81 (diff) | |
download | stable-diffusion-webui-gfx803-d40e44ade479f7bba30d5317381cbc58c861775b.tar.gz stable-diffusion-webui-gfx803-d40e44ade479f7bba30d5317381cbc58c861775b.tar.bz2 stable-diffusion-webui-gfx803-d40e44ade479f7bba30d5317381cbc58c861775b.zip |
Option to use CPU for random number generation.
Makes a given manual seed generate the same images across different
platforms, independently of the GPU architecture in use.
Fixes #9613.
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 5fd0eecb..59b037d5 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -331,6 +331,7 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "comma_padding_backtrack": OptionInfo(20, "Increase coherency by padding from the last comma within n tokens when using more than 75 tokens", gr.Slider, {"minimum": 0, "maximum": 74, "step": 1 }),
"CLIP_stop_at_last_layers": OptionInfo(1, "Clip skip", gr.Slider, {"minimum": 1, "maximum": 12, "step": 1}),
"upcast_attn": OptionInfo(False, "Upcast cross attention layer to float32"),
+ "use_cpu_randn": OptionInfo(False, "Use CPU for random number generation to make manual seeds generate the same image across platforms. This may change existing seeds."),
}))
options_templates.update(options_section(('compatibility', "Compatibility"), {
|