From 0b2d9aa05ab3688ce5f8d29cfd412e5fe11a6839 Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Thu, 23 Dec 2021 16:09:55 +0800 Subject: [PATCH] Add yaml Signed-off-by: Jael Gu --- audio_embedding_clmr.yaml | 69 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 audio_embedding_clmr.yaml diff --git a/audio_embedding_clmr.yaml b/audio_embedding_clmr.yaml new file mode 100644 index 0000000..04b3476 --- /dev/null +++ b/audio_embedding_clmr.yaml @@ -0,0 +1,69 @@ +name: 'audio_embedding_clmr' +operators: + - + name: '_start_op' + function: '_start_op' + init_args: + inputs: + - + df: '_start_df' + name: 'filepath' + col: 0 + outputs: + - + df: 'audio' + iter_info: + type: map + - + name: 'embedding_model' + function: 'towhee/clmr-magnatagatune' + init_args: + inputs: + - + df: 'audio' + name: 'filepath' + col: 0 + outputs: + - + df: 'emb' + iter_info: + type: map + - + name: '_end_op' + function: '_end_op' + init_args: + inputs: + - + df: 'emb' + name: 'embs' + col: 0 + outputs: + - + df: '_end_df' + iter_info: + type: map +dataframes: + - + name: '_start_df' + columns: + - + name: 'filepath' + vtype: 'str' + - + name: 'audio' + columns: + - + name: 'filepath' + vtype: 'str' + - + name: 'emb' + columns: + - + name: 'embs' + vtype: 'numpy.ndarray' + - + name: '_end_df' + columns: + - + name: 'embs' + vtype: 'numpy.ndarray'