We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f603f30 commit 3ad386fCopy full SHA for 3ad386f
ppsci/solver/solver.py
@@ -1037,5 +1037,5 @@ def _parse_params_from_cfg(self, cfg: DictConfig):
1037
self.pretrained_model_path = cfg.TRAIN.pretrained_model_path
1038
elif cfg.mode == "eval":
1039
self.pretrained_model_path = cfg.EVAL.pretrained_model_path
1040
- elif cfg.mode == "infer":
+ elif cfg.mode in ["export", "infer"]:
1041
self.pretrained_model_path = cfg.INFER.pretrained_model_path
0 commit comments