Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ValueError: axes don't match array" when applying --retrain flag to sample model file #201

Open
ksadov opened this issue Oct 31, 2022 · 1 comment

Comments

@ksadov
Copy link

ksadov commented Oct 31, 2022

I cloned, built and ran ./lpcnet_demo without a problem. However, the command python3 training_tf2/train_lpcnet.py train_test.f32 train_test.s16 train_test --retrain ./models/lpcnet56Dcq_384_01.h5 (where lpcnet56Dcq_384_01.h5 was extracted from lpcnet_data-97e64b3.tar.gz at https://media.xiph.org/lpcnet/data/) produced the following trace:

Traceback (most recent call last):
  File "/home/ksadov/LPCNet/training_tf2/train_lpcnet.py", line 188, in <module>
    model.load_weights(args.retrain)
  File "/home/ksadov/miniconda3/envs/lpcnet/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "<__array_function__ internals>", line 180, in transpose
  File "/home/ksadov/miniconda3/envs/lpcnet/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 660, in transpose
    return _wrapfunc(a, 'transpose', axes)
  File "/home/ksadov/miniconda3/envs/lpcnet/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc
    return bound(*args, **kwds)
ValueError: axes don't match array

Is this expected behavior from this file? If so, where can I obtain a pretrained checkpoint that I can resume training from?

@dabraude
Copy link

can confirm I'm having this problem too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants