You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error :
InvalidArgumentError Traceback (most recent call last)
in
50 sequence_start=(sequence_start+1)%32
51
---> 52 result_prob=model.predict(sequence_arr,None)
53 y_class= result_prob.argmax(axis=-1)
54 label=LABELS[y_class[0]]
InvalidArgumentError: Input to reshape is a tensor with 2048 values, but the requested shape has 524288
[[{{node dense_1/Reshape_2}}]]
The text was updated successfully, but these errors were encountered:
Mohsin365
changed the title
Getting error while predicting on my own video.
Getting error while predicting on my own video.(On a similar network model)
Jun 15, 2020
Error :
InvalidArgumentError Traceback (most recent call last)
in
50 sequence_start=(sequence_start+1)%32
51
---> 52 result_prob=model.predict(sequence_arr,None)
53 y_class= result_prob.argmax(axis=-1)
54 label=LABELS[y_class[0]]
InvalidArgumentError: Input to reshape is a tensor with 2048 values, but the requested shape has 524288
[[{{node dense_1/Reshape_2}}]]
Code Snippet :
X_ = np.asarray(openpose_output, dtype=np.float32)
X_ = X_[np.newaxis, :, :]
X_=X_.reshape(X_.shape[0],X_.shape[1],X_.shape[2]*X_.shape[3])
sequence_arr=np.append(X_[:,sequence_start:,:],X_[:,:sequence_start,:],axis=1)
sequence_start=(sequence_start+1)%32
The text was updated successfully, but these errors were encountered: