Skip to content

Commit e25e4c0

Browse files
author
Jonas Müller
authored
Merge pull request #43 from akx/fix-safetensors-load
Fix loading safetensors with load_model_from_config
2 parents e5dc966 + 48904a6 commit e25e4c0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sgm/util.py

-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def load_model_from_config(config, ckpt, verbose=True, freeze=True):
212212
raise NotImplementedError
213213

214214
model = instantiate_from_config(config.model)
215-
sd = pl_sd["state_dict"]
216215

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

0 commit comments

Comments
 (0)