diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-12 16:58:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 16:58:06 +0000 |
commit | 11e03b9abdb4dbf38151bbf290b77122ff20bddb (patch) | |
tree | 813bee165839f7e20e687ec0dbaafe5535cd71c4 /modules/shared.py | |
parent | a655e90fbe4b2f9574e163102ece4dad217ff6de (diff) | |
parent | b7f95869b4542d356a12da6860b1e6c227784560 (diff) | |
download | stable-diffusion-webui-gfx803-11e03b9abdb4dbf38151bbf290b77122ff20bddb.tar.gz stable-diffusion-webui-gfx803-11e03b9abdb4dbf38151bbf290b77122ff20bddb.tar.bz2 stable-diffusion-webui-gfx803-11e03b9abdb4dbf38151bbf290b77122ff20bddb.zip |
Merge pull request #294 from EliasOenal/master
Fixes for mps/Metal: use of seeds, img2img, CodeFormer
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index ea1c879b..9002141a 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -49,6 +49,8 @@ parser.add_argument("--opt-channelslast", action='store_true', help="change memo cmd_opts = parser.parse_args()
device = get_optimal_device()
+device_codeformer = device
+device_seed_type = device
batch_cond_uncond = cmd_opts.always_batch_cond_uncond or not (cmd_opts.lowvram or cmd_opts.medvram)
parallel_processing_allowed = not cmd_opts.lowvram and not cmd_opts.medvram
|