implement hires for diffusers

This commit is contained in:
Vladimir Mandic
2023-08-19 12:25:41 +00:00
parent 5eac99d3f5
commit 87bb354f4c
7 changed files with 124 additions and 73 deletions
+1 -1
View File
@@ -711,7 +711,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
else:
raise ValueError(f"Unknown backend {shared.backend}")
if shared.cmd_opts.lowvram or shared.cmd_opts.medvram:
if shared.cmd_opts.lowvram or shared.cmd_opts.medvram and shared.backend == shared.Backend.ORIGINAL:
lowvram.send_everything_to_cpu()
devices.torch_gc()
if p.scripts is not None: