diff --git a/deploy/slim/slim.py b/deploy/slim/slim.py index f864fa5b716e06a6c3af3419c705c2dcf12949e0..f6940851cccb9c1c1fde19e21d5d5bc68dd58791 100644 --- a/deploy/slim/slim.py +++ b/deploy/slim/slim.py @@ -232,10 +232,10 @@ class Trainer_slim(Trainer): self.config["Arch"]["name"], "best_model")) elif self.config["Global"].get( - "pretraine_model", False) and os.path.exists(self.config[ - "Global"]["pretraine_model"] + ".pdparams"): + "pretrained_model", False) and os.path.exists(self.config[ + "Global"]["pretrained_model"] + ".pdparams"): load_dygraph_pretrain(self.model, - self.config["Global"]["pretraine_model"]) + self.config["Global"]["pretrained_model"]) else: raise RuntimeError( "The best_model or pretraine_model should exist to generate inference model" diff --git a/log/endpoints.log b/log/endpoints.log deleted file mode 100644 index 438da7f1e2835134fcc6eb9580cb70c419bd8ce7..0000000000000000000000000000000000000000 --- a/log/endpoints.log +++ /dev/null @@ -1,5 +0,0 @@ -PADDLE_TRAINER_ENDPOINTS: -127.0.0.1:51466 -127.0.0.1:58283 -127.0.0.1:34005 -127.0.0.1:58331 \ No newline at end of file