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: all elements of new_shape must be non-negative #212

Open
eklee0309 opened this issue Jun 17, 2024 · 1 comment
Open

ValueError: all elements of new_shape must be non-negative #212

eklee0309 opened this issue Jun 17, 2024 · 1 comment

Comments

@eklee0309
Copy link

Hello.

I'm trying to test the trained model with training_tf2/test_lpcnet.py.

I got an error related to the numpy module,

"Traceback (most recent call last):
File "test_lpcnet.py", line 72, in
features = np.resize(features, (-1, nb_features))
ValueError: all elements of new_shape must be non-negative".

What do I have to do?

@felixshing
Copy link

felixshing commented Aug 5, 2024

same problem. Any solution?

Edit: okay, it turns out we should use reshape instead of resize...

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