aboutsummaryrefslogtreecommitdiff
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-09-12 19:58:06 +0300
committerGitHub <noreply@github.com>2022-09-12 19:58:06 +0300
commit11e03b9abdb4dbf38151bbf290b77122ff20bddb (patch)
tree813bee165839f7e20e687ec0dbaafe5535cd71c4 /modules/shared.py
parenta655e90fbe4b2f9574e163102ece4dad217ff6de (diff)
parentb7f95869b4542d356a12da6860b1e6c227784560 (diff)
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.py2
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