diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 08:16:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 08:16:06 +0000 |
commit | cb9571e37fc1c0ee22c92ee726147f64ee80f07a (patch) | |
tree | 276c16e211146d0934c9aa330556545294b1a1ad /modules/shared.py | |
parent | 09069918e8e6e4e25a804d34c803abc3b76ae84a (diff) | |
parent | d40e44ade479f7bba30d5317381cbc58c861775b (diff) | |
download | stable-diffusion-webui-gfx803-cb9571e37fc1c0ee22c92ee726147f64ee80f07a.tar.gz stable-diffusion-webui-gfx803-cb9571e37fc1c0ee22c92ee726147f64ee80f07a.tar.bz2 stable-diffusion-webui-gfx803-cb9571e37fc1c0ee22c92ee726147f64ee80f07a.zip |
Merge pull request #9734 from deciare/cpu-randn
Option to make images generated from a given manual seed consistent across CUDA and MPS devices
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 725f58d1..b5b401fe 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -334,6 +334,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"), {
|