Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot set tensor: got value of type uint8 but expected type float32 for input 0, name: input_1 #1

Open
haticeozdemir opened this issue Sep 8, 2021 · 1 comment

Comments

@haticeozdemir
Copy link

Hello, I encountered this error. how can i solve

@ianustec
Copy link

Hi,

personally

input_data = input_data.astype(np.float32)
interpreter.set_tensor(input_details[0]['index'], input_data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants