Skip to content

Commit

Permalink
Solve comflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed May 20, 2024
2 parents fbe438b + 50b0009 commit cac06ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion deepmd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,14 @@ def main_parser() -> argparse.ArgumentParser:
"""
),
)
<<<<<<< HEAD
parser_list_model_branch.add_argument("INPUT", help="The input multi-task pre-trained model file")
=======
parser_list_model_branch.add_argument(
"INPUT", help="The input multi-task pre-trained model file"
)

>>>>>>> 50b00090e1ac2777faf84446f5d4e04bcef55188
return parser


Expand Down Expand Up @@ -828,7 +835,7 @@ def main():
"compress",
"convert-from",
"train-nvnmd",
"list-model-branch"
"list-model-branch",
):
deepmd_main = BACKENDS[args.backend]().entry_point_hook
elif args.command is None:
Expand Down
3 changes: 1 addition & 2 deletions deepmd/pt/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
from deepmd.utils.summary import SummaryPrinter as BaseSummaryPrinter

log = logging.getLogger(__name__)
from IPython import embed


def get_trainer(
Expand Down Expand Up @@ -329,7 +328,7 @@ def main(args: Optional[Union[List[str], argparse.Namespace]] = None):
# Pretrained model must be multitask mode
assert finetune_from_multi_task, "When using --list-model-branch, the pretrained model must be multitask model"
model_branch = list(model_params["model_dict"].keys())
log.info(f"Available model branches are {model_branch}")
log.info(f"Available model branches are {model_branch}")
else:
raise RuntimeError(f"Invalid command {FLAGS.command}!")

Expand Down
1 change: 0 additions & 1 deletion deepmd/pt/utils/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
)

import torch
from IPython import embed

from deepmd.pt.utils import (
env,
Expand Down

0 comments on commit cac06ec

Please sign in to comment.