From b78170951003e1b22bc126aea83f8591f1c8e7f5 Mon Sep 17 00:00:00 2001 From: Kaiyuan Hu Date: Thu, 9 Dec 2021 13:15:03 +0800 Subject: [PATCH] Updata README --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3be707a..bccee4b 100644 --- a/README.md +++ b/README.md @@ -11,17 +11,17 @@ In computer vision (CV) directions, image transformations are usually an indispe ## Interface -`Class TransformImage(Operator)` [source](./transform_image.py) +`Class TransformImage(Operator)` [\[source\]](./transform_image.py) `__init__(self, size: int)` -**param:** +**params:** -- size(int): the image size to use. +- size(int): the size of the output image. `__call__(self, img_tensor: Union[np.ndarray, Image.Image, torch.Tensor, str])` -**param:** +**params:** Img_tensor(np.ndarray/Image.Image/torch.Tensor, str): original image data, the type can be np.ndarry, PIL.image, or str path of the image. @@ -37,11 +37,8 @@ You can get the required python package by [requirements.txt](./requirements.txt - towhee - torch - - torchvision - - numpy - - pillow ### How it works