Merge pull request #1124 from PaddlePaddle/develop

Develop
pull/1135/head 2.2.1
Wei Shengyu 2021-08-10 18:38:11 +08:00 committed by GitHub
commit 7c1f291b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -244,7 +244,7 @@ python3 python/predict_cls.py \
-c configs/inference_cls.yaml \
-o Global.infer_imgs=../dataset/flowers102/jpg/image_00001.jpg \
-o Global.inference_model_dir=../inference/ \
-o PostProcess.class_id_map_file=None
-o PostProcess.Topk.class_id_map_file=None
其中:

View File

@ -128,7 +128,7 @@ python3 -m paddle.distributed.launch \
PaddleClas包含了自研的SSLD知识蒸馏方案具体的内容可以参考[知识蒸馏章节](../advanced_tutorials/distillation/distillation.md), 本小节将尝试使用知识蒸馏技术对MobileNetV3_large_x1_0模型进行训练使用`2.1.2小节`训练得到的ResNet50_vd模型作为蒸馏所用的教师模型首先将`2.1.2小节`训练得到的ResNet50_vd模型保存到指定目录脚本如下。
```shell
mkdir pretrained
mkdir pretrained
cp -r output_CIFAR/ResNet50_vd/best_model.pdparams ./pretrained/
```
@ -256,5 +256,5 @@ PreProcess:
python3 python/predict_cls.py \
-c configs/inference_cls.yaml \
-o Global.infer_imgs=../dataset/CIFAR100/test/0/0001.png \
-o PostProcess.class_id_map_file=None
-o PostProcess.Topk.class_id_map_file=None
```