From fd3a8e2bc8334af3ea591c52b82205c7bd8c49e7 Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Mon, 28 Mar 2022 15:32:46 +0800 Subject: [PATCH] Update Signed-off-by: Jael Gu --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca1a252..11cbe73 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,9 @@ and use the pretrained ResNet50 model ('resnet50') to generate an image embeddin *Write the pipeline in simplified style*: ```python -import towhee.DataCollection as dc +from towhee import dc -dc.glob(./dog.jpg) +dc.glob('./dog.jpg') .image_decode() .image_embedding.timm('resnet50') .show() @@ -66,9 +66,9 @@ dc.glob(./dog.jpg) *Write a same pipeline with explicit inputs/outputs name specifications:* ```python -from towhee import DataCollection as dc +from towhee import dc -dc.glob['path'](./dog.jpg) +dc.glob['path']('./dog.jpg') .image_decode['path', 'img']() .image_embedding.timm['img', 'vec']('resnet50') .select('img')