Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thangckt committed May 9, 2024
1 parent 47a766e commit 083ad45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpgen/generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ def run_train(iter_index, jdata, mdata):
"training_init_model, training_init_frozen_model, and training_finetune_model are mutually exclusive."
)

train_command = mdata.get("train_command", "dp")
assert train_command.strip() == "dp", "The 'train_command' should be 'dp'"
train_command = mdata.get("train_command", "dp").strip()
assert train_command == "dp", "The 'train_command' should be 'dp'"
if suffix == ".pb":
train_command += " --tf"
elif suffix == ".pth":
Expand Down

0 comments on commit 083ad45

Please sign in to comment.