logo
Browse Source

Update

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 1 year ago
parent
commit
83db7a2f42
  1. 18
      README.md
  2. BIN
      result.png
  3. BIN
      result1.png
  4. BIN
      result2.png
  5. BIN
      towhee.jpeg

18
README.md

@ -18,21 +18,7 @@ To achieve higher accuracy in image classification, SWAG uses hashtags to perfor
Load an image from path './towhee.jpg'
and use the pretrained SWAG model 'vit_b16_in1k' to generate an image embedding.
*Write the pipeline in simplified style:*
```python
import towhee
(
towhee.glob('./towhee.jpg')
.image_decode()
.image_embedding.swag(model_name='vit_b16_in1k')
.show()
)
```
<img src="./result1.png" width="800px"/>
*Write a same pipeline with explicit inputs/outputs name specifications:*
*Write a pipeline with explicit inputs/outputs name specifications:*
```python
import towhee
@ -45,7 +31,7 @@ import towhee
.show()
)
```
<img src="./result2.png" width="800px"/>
<img src="./result.png" width="800px"/>
<br />

BIN
result.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
result1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

BIN
result2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

BIN
towhee.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Loading…
Cancel
Save