logo
Browse Source

Update readme

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
47b3358b93
  1. 18
      README.md

18
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"/>

Loading…
Cancel
Save