Skip to content

Getting error while running test.ipynb( when using your trained weights---) #1

@Mohsin365

Description

@Mohsin365

->>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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions