Skip to content

Commit

Permalink
chore: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiniuYu committed Aug 16, 2022
1 parent cdd9277 commit 1a2f80e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions server/clip_server/executors/clip_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ def __init__(
:param num_worker_preprocess: The number of CPU workers to preprocess images and texts. Default is 4.
:param minibatch_size: The size of the minibatch for preprocessing and encoding. Default is 32. Reduce this
number if you encounter OOM errors.
:param access_paths: Default access paths for encoding, used if the access path is not passed as a parameter
with the request. Visit https://docarray.jina.ai/fundamentals/documentarray/access-elements for more
details.
:param access_paths: The access paths to traverse on the input documents to get the images and texts to be
processed. Visit https://docarray.jina.ai/fundamentals/documentarray/access-elements for more details.
:param model_path: The path to the model to be used. If not specified, the model will be downloaded or loaded
from the local cache. Visit https://clip-as-service.jina.ai/user-guides/server/#use-custom-model-for-onnx
to learn how to finetune custom models.
Expand Down
5 changes: 2 additions & 3 deletions server/clip_server/executors/clip_tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ def __init__(
:param num_worker_preprocess: The number of CPU workers to preprocess images and texts. Default is 4.
:param minibatch_size: The size of the minibatch for preprocessing and encoding. Default is 32. Reduce this
number if you encounter OOM errors.
:param access_paths: Default access paths for encoding, used if the access path is not passed as a parameter
with the request. Visit https://docarray.jina.ai/fundamentals/documentarray/access-elements for more
details.
:param access_paths: The access paths to traverse on the input documents to get the images and texts to be
processed. Visit https://docarray.jina.ai/fundamentals/documentarray/access-elements for more details.
"""
super().__init__(**kwargs)

Expand Down
5 changes: 2 additions & 3 deletions server/clip_server/executors/clip_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def __init__(
:param num_worker_preprocess: The number of CPU workers to preprocess images and texts. Default is 4.
:param minibatch_size: The size of the minibatch for preprocessing and encoding. Default is 32. Reduce this
number if you encounter OOM errors.
:param access_paths: Default access paths for encoding, used if the access path is not passed as a parameter
with the request. Visit https://docarray.jina.ai/fundamentals/documentarray/access-elements for more
details.
:param access_paths: The access paths to traverse on the input documents to get the images and texts to be
processed. Visit https://docarray.jina.ai/fundamentals/documentarray/access-elements for more details.
"""
super().__init__(**kwargs)

Expand Down

0 comments on commit 1a2f80e

Please sign in to comment.