logo
Browse Source

Update readme

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

15
README.md

@ -18,9 +18,7 @@ who maintains SOTA deep-learning models and tools in computer vision.
Load an image from path './towhee.jpeg' Load an image from path './towhee.jpeg'
and use the pre-trained ResNet50 model ('resnet50') to generate an image embedding. and use the pre-trained ResNet50 model ('resnet50') to generate an image embedding.
*Write a same pipeline with explicit inputs/outputs name specifications:*
- **option 1:**
*Write a pipeline with explicit inputs/outputs name specifications:*
```python ```python
from towhee.dc2 import pipe, ops, DataCollection from towhee.dc2 import pipe, ops, DataCollection
@ -37,17 +35,6 @@ DataCollection(p('towhee.jpeg')).show()
<img src="./result.png" height="150px"/> <img src="./result.png" height="150px"/>
- **option 2:**
```python
import towhee
towhee.glob['path']('./towhee.jpeg') \
.image_decode['path', 'img']() \
.image_embedding.timm['img', 'vec'](model_name='resnet50') \
.select['img', 'vec']() \
.show()
```
<br /> <br />
## Factory Constructor ## Factory Constructor

Loading…
Cancel
Save