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