mirror of
https://github.com/vladmandic/automatic
synced 2026-09-08 22:08:42 +02:00
6 lines
204 B
Python
6 lines
204 B
Python
from modules import shared
|
|
|
|
def override_opts():
|
|
if shared.backend == shared.Backend.DIFFUSERS:
|
|
shared.opts.diffusers_generator_device = "cpu" # DirectML does not support torch.Generator API.
|