Browse Source
Update readme
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
13 additions and
9 deletions
-
README.md
|
|
@ -23,10 +23,12 @@ and use the pretrained ISC model ('resnet50') to generate an image embedding. |
|
|
|
```python |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob('./towhee.jpg') \ |
|
|
|
.image_decode() \ |
|
|
|
.image_embedding.isc() \ |
|
|
|
( |
|
|
|
towhee.glob('./towhee.jpg') |
|
|
|
.image_decode() |
|
|
|
.image_embedding.isc() |
|
|
|
.show() |
|
|
|
) |
|
|
|
``` |
|
|
|
<img src="./result1.png" height="50px"/> |
|
|
|
|
|
|
@ -35,11 +37,13 @@ towhee.glob('./towhee.jpg') \ |
|
|
|
```python |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob['path']('./towhee.jpg') \ |
|
|
|
.image_decode['path', 'img']() \ |
|
|
|
.image_embedding.isc['img', 'vec']() \ |
|
|
|
.select['img', 'vec']() \ |
|
|
|
( |
|
|
|
towhee.glob['path']('./towhee.jpg') |
|
|
|
.image_decode['path', 'img']() |
|
|
|
.image_embedding.isc['img', 'vec']() |
|
|
|
.select['img', 'vec']() |
|
|
|
.show() |
|
|
|
) |
|
|
|
``` |
|
|
|
<img src="./result2.png" height="150px"/> |
|
|
|
|
|
|
|