Skip to content

Commit ae7291f

Browse files
committed
fix an issue where using hires fix with refiner on first pass with medvram would cause an exception when generating
1 parent d43333f commit ae7291f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ def setup_conds(self):
13151315
if shared.opts.hires_fix_use_firstpass_conds:
13161316
self.calculate_hr_conds()
13171317

1318-
elif lowvram.is_enabled(shared.sd_model): # if in lowvram mode, we need to calculate conds right away, before the cond NN is unloaded
1318+
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
13191319
with devices.autocast():
13201320
extra_networks.activate(self, self.hr_extra_network_data)
13211321

0 commit comments

Comments
 (0)