Update getting_started_en.md

This commit is contained in:
littletomatodonkey 2021-03-07 15:42:50 +08:00 committed by GitHub
parent a99afd69dd
commit 28fc882c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,10 +226,13 @@ Firstly, you should export inference model using `tools/export_model.py`.
python tools/export_model.py \
--model MobileNetV3_large_x1_0 \
--pretrained_model ./output/MobileNetV3_large_x1_0/best_model/ppcls \
--output_path ./inference
--output_path ./inference \
--class_dim 1000
```
Among them, the `--model` parameter is used to specify the model name, `--pretrained_model` parameter is used to specify the model file path, the path does not need to include the model file suffix name, and `--output_path` is used to specify the storage path of the converted model.
Among them, the `--model` parameter is used to specify the model name, `--pretrained_model` parameter is used to specify the model file path, the path does not need to include the model file suffix name, and `--output_path` is used to specify the storage path of the converted model, class_dim means number of class for the model, default as 1000.
注意:
**Note**:
1. If `--output_path=./inference`, then three files will be generated in the folder `inference`, they are `inference.pdiparams`, `inference.pdmodel` and `inference.pdiparams.info`.