Skip to content

Commit

Permalink
fix minor error during checkpoint loading
Browse files Browse the repository at this point in the history
  • Loading branch information
loreloc committed Mar 15, 2024
1 parent e7f846f commit 50ae243
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scripts/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ def run(self):
# If alternate checkpoint hparams given, replace values in hparams from CL
checkpoint_args = copy(self.args)
for hp in self.args.checkpoint_hparams.split(';'):
hp_name, hp_value = hp.split('=')
checkpoint_args.__setattr__(hp_name.replace('-', '_'), hp_value)
if hp:
hp_name, hp_value = hp.split('=')
checkpoint_args.__setattr__(hp_name.replace('-', '_'), hp_value)

checkpoint_run_id = build_run_id(checkpoint_args)
checkpoint_exp_path = setup_experiment_path(
Expand Down

0 comments on commit 50ae243

Please sign in to comment.