logo
Browse Source

Update

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
test
Jael Gu 3 years ago
parent
commit
fd3a8e2bc8
  1. 8
      README.md

8
README.md

@ -55,9 +55,9 @@ and use the pretrained ResNet50 model ('resnet50') to generate an image embeddin
*Write the pipeline in simplified style*: *Write the pipeline in simplified style*:
```python ```python
import towhee.DataCollection as dc
from towhee import dc
dc.glob(./dog.jpg)
dc.glob('./dog.jpg')
.image_decode() .image_decode()
.image_embedding.timm('resnet50') .image_embedding.timm('resnet50')
.show() .show()
@ -66,9 +66,9 @@ dc.glob(./dog.jpg)
*Write a same pipeline with explicit inputs/outputs name specifications:* *Write a same pipeline with explicit inputs/outputs name specifications:*
```python ```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_decode['path', 'img']()
.image_embedding.timm['img', 'vec']('resnet50') .image_embedding.timm['img', 'vec']('resnet50')
.select('img') .select('img')

Loading…
Cancel
Save