logo
Browse Source

Add show results

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
e71b652b35
  1. 7
      README.md
  2. BIN
      result1.png
  3. BIN
      result2.png

7
README.md

@ -28,9 +28,10 @@ import towhee
towhee.glob('./archery.mp4') towhee.glob('./archery.mp4')
.video_decode.ffmpeg() .video_decode.ffmpeg()
.video_classification.pytorchvideo(model_name='slowfast_r50') .video_classification.pytorchvideo(model_name='slowfast_r50')
.to_list()
.show()
) )
``` ```
<img src="./result1.png" height="45px"/>
*Write a same pipeline with explicit inputs/outputs name specifications:* *Write a same pipeline with explicit inputs/outputs name specifications:*
@ -43,10 +44,10 @@ import towhee
.video_classification.pytorchvideo['frames', ('labels', 'scores', 'features')]( .video_classification.pytorchvideo['frames', ('labels', 'scores', 'features')](
model_name='slowfast_r50') model_name='slowfast_r50')
.select['labels', 'scores', 'features']() .select['labels', 'scores', 'features']()
.show()
.show(formatter={'path':'video_path'})
) )
``` ```
<img src="./result2.png" height="80px"/>
<br /> <br />

BIN
result1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
result2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Loading…
Cancel
Save