Human-Activity-Recognition
Human-Activity-Recognition copied to clipboard
Getting error while running test.ipynb( when using your trained weights---)
->>InvalidArgumentError: Input to reshape is a tensor with 2048 values, but the requested shape has 524288 [[{{node dense_1/Reshape_2}}]]
->>Error occurs when i try to predict on Sequence_arr ->>code snippet :
result_prob=model.predict(sequence_arr,None) #####HERE#####
y_class= result_prob.argmax(axis=-1)
label=LABELS[y_class[0]]
print("Iterator::",iterator," Label ::",label)
cv2.putText(frame, label, (50, 150), cv2.FONT_HERSHEY_COMPLEX, .8, (255, 50, 0),lineType=cv2.LINE_AA)