mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
Use backend enum on diffusers check.
This commit is contained in:
Submodule extensions-builtin/a1111-sd-webui-lycoris updated: 025dea9672...123d1da15d
+1
-1
@@ -1,5 +1,5 @@
|
||||
from modules import shared
|
||||
|
||||
def override_opts():
|
||||
if shared.cmd_opts.backend.lower() == "diffusers":
|
||||
if shared.backend == shared.Backend.DIFFUSERS:
|
||||
shared.opts.diffusers_generator_device = "cpu" # DirectML does not support torch.Generator API.
|
||||
|
||||
Reference in New Issue
Block a user