提交 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
```
Command usage:
- `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`.
- `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`.
......
......@@ -27,7 +27,7 @@ args = parser.parse_args()
if __name__ == '__main__':
cls_executor = CLSExecutor()
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.
label_file=None,
ckpt_path=None,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册