mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-30 22:01:58 -08:00
fix webui not switching back to original model from refiner when batch count is greater than 1
This commit is contained in:
parent
f8ff8c0638
commit
ec194b6374
1 changed files with 2 additions and 0 deletions
|
|
@ -766,6 +766,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||
if state.interrupted:
|
||||
break
|
||||
|
||||
sd_models.reload_model_weights() # model can be changed for example by refiner
|
||||
|
||||
p.prompts = p.all_prompts[n * p.batch_size:(n + 1) * p.batch_size]
|
||||
p.negative_prompts = p.all_negative_prompts[n * p.batch_size:(n + 1) * p.batch_size]
|
||||
p.seeds = p.all_seeds[n * p.batch_size:(n + 1) * p.batch_size]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue