logo
clip
repo-copy-icon

copied

Browse Source

fix the readme code snippet.

Signed-off-by: wxywb <xy.wang@zilliz.com>
main
wxywb 3 years ago
parent
commit
e0e87293d9
  1. 5
      README.md

5
README.md

@ -32,7 +32,6 @@ towhee.glob('./teddy.jpg') \
.show()
towhee.dc(["A teddybear on a skateboard in Times Square."]) \
.image_decode.cv2() \
.towhee.clip(name='ViT-B/32', modality='text') \
.show()
```
@ -46,8 +45,8 @@ import towhee
towhee.glob['path']('./teddy.jpg') \
.image_decode.cv2['path', 'img']() \
.towhee.clip['data', 'vec'](name='ViT-B/32', modality='image') \
.select['data', 'vec']() \
.towhee.clip['img', 'vec'](name='ViT-B/32', modality='image') \
.select['img', 'vec']() \
.show()
towhee.dc['text'](["A teddybear on a skateboard in Times Square."]) \

Loading…
Cancel
Save