image-classification-python icon indicating copy to clipboard operation
image-classification-python copied to clipboard

SOLVED ERROR. ValueError: Expected 2D array, got 1D array instead

Open cbperez opened this issue 6 years ago • 1 comments

The following error: ValueError: Expected 2D array, got 1D array instead Using Python 3.7.3 was presented in the train_test.py code. I solved this, adding the following sentence before obtaining rescaled_feature

global_feature= np.reshape(global_feature, (2, -1))

cbperez avatar Nov 28 '19 20:11 cbperez

thanks bro,it works.

Monarch1995 avatar Mar 04 '20 08:03 Monarch1995