fix shell in getting_started
parent
753ed4e281
commit
a1f185a6eb
|
@ -75,9 +75,9 @@ PaddlePaddle提供三种方式进行预测推理,接下来介绍如何用预
|
|||
|
||||
```bash
|
||||
python tools/export_model.py \
|
||||
-model=模型名字 \
|
||||
-pretrained_model=预训练模型路径 \
|
||||
-output_path=预测模型保存路径
|
||||
--model=模型名字 \
|
||||
--pretrained_model=预训练模型路径 \
|
||||
--output_path=预测模型保存路径
|
||||
|
||||
```
|
||||
之后,通过预测引擎进行推理:
|
||||
|
|
|
@ -24,7 +24,7 @@ def parse_args():
|
|||
parser.add_argument("-m", "--model", type=str)
|
||||
parser.add_argument("-p", "--pretrained_model", type=str)
|
||||
parser.add_argument("-o", "--output_path", type=str)
|
||||
parser.add_argument("--class_dim", type=int)
|
||||
parser.add_argument("--class_dim", type=int, default=1000)
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
|
Loading…
Reference in New Issue