From 19a4200fc271f6b4df4c98f0c85f79434b08131d Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Wed, 1 Feb 2023 11:24:46 +0800 Subject: [PATCH] Update readme Signed-off-by: Jael Gu --- README.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index 1df46ad..105c9fa 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ who maintains SOTA deep-learning models and tools in computer vision. Load an image from path './towhee.jpeg' and use the pre-trained ResNet50 model ('resnet50') to generate an image embedding. -*Write a same pipeline with explicit inputs/outputs name specifications:* - -- **option 1:** +*Write a pipeline with explicit inputs/outputs name specifications:* ```python from towhee.dc2 import pipe, ops, DataCollection @@ -37,17 +35,6 @@ DataCollection(p('towhee.jpeg')).show() -- **option 2:** -```python -import towhee - -towhee.glob['path']('./towhee.jpeg') \ - .image_decode['path', 'img']() \ - .image_embedding.timm['img', 'vec'](model_name='resnet50') \ - .select['img', 'vec']() \ - .show() -``` -
## Factory Constructor