Exception: Invalid number of features, expected 720, but got 685 (trying to reshape into [720])
Application exited with code 1
Hi I am getting this error while model testing while I have uploaded the same data in training as well and the model trains perfectly. I have tried with other similar data samples as well.
I downloaded the code for the model using edit locally mode and trained the model on local and re uploaded it for testing but while testing I am getting this error:
Scheduling job in cluster…
Container image pulled!
Job started
Traceback (most recent call last):
File “/home/classify_float32.py”, line 43, in
ei_tensorflow.inference.classify_keras(input_x_file, input_y_file, mode, output_file, dir_path, model_path,
File “/app/./resources/libraries/ei_tensorflow/inference.py”, line 705, in classify_keras
scores = run_model(mode=mode,
File “/app/./resources/libraries/ei_tensorflow/inference.py”, line 264, in run_model
return run_vector_inference(interpreter, item, specific_input_shape)
File “/app/./resources/libraries/ei_tensorflow/inference.py”, line 301, in run_vector_inference
output, output_details = invoke(interpreter, item, specific_input_shape)
File “/app/./resources/libraries/ei_tensorflow/inference.py”, line 279, in invoke
raise Exception('Invalid number of features, expected ’ + str(np.prod(specific_input_shape)) + ', but got ’ +
Exception: Invalid number of features, expected 720, but got 685 (trying to reshape into [720])
Application exited with code 1
Job failed (see above)
Project Id is 266538.
You can also see in another project if I train model on edge impulse instead of local, and then go for model testing I get no error.(Project Id is 253151)