From cf880114d1c4bb40e5600a505104338c0ac133f4 Mon Sep 17 00:00:00 2001 From: littletomatodonkey <2120160898@bit.edu.cn> Date: Tue, 20 Apr 2021 13:59:22 +0800 Subject: [PATCH] Update whl_en.md --- docs/en/whl_en.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en/whl_en.md b/docs/en/whl_en.md index da337ad2..bf54f827 100644 --- a/docs/en/whl_en.md +++ b/docs/en/whl_en.md @@ -73,7 +73,11 @@ paddleclas --model_name=ResNet50 --top_k=5 --image_file='docs/images/whl/demo.jp * pre_label_image(bool): whether prelabel or not, default=False. * pre_label_out_idr(str): If prelabeling, the path of output. -**Note**: If you want to use `Transformer series models`, such as `DeiT_***_384`, `ViT_***_384`, etc., please pay attention to the input size of model, and need to set `resize_short=384`, `reize=384`. +**Note**: If you want to use `Transformer series models`, such as `DeiT_***_384`, `ViT_***_384`, etc., please pay attention to the input size of model, and need to set `resize_short=384`, `reize=384` when building a `PaddleClas` object. The following is a demo. + +```python +clas = PaddleClas(model_name='ViT_base_patch16_384', top_k=5, resize_short=384, resize=384) +``` ### 3. Different Usages of Codes -- GitLab