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')