xiph / LPCNet

Efficient neural speech synthesis
BSD 3-Clause "New" or "Revised" License
1.12k stars 295 forks source link

ValueError:When I load the model lpcnet15_384_10_G16_100.h5 #128

Closed csubaiyang closed 2 years ago

csubaiyang commented 4 years ago

version info: tf 2.0 keras 2.3.1

When I run the code 'python dump_lpcnet.py lpcnet15_384_10_G16_100.h5' (the 5th step in the training tutorial). I got the bug shows that ValueError: You are trying to load a weight file containing 10 layers into a model with 9 layers.

Does anyone have the same problem? I hope somebody can tell me how to solve it. Thx!!!

arthw commented 3 years ago

Here is my PIP list:

absl-py==0.13.0 astor==0.8.1 astunparse==1.6.3 cached-property==1.5.2 cachetools==4.2.2 certifi==2021.5.30 charset-normalizer==2.0.3 flatbuffers==1.12 gast==0.2.2 google-auth==1.33.1 google-auth-oauthlib==0.4.4 google-pasta==0.2.0 grpcio==1.34.1 h5py==2.10.0 idna==3.2 importlib-metadata==4.6.1 intel-tensorflow==1.15.2 Keras==2.3.0 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.2 Markdown==3.3.4 networkx==2.4 numpy==1.19.5 oauthlib==3.1.1 opt-einsum==3.3.0 protobuf==3.17.3 pyasn1==0.4.8 pyasn1-modules==0.2.8 PyYAML==5.4.1 requests==2.26.0 requests-oauthlib==1.3.0 rsa==4.7.2 scipy==1.7.0 six==1.15.0 split-folders==0.3.1 tensorboard==1.15.0 tensorflow-estimator==1.15.1 termcolor==1.1.0 typing-extensions==3.7.4.3 urllib3==1.26.6 Werkzeug==2.0.1 wrapt==1.12.1 zipp==3.5.0