From 500b7e7b12b26072327694075259aafb5e7ed77f Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Thu, 4 Aug 2022 15:07:38 +0800 Subject: [PATCH] Update README Signed-off-by: Jael Gu --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 86b3935..d2a9f9d 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,8 @@ 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]) - .audio_embedding.data2vec['frames', 'vecs'](model_name="facebook/data2vec-audio-base-960h") + .audio_embedding.data2vec['frames', 'vecs'](model_name="facebook/data2vec-audio-base-960h") + .select['path', 'vecs']() .show() ) ``` @@ -68,7 +69,7 @@ The model name in string. The default value is "facebook/data2vec-audio-base-960h". Supported model name: -- +- - facebook/data2vec-audio-base-960h - facebook/data2vec-audio-large-960h - facebook/data2vec-audio-base @@ -96,6 +97,3 @@ An audio embedding operator generates vectors in numpy.ndarray given an audio fi **Returns:** *numpy.ndarray* ​ The audio embedding extracted by model. - - -