mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-27 07:39:53 +08:00
emergency fix for img2img
This commit is contained in:
parent
e6cbef785a
commit
52cef36f6b
@ -331,7 +331,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
|
|||||||
output_images = []
|
output_images = []
|
||||||
|
|
||||||
with torch.no_grad():
|
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:
|
if state.job_count == -1:
|
||||||
state.job_count = p.n_iter
|
state.job_count = p.n_iter
|
||||||
|
Loading…
Reference in New Issue
Block a user