Skip to content

Commit

Permalink
Merge pull request Stability-AI#43 from akx/fix-safetensors-load
Browse files Browse the repository at this point in the history
Fix loading safetensors with load_model_from_config
  • Loading branch information
Jonas Müller authored Jul 21, 2023
2 parents a0e5865 + 7ebdbf5 commit 14a2c23
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sgm/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def load_model_from_config(config, ckpt, verbose=True, freeze=True):
raise NotImplementedError

model = instantiate_from_config(config.model)
sd = pl_sd["state_dict"]

m, u = model.load_state_dict(sd, strict=False)

Expand Down

0 comments on commit 14a2c23

Please sign in to comment.