Skip to content

Error in changing datatype of numpy array #2

@tushalien

Description

@tushalien

ValueError: setting an array element with a sequence as ::

type(np.float32)

Traceback (most recent call last):
File "app.py", line 29, in
prediction = predictionApp.predict(input_image)
File "/home/abc//services/prediction.py", line 65, in predict
predicted_words = predicted_words.astype(np.float32)
ValueError: setting an array element with a sequence.

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