ValueError: total size of new array must be unchanged

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))

Leave a Comment