logo
Browse Source

Update readme

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

22
README.md

@ -23,10 +23,12 @@ and use the pretrained ISC model ('resnet50') to generate an image embedding.
```python ```python
import towhee import towhee
towhee.glob('./towhee.jpg') \
.image_decode() \
.image_embedding.isc() \
.show()
(
towhee.glob('./towhee.jpg')
.image_decode()
.image_embedding.isc()
.show()
)
``` ```
<img src="./result1.png" height="50px"/> <img src="./result1.png" height="50px"/>
@ -35,11 +37,13 @@ towhee.glob('./towhee.jpg') \
```python ```python
import towhee import towhee
towhee.glob['path']('./towhee.jpg') \
.image_decode['path', 'img']() \
.image_embedding.isc['img', 'vec']() \
.select['img', 'vec']() \
.show()
(
towhee.glob['path']('./towhee.jpg')
.image_decode['path', 'img']()
.image_embedding.isc['img', 'vec']()
.select['img', 'vec']()
.show()
)
``` ```
<img src="./result2.png" height="150px"/> <img src="./result2.png" height="150px"/>

Loading…
Cancel
Save