From 46ce087fa4badb64d435ce8177e58d9bf1736cf0 Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Wed, 1 Feb 2023 11:26:01 +0800 Subject: [PATCH] Update readme Signed-off-by: Jael Gu --- README.md | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/README.md b/README.md index 071c056..d1358fd 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ The default pretrained model weights are from [The 1st Place Solution of ISC21 ( Load an image from path './towhee.jpg' and use the pretrained ISC model ('resnet50') to generate an image embedding. -*Write a same pipeline with explicit inputs/outputs name specifications:* - -- **option 1 (towhee>=0.9.0):** +*Write a pipeline with explicit inputs/outputs name specifications:* ```python from towhee.dc2 import pipe, ops, DataCollection @@ -36,19 +34,6 @@ DataCollection(p('towhee.jpg')).show() ``` -- **option 2:** -```python -import towhee - -( - towhee.glob['path']('./towhee.jpg') - .image_decode['path', 'img']() - .image_embedding.isc['img', 'vec']() - .select['img', 'vec']() - .show() -) -``` -
## Factory Constructor