Commit 52cef36f authored by AUTOMATIC's avatar AUTOMATIC

emergency fix for img2img

parent e6cbef78
...@@ -331,6 +331,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: ...@@ -331,6 +331,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
output_images = [] output_images = []
with torch.no_grad(): with torch.no_grad():
with devices.autocast():
p.init(all_prompts, all_seeds, all_subseeds) p.init(all_prompts, all_seeds, all_subseeds)
if state.job_count == -1: if state.job_count == -1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment