make extension disabling for diffusers temporary

This commit is contained in:
Vladimir Mandic
2023-09-07 07:39:15 -04:00
parent 8fd96d0f30
commit a9e1347b85
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -693,7 +693,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
return ''
ema_scope_context = p.sd_model.ema_scope if shared.backend == shared.Backend.ORIGINAL else nullcontext
with torch.inference_mode(), ema_scope_context():
with torch.no_grad(), ema_scope_context():
t0 = time.time()
with devices.autocast():
p.init(p.all_prompts, p.all_seeds, p.all_subseeds)