From d6d8e365dd165b254427a873c743312424414142 Mon Sep 17 00:00:00 2001 From: gaotingquan Date: Mon, 19 Jul 2021 08:43:09 +0000 Subject: [PATCH] Supplement some fixes --- deploy/hubserving/readme.md | 2 +- paddleclas.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/hubserving/readme.md b/deploy/hubserving/readme.md index 556ef0968..6b2b2dd4d 100644 --- a/deploy/hubserving/readme.md +++ b/deploy/hubserving/readme.md @@ -133,7 +133,7 @@ python hubserving/test_hubserving.py server_url image_path - **normalize**:[**可选**] 预处理时,是否进行`normalize`,默认为`True`。 - **to_chw**:[**可选**] 预处理时,是否调整为`CHW`顺序,默认为`True`。 -**注意**:如果使用`Transformer`系列模型,如`DeiT_***_384`, `ViT_***_384`等,请注意模型的输入数据尺寸。需要`--resize_short=384 --crop_size=384`。 +**注意**:如果使用`Transformer`系列模型,如`DeiT_***_384`, `ViT_***_384`等,请注意模型的输入数据尺寸,需要指定`--resize_short=384 --crop_size=384`。 访问示例: diff --git a/paddleclas.py b/paddleclas.py index fc20a0b41..d0bd6b14a 100644 --- a/paddleclas.py +++ b/paddleclas.py @@ -412,7 +412,7 @@ class PaddleClas(object): Args: model_name: The model name supported by PaddleClas, default by None. If specified, override config. inference_model_dir: The directory that contained model file and params file to be used, default by None. If specified, override config. - use_gpu: whether use GPU, default by None. If specified, override config. + use_gpu: Whether use GPU, default by None. If specified, override config. batch_size: The batch size to pridict, default by None. If specified, override config. topk: Return the top k prediction results with the highest score. """ @@ -464,7 +464,7 @@ class PaddleClas(object): Args: input_data (str | NumPy.array): The path of image, or the directory containing images, or the URL of image from Internet. - print_pred (bool, optional): whether print the prediction result. Defaults to False. + print_pred (bool, optional): Whether print the prediction result. Defaults to False. Raises: ImageTypeError: Illegal input_data.