Browse Source
update the readme.
Signed-off-by: wxywb <xy.wang@zilliz.com>
main
wxywb
3 years ago
1 changed files with
2 additions and
2 deletions
-
README.md
|
|
@ -28,7 +28,7 @@ import towhee |
|
|
|
towhee.glob('test.wav') |
|
|
|
.audio_decode.ffmpeg() |
|
|
|
.runas_op(func=lambda x:[y[0] for y in x]) |
|
|
|
.towhee.data2vec() |
|
|
|
.audio_embedding.data2vec() |
|
|
|
.show() |
|
|
|
) |
|
|
|
|
|
|
@ -43,7 +43,7 @@ import towhee |
|
|
|
towhee.glob['path']('test.wav') |
|
|
|
.audio_decode.ffmpeg['path', 'frames']() |
|
|
|
.runas_op['frames', 'frames'](func=lambda x:[y[0] for y in x]) |
|
|
|
.towhee.data2vec['frames', 'vecs'](model_name="facebook/data2vec-audio-base-960h") |
|
|
|
.audio_embedding.data2vec['frames', 'vecs'](model_name="facebook/data2vec-audio-base-960h") |
|
|
|
.show() |
|
|
|
) |
|
|
|
``` |
|
|
|