Skip to content

Commit

Permalink
Update finetune.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Mar 17, 2024
1 parent 67b838d commit 13e3398
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion deepmd/pt/utils/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def change_finetune_model_params(finetune_model, model_config, model_branch=""):
# not do anything if not defined "finetune_head" in heads that exist in the pretrained model
# this will just do resuming
model_branch_from = model_key

Check warning on line 172 in deepmd/pt/utils/finetune.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/utils/finetune.py#L172

Added line #L172 was not covered by tests
pass
else:
# if not defined "finetune_head" in new heads, the fitting net will bre randomly initialized
model_branch_from = ""
Expand Down

0 comments on commit 13e3398

Please sign in to comment.