Skip to content

Commit

Permalink
fix an issue where using hires fix with refiner on first pass with me…
Browse files Browse the repository at this point in the history
…dvram would cause an exception when generating
  • Loading branch information
AUTOMATIC1111 committed Aug 30, 2023
1 parent d43333f commit ae7291f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def setup_conds(self):
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)

Expand Down

0 comments on commit ae7291f

Please sign in to comment.