Skip to content

Commit

Permalink
correct an update to predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Feb 13, 2024
1 parent 4c0b665 commit c3227f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def load_model(config, ckpt_filename):
state = _init_state(config)
state, loaded = restore_checkpoint(ckpt_filename, state, config.device)
assert loaded, "Did not load state from checkpoint"
state["ema"].copy_to(state["score_model"].parameters())
state["ema"].copy_to(state["model"].parameters())

# Sampling
num_output_channels = len(get_variables(config.data.dataset_name)[1])
Expand Down

0 comments on commit c3227f3

Please sign in to comment.