提交 f053dce3 编写于 作者: K KP

Update asr and audio tagging demo.

上级 a020d4a8
...@@ -26,7 +26,7 @@ wget https://paddlespeech.bj.bcebos.com/PaddleAudio/cat.wav https://paddlespeech ...@@ -26,7 +26,7 @@ wget https://paddlespeech.bj.bcebos.com/PaddleAudio/cat.wav https://paddlespeech
``` ```
Command usage: Command usage:
- `input`(required): Audio file to tag. - `input`(required): Audio file to tag.
- `model`: Model type of tagging task. Default: `panns_cnn10`. - `model`: Model type of tagging task. Default: `panns_cnn14`.
- `config`: Config of tagging task. Use pretrained model when it is None. Default: `None`. - `config`: Config of tagging task. Use pretrained model when it is None. Default: `None`.
- `ckpt_path`: Model checkpoint. Use pretrained model when it is None. Default: `None`. - `ckpt_path`: Model checkpoint. Use pretrained model when it is None. Default: `None`.
- `label_file`: Label file of tagging task. Use audioset labels when it is None. Default: `None`. - `label_file`: Label file of tagging task. Use audioset labels when it is None. Default: `None`.
......
...@@ -27,7 +27,7 @@ args = parser.parse_args() ...@@ -27,7 +27,7 @@ args = parser.parse_args()
if __name__ == '__main__': if __name__ == '__main__':
cls_executor = CLSExecutor() cls_executor = CLSExecutor()
result = cls_executor( result = cls_executor(
model_type='panns_cnn10', model_type='panns_cnn14',
cfg_path=None, # Set `cfg_path` and `ckpt_path` to None to use pretrained model. cfg_path=None, # Set `cfg_path` and `ckpt_path` to None to use pretrained model.
label_file=None, label_file=None,
ckpt_path=None, ckpt_path=None,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册