Update asr and audio tagging demo.

pull/1086/head
KP 4 years ago
parent a020d4a8c2
commit f053dce3f7

@ -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()
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,

Loading…
Cancel
Save