From d5cd7be528a6313825123625d6b0cbb55786eb85 Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Thu, 9 Dec 2021 15:15:39 +0800 Subject: [PATCH] Update README Signed-off-by: shiyu22 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef1d02f..223770d 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ $ pip3 install towhee >>> from towhee import pipeline >>> from PIL import Image ->>> img = Image.open('path/to/your/image') +>>> img = Image.open('path/to/your/image') # for example, './test_data/test.jpg' >>> embedding_pipeline = pipeline('towhee/image-embedding-resnet50') >>> embedding = embedding_pipeline(img) ``` @@ -62,7 +62,7 @@ First of all, you need to learn the pipeline and operator in Towhee architecture - **Operator**: An `Operator` is a single node within a pipeline. It contains files (e.g. code, configs, models, etc...) and works for reusable operations (e.g., preprocessing an image, inference with a pretrained model). -This pipeline includes four functions: `_start_op`, `towhee/transform-image`, `towhee/resnet50-image-embedding` and ` _end_op`. It is necessary to ensure that the input and output of the four Operators correspond to each other, and the input and output data types can be defined by DataFrame. +This pipeline includes four functions: `_start_op`, `towhee/transform-image`, `towhee/resnet50-image-embedding` and `_end_op`. It is necessary to ensure that the input and output of the four Operators correspond to each other, and the input and output data types can be defined by DataFrame. ![img](./pic/pipeline.png)