ValueError: Total Size Of New Array Must Be Unchanged
I am trying to execute the code from this URL. However, I started getting this error: des = np.array(des,np.float32).reshape((1,128)) ValueError: total size of new array must be un
Solution 1:
I had the same issue. I found that I changed the data length. A product of reshape
arguments should be equal to a length of an array which you are changing.
In your case:
des = np.array(des,np.float32).reshape(1, len(des))
Post a Comment for "ValueError: Total Size Of New Array Must Be Unchanged"