From 8386bfde82f7e3d27ca8726dafb59dfd99eee026 Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Mon, 6 Feb 2023 19:04:18 +0800 Subject: [PATCH] Update README Signed-off-by: Jael Gu --- README.md | 40 +++------------------------------------- result.png | Bin 0 -> 5960 bytes 2 files changed, 3 insertions(+), 37 deletions(-) create mode 100644 result.png diff --git a/README.md b/README.md index 311a7f0..96ddeb3 100644 --- a/README.md +++ b/README.md @@ -17,47 +17,13 @@ The [default model weight](clmr_checkpoint_10000.pt) provided is pretrained on [ Generate embeddings for the audio "test.wav". -*Write the pipeline in simplified style*: +*Write a pipeline with explicit inputs/outputs name specifications:* ```python -import towhee - -( - towhee.glob('test.wav') - .audio_decode.ffmpeg() - .runas_op(func=lambda x:[y[0] for y in x]) - .audio_embedding.clmr() - .show() -) -``` - | [-2.1045141, 0.55381, 0.4537212, ...] shape=(6, 512) | - -*Write a same pipeline with explicit inputs/outputs name specifications:* -```python -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.clmr['frames', 'vecs']() - .select['path', 'vecs']() - .show() -) ``` - [array([[-2.1045141 , 0.55381 , 0.4537212 , ..., 0.18805158, - 0.3079657 , -1.216063 ], - [-2.1045141 , 0.55381036, 0.45372102, ..., 0.18805173, - 0.3079657 , -1.216063 ], - [-2.0874703 , 0.5511826 , 0.46051833, ..., 0.18650496, - 0.33218473, -1.2182183 ], - [-2.0874703 , 0.55118287, 0.4605182 , ..., 0.18650502, - 0.3321851 , -1.2182183 ], - [-2.0771544 , 0.5641223 , 0.43814823, ..., 0.18220925, - 0.33022994, -1.2070589 ], - [-2.0771549 , 0.5641221 , 0.43814805, ..., 0.1822092 , - 0.33022994, -1.2070588 ]], dtype=float32)] + +
diff --git a/result.png b/result.png new file mode 100644 index 0000000000000000000000000000000000000000..492a3ece8b5a920c2d74d57e108681cd1e0d89d2 GIT binary patch literal 5960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