print(out.shape) X_test = np.expand_dims(out,0) print(X_test.shape) # handle the hack input dummy_array = np.zeros((1,1,1,1,TRUE_BOX_BUFFER,4)) y_pred = model.predict([X_test,dummy_array]) print(y_pred.shape)