Skip to content

Commit

Permalink
Fix ema resume checkpoint (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGulin committed Feb 28, 2023
1 parent 25f226b commit bd2bc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/neuralmagic/sparsification_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def maybe_create_sparsification_manager(

# reconstruct ToggleableModelEMA from state dictionary
if ckpt["ema"]:
ckpt["ema"] = load_ema(ckpt["ema"], model)
ckpt["ema"] = load_ema(ckpt["ema"], model).ema

return sparsification_manager

Expand Down

0 comments on commit bd2bc0b

Please sign in to comment.