|
@ -42,7 +42,7 @@ import towhee |
|
|
( |
|
|
( |
|
|
towhee.glob['path']('./archery.mp4') |
|
|
towhee.glob['path']('./archery.mp4') |
|
|
.video_decode.ffmpeg['path', 'frames']() |
|
|
.video_decode.ffmpeg['path', 'frames']() |
|
|
.action_classification.omnivore['frames', ('labels', 'scores', 'features')]( |
|
|
|
|
|
|
|
|
.action_classification.movinet['frames', ('labels', 'scores', 'features')]( |
|
|
model_name='movineta0') |
|
|
model_name='movineta0') |
|
|
.select['path', 'labels', 'scores', 'features']() |
|
|
.select['path', 'labels', 'scores', 'features']() |
|
|
.show(formatter={'path': 'video_path'}) |
|
|
.show(formatter={'path': 'video_path'}) |
|
@ -64,7 +64,7 @@ model_name='movineta0', skip_preprocess=False, classmap=None, topk=5)*** |
|
|
|
|
|
|
|
|
***model_name***: *str* |
|
|
***model_name***: *str* |
|
|
|
|
|
|
|
|
The name of pre-trained tsm model. |
|
|
|
|
|
|
|
|
The name of pre-trained movinet model. |
|
|
|
|
|
|
|
|
Supported model names: |
|
|
Supported model names: |
|
|
- movineta0 |
|
|
- movineta0 |
|
|