diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-30 18:34:17 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-30 18:34:17 +0000 |
commit | ae7291fb49fc4d116c53749c12b7419eb131b12c (patch) | |
tree | 26e6680e94d0f0b80231d901c4401b308012f160 /modules/processing.py | |
parent | d43333ff7193279acee5d7284b40902af351c9d7 (diff) | |
download | stable-diffusion-webui-gfx803-ae7291fb49fc4d116c53749c12b7419eb131b12c.tar.gz stable-diffusion-webui-gfx803-ae7291fb49fc4d116c53749c12b7419eb131b12c.tar.bz2 stable-diffusion-webui-gfx803-ae7291fb49fc4d116c53749c12b7419eb131b12c.zip |
fix an issue where using hires fix with refiner on first pass with medvram would cause an exception when generating
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index e08b6305..e124e7f0 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1315,7 +1315,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): if shared.opts.hires_fix_use_firstpass_conds:
self.calculate_hr_conds()
- elif lowvram.is_enabled(shared.sd_model): # if in lowvram mode, we need to calculate conds right away, before the cond NN is unloaded
+ elif lowvram.is_enabled(shared.sd_model) and shared.sd_model.sd_checkpoint_info == sd_models.select_checkpoint(): # if in lowvram mode, we need to calculate conds right away, before the cond NN is unloaded
with devices.autocast():
extra_networks.activate(self, self.hr_extra_network_data)
|