diff --git a/README.md b/README.md index 926fa99..9ce3d02 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,25 @@ import towhee .show() ) ``` + + +*Write a same pipeline with explicit inputs/outputs name specifications*: + +```python +import towhee + +( + towhee.glob['path']('./archery.mp4') + .video_decode.ffmpeg['path', 'frames']() + .action_classification.tsm['frames', ('labels', 'scores', 'features')]( + model_name='tsm_k400_r50_seg8') + .select['path', 'labels', 'scores', 'features']() + .show(formatter={'path': 'video_path'}) +) +``` + + +
## Factory Constructor diff --git a/result1.png b/result1.png new file mode 100644 index 0000000..8944827 Binary files /dev/null and b/result1.png differ diff --git a/result2.png b/result2.png new file mode 100644 index 0000000..3827299 Binary files /dev/null and b/result2.png differ