Commit 99043f33 authored by AUTOMATIC's avatar AUTOMATIC

fix one of previous merges breaking the program

parent c250d2a0
......@@ -167,6 +167,8 @@ def load_model_weights(model, checkpoint_info, vae_file="auto"):
sd_vae.restore_base_vae(model)
checkpoints_loaded[model.sd_checkpoint_info] = model.state_dict().copy()
vae_file = sd_vae.resolve_vae(checkpoint_file, vae_file=vae_file)
if checkpoint_info not in checkpoints_loaded:
print(f"Loading weights [{sd_model_hash}] from {checkpoint_file}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment