Skip to content

Commit 5dee3a6

Browse files
authored
Fix few typos (#4921)
1 parent d28ed81 commit 5dee3a6

File tree

55 files changed

+215
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+215
-215
lines changed

deploy/ultra-infer/python/ultra_infer/vision/classification/contrib/resnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def __init__(
2929
"""Load a image classification model exported by torchvision.ResNet.
3030
3131
:param model_file: (str)Path of model file, e.g resnet/resnet50.onnx
32-
:param params_file: (str)Path of parameters file, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
32+
:param params_file: (str)Path of parameters file, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
3333
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
34-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model, default is ONNX
34+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model, default is ONNX
3535
"""
3636

3737
# call super() to initialize the backend_option

deploy/ultra-infer/python/ultra_infer/vision/classification/contrib/yolov5cls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def __init__(
8989
"""Load a YOLOv5Cls model exported by YOLOv5Cls.
9090
9191
:param model_file: (str)Path of model file, e.g ./YOLOv5Cls.onnx
92-
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
92+
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
9393
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
94-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
94+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
9595
"""
9696

9797
super(YOLOv5Cls, self).__init__(runtime_option)

deploy/ultra-infer/python/ultra_infer/vision/classification/ppcls/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ def __init__(
8888
"""Load a image classification model exported by PaddleClas.
8989
9090
:param model_file: (str)Path of model file, e.g resnet50/inference.pdmodel
91-
:param params_file: (str)Path of parameters file, e.g resnet50/inference.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
91+
:param params_file: (str)Path of parameters file, e.g resnet50/inference.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
9292
:param config_file: (str) Path of configuration file for deploy, e.g resnet50/inference_cls.yaml
9393
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
94-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
94+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
9595
"""
9696

9797
super(PaddleClasModel, self).__init__(runtime_option)

deploy/ultra-infer/python/ultra_infer/vision/classification/ppshitu/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def __init__(
8585
"""Load a image PPShiTuV2Recognizer model exported by PaddleClas.
8686
8787
:param model_file: (str)Path of model file, e.g PPLCNet/inference.pdmodel
88-
:param params_file: (str)Path of parameters file, e.g PPLCNet/inference.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
88+
:param params_file: (str)Path of parameters file, e.g PPLCNet/inference.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
8989
:param config_file: (str) Path of configuration file for deploy, e.g PPLCNet/inference_cls.yaml
9090
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
91-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
91+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
9292
"""
9393

9494
super(PPShiTuV2Recognizer, self).__init__(runtime_option)

deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/fastestdet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def __init__(
105105
"""Load a FastestDet model exported by FastestDet.
106106
107107
:param model_file: (str)Path of model file, e.g ./FastestDet.onnx
108-
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
108+
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
109109
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
110-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
110+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
111111
"""
112112

113113
super(FastestDet, self).__init__(runtime_option)

deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/nanodet_plus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def __init__(
2929
"""Load a NanoDetPlus model exported by NanoDet.
3030
3131
:param model_file: (str)Path of model file, e.g ./nanodet.onnx
32-
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
32+
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
3333
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
34-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
34+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
3535
"""
3636
# 调用基函数进行backend_option的初始化
3737
# 初始化后的option保存在self._runtime_option

deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/rkyolo/rkyolov5.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ def __init__(self, model_file, runtime_option=None, model_format=ModelFormat.RKN
148148
"""Load a RKYOLOV5 model exported by RKYOLOV5.
149149
150150
:param model_file: (str)Path of model file, e.g ./yolov5.rknn
151-
:param params_file: (str)Path of parameters file, e.g , if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
151+
:param params_file: (str)Path of parameters file, e.g , if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
152152
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
153-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
153+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
154154
"""
155155
# 调用基函数进行backend_option的初始化
156156
# 初始化后的option保存在self._runtime_option
@@ -207,7 +207,7 @@ def __init__(self, model_file, runtime_option=None, model_format=ModelFormat.RKN
207207
208208
:param model_file: (str)Path of model file, e.g ./yolox.rknn
209209
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
210-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
210+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
211211
"""
212212
# 调用基函数进行backend_option的初始化
213213
# 初始化后的option保存在self._runtime_option
@@ -264,7 +264,7 @@ def __init__(self, model_file, runtime_option=None, model_format=ModelFormat.RKN
264264
265265
:param model_file: (str)Path of model file, e.g ./yolov7.rknn
266266
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
267-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
267+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
268268
"""
269269
# 调用基函数进行backend_option的初始化
270270
# 初始化后的option保存在self._runtime_option

deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/scaled_yolov4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def __init__(
2929
"""Load a ScaledYOLOv4 model exported by ScaledYOLOv4.
3030
3131
:param model_file: (str)Path of model file, e.g ./scaled_yolov4.onnx
32-
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
32+
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
3333
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
34-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
34+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
3535
"""
3636
# 调用基函数进行backend_option的初始化
3737
# 初始化后的option保存在self._runtime_option

deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/yolor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def __init__(
2929
"""Load a YOLOR model exported by YOLOR
3030
3131
:param model_file: (str)Path of model file, e.g ./yolor.onnx
32-
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
32+
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
3333
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
34-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
34+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
3535
"""
3636
# 调用基函数进行backend_option的初始化
3737
# 初始化后的option保存在self._runtime_option

deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/yolov5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ def __init__(
174174
"""Load a YOLOv5 model exported by YOLOv5.
175175
176176
:param model_file: (str)Path of model file, e.g ./yolov5.onnx
177-
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_fomat is ModelFormat.ONNX, this param will be ignored, can be set as empty string
177+
:param params_file: (str)Path of parameters file, e.g yolox/model.pdiparams, if the model_format is ModelFormat.ONNX, this param will be ignored, can be set as empty string
178178
:param runtime_option: (ultra_infer.RuntimeOption)RuntimeOption for inference this model, if it's None, will use the default backend on CPU
179-
:param model_format: (ultra_infer.ModelForamt)Model format of the loaded model
179+
:param model_format: (ultra_infer.ModelFormat)Model format of the loaded model
180180
"""
181181
# 调用基函数进行backend_option的初始化
182182
# 初始化后的option保存在self._runtime_option

0 commit comments

Comments
 (0)