Commit 52cef36f authored by AUTOMATIC's avatar AUTOMATIC

emergency fix for img2img

parent e6cbef78
......@@ -331,7 +331,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
output_images = []
with torch.no_grad():
p.init(all_prompts, all_seeds, all_subseeds)
with devices.autocast():
p.init(all_prompts, all_seeds, all_subseeds)
if state.job_count == -1:
state.job_count = p.n_iter
......
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