Browse Source
fix the readme code snippet.
Signed-off-by: wxywb <xy.wang@zilliz.com>
main
wxywb
3 years ago
1 changed files with
2 additions and
3 deletions
-
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."]) \ |
|
|
|