LPCNet icon indicating copy to clipboard operation
LPCNet copied to clipboard

ValueError: all elements of `new_shape` must be non-negative

Open eklee0309 opened this issue 1 year ago • 1 comments

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?

eklee0309 avatar Jun 17 '24 07:06 eklee0309

same problem. Any solution?

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

RayShing avatar Aug 05 '24 02:08 RayShing