mirror of
https://github.com/vladmandic/automatic
synced 2026-08-31 09:31:00 +02:00
add torch full deterministic mode
This commit is contained in:
@@ -113,7 +113,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
|
||||
t0 = time.time()
|
||||
sd_models_compile.check_deepcache(enable=True)
|
||||
sd_models.move_model(shared.sd_model, devices.device)
|
||||
hidiffusion.apply_hidiffusion(p, shared.sd_model_type)
|
||||
hidiffusion.apply(p, shared.sd_model_type)
|
||||
# if 'image' in base_args:
|
||||
# base_args['image'] = set_latents(p)
|
||||
if hasattr(shared.sd_model, 'tgate') and getattr(p, 'gate_step', -1) > 0:
|
||||
@@ -123,7 +123,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
|
||||
output = shared.sd_model(**base_args)
|
||||
if isinstance(output, dict):
|
||||
output = SimpleNamespace(**output)
|
||||
hidiffusion.remove_hidiffusion(p)
|
||||
hidiffusion.unapply()
|
||||
sd_models_compile.openvino_post_compile(op="base") # only executes on compiled vino models
|
||||
sd_models_compile.check_deepcache(enable=False)
|
||||
if shared.cmd_opts.profile:
|
||||
|
||||
Reference in New Issue
Block a user