PaddlePaddle / PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
https://paddlespeech.readthedocs.io
Apache License 2.0
10.99k stars 1.83k forks source link

hifigan_aishell3.onnx inputs [-1,80] 这个模型onnx文件是怎么生成的? #3423

Open 23michael45 opened 1 year ago

23michael45 commented 1 year ago

我用hifigan_aishell3_ckpt_0.2.0/snapshot_iter_2500000.pdz 转换成pdmodel,pdiparams 再转成onnx. 在netron里看input是name: logmel type: float32[p2o.DynamicDimension.0,80]

但是直接从git上下载的hifigan_aishell3.onnx ,在netron里看input是 logmel name: logmel type: float32[-1,80]

我想请教一下,git上下载的hifigan_aishell3.onnx 是怎么生成的,为什么input是-1而不是dynamic

zxcd commented 1 year ago

hifigan_aishell3打包onnx时使用的是静态图,所以是-1

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.